Monthly Archives: September 2009

Cari.net

1
Filed under WEB-DEV-LOG
Tagged as

FREEBSD/CELERON-D-01-HTN (fb7199103.aspadmin.net-71.6.199.103) 2009-05-21 Service is Active

Monthly cycle. Your next charge will be for $50.00 on 2009-10-21.

Nike Car jump

0
Filed under WEB-DEV-LOG
Tagged as

Do you trust your boy?

Well come on man, just sit back relax and enjoy the show.


Just watch what I do baby,

Come on,  bring it down.

I got this baby, this is what I do.



postfix spam filters

0
Filed under WEB-DEV-LOG
Tagged as

reject_rbl_client abuse.rfc-ignorant.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client blackhole.securitysage.com,
reject_rbl_client blackholes.easynet.nl,
reject_rbl_client block.rhs.mailpolice.com,
reject_rbl_client bogusmx.rfc-ignorant.org,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client combined.rbl.msrbl.net,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client dnsbl.sorbs.net,
reject_rbl_client dsn.rfc-ignorant.org,
reject_rbl_client dul.dnsbl.sorbs.net,
reject_rbl_client dynamic.rhs.mailpolice.com,
reject_rbl_client ix.dnsbl.manitu.net,
reject_rbl_client list.dsbl.org,
reject_rbl_client multi.uribl.com,
reject_rbl_client multihop.dsbl.org,
reject_rbl_client opm.blitzed.org,
reject_rbl_client postmaster.rfc-ignorant.org,
reject_rbl_client proxies.blackholes.wirehub.net,
reject_rbl_client rabl.nuclearelephant.com,
reject_rbl_client relays.ordb.org,
reject_rbl_client rhsbl.ahbl.org,
reject_rbl_client rhsbl.sorbs.net
reject_rbl_client zen.spamhaus.org,

=====================
== DEAD NAMES ==
================
dsbl.org

===========
bl.spamcop.net

zen.spamhaus.org

ZEN is the combination of all Spamhaus DNSBLs into one single powerful and comprehensive blocklist to make querying faster and simpler. It contains the SBL, the XBL and the PBL blocklist.

In most cases, zen.spamhaus.org replaces sbl-xbl.spamhaus.org. If you are currently using sbl-xbl.spamhaus.org you should now replace ‘sbl-xbl.spamhaus.org’ with ‘zen.spamhaus.org’.

zen.spamhaus.org should now be the only spamhaus.org DNSBL in your configuration. You should not use ZEN together with other Spamhaus blocklists, or with blocklists already included in our zones (such as the CBL) or you will simply be wasting DNS queries and slowing your mail queue.

Caution: Because ZEN includes the XBL and PBL lists, do not use ZEN on smarthosts or SMTP AUTH outbound servers for your own customers (or you risk blocking your own customers). Do not use ZEN in filters that do any ‘deep parsing’ of Received headers, or for other than checking IP addresses that hand off to your mailservers.

“UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity.”

0
Filed under WEB-DEV-LOG
Tagged as

“If 386BSD had been available when I started on Linux, Linux would probably never had happened.” Linus Torvalds


portsnap fetch && portsnap update && portaudit -F && portupgrade -aR

# portsnap fetch update
# pkg_version -l ‘<’
# vi /usr/ports/UPDATING
# portmaster -Da

$ toilet -f bigmono9 -F gay nixCraft
$ toilet -f mono12 -F metal nixCraft

toilet UNIX / Linux command screenshot

Where,

* -F filter-name: Set filter
* -f fontname : Set font name

To list installed filter, type:
$ toilet -F list
Sample output:

Available filters:
“crop”: crop unused blanks
“gay”: add a rainbow colour effect
“metal”: add a metallic colour effect
“flip”: flip horizontally
“flop”: flip vertically
“rotate”: perform a 180 degrees rotation

Running figlet / toilet automatically

Add command to your ~/.bashrc command so that banner get displayed every time you open terminal or console:

echo ‘echo “Welcome to”‘ >> ~/.bashrc
echo ‘toilet -f mono12 -F metal nixCraft’ >> ~/.bashrc




Perl module

0
Filed under BSD
Tagged as

Located in Ports

Perl module Net::Server

/usr/ports/net/p5-Net-Server/ && make install clean

amavisd-new

0
Filed under WEB-DEV-LOG
Tagged as

FROM HERE

  • No spam-related headers inserted? Here are some reasons:
    • @local_domains_acl is not correctly set. These headers are only inserted for recipients matching @local_domains_acl lookup (or %local_domains or $local_domains_re or field ‘local’ in SQL lookups);
    • headers can only be added or edited when messages pass through amavisd-new. This currently is not the case with sendmail milter setup (using the helper program amavis-milter.c);
    • tag level is set too high ($sa_tag_level_defl);
    • when SpamAssassin is not being called (disabled, message larger than the $sa_mail_body_size_limit, sender white/blacklisted), or SA returns an empty score e.g. when it times out, the spam score is empty (undefined);
    • to make message with spam score above kill_level still pass, either set globally: $final_spam_destiny=D_PASS, or declare recipient a spam_lover.

Mail

0
Filed under WEB-DEV-LOG
Tagged as

/usr/local/virtual/DOMAIN/MAILBOX


http://guvnr.com/web/web-dev/configure-nginx-wordpress/


DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at creating documentation of any kind. It is targeted at developer teams, workgroups and small companies. It has a simple but powerful syntax which makes sure the datafiles remain readable outside the Wiki and eases the creation of structured texts. All data is stored in plain text files – no database is required.



Also you could use logrotate but I think this usually runs once per day, not
positive on that.  Then logrotate would keep 3 logs and rotate only if size
is over 100MB.

Here is a sample logrotate that you would put into /etc/logrotate.d/php-fpm

/opt/php/logs/php-fpm*log {
size=100M
rotate 3
missingok
notifempty
sharedscripts
postrotate
kill -USR1 `cat /opt/php/logs/*php-fpm.pid*`
endscript

}



A simple shell script like this ought to do it:
#!/bin/bash
cd /usr/local/logs
stamp=”$(date +%s)”
mv php-fpm.log php-fpm.log.$stamp
kill -SIGUSR1 `cat php-fpm.pid`
#gzip or delete or process however you like
gzip php-fpm.log.$stamp
exit



Now I lay me down to sleep(3)
Pray the OS my core to keep
If I die before I wake
Pray the Disk my core to take


Worse is better, also called the New Jersey style, was conceived by Richard P. Gabriel to describe the dynamics of software acceptance, but it has broader application. The phrase is formed to appear ironically illogical while resonating with truth at a deeper level of understanding.

amavisd SpamAssassin error fixed

0
Filed under postfix
Tagged as
Sep 10 15:40:33 soap amavis[84987]: (!)_DIE: Can't locate Tie/Cache.pm in @INC (@INC contains: .. /usr/local/etc/mail/spamassassin lib /usr/local/lib/perl5/5.10.0/BSDPAN /usr/local/lib/perl5/site_perl/5.10.0/mach /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/5.10.0/mach /usr/local/lib/perl5/5.10.0) at (eval 722) line 1.
Sep 10 15:40:33 soap amavis[84987]: (!)_DIE: Can't locate Tie/Cache.pm in @INC (@INC contains: .. /usr/local/etc/mail/spamassassin lib /usr/local/lib/perl5/5.10.0/BSDPAN /usr/local/lib/perl5/site_perl/5.10.0/mach /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/5.10.0/mach /usr/local/lib/perl5/5.10.0) at (eval 722) line 1.\nBEGIN failed--compilation aborted at (eval 722) line 1.
Sep 10 15:40:33 soap amavis[84987]: SA warn: FuzzyOcr: Cannot find executable for tesseract
Sep 10 15:40:34 soap amavis[84987]: SpamAssassin loaded plugins: AWL, AutoLearnThreshold, Bayes, BodyEval, Check, DKIM, DNSEval, FuzzyOcr, HTMLEval, HTTPSMismatch, Hashcash, HeaderEval, ImageInfo, MIMEEval, MIMEHeader, Pyzor, Razor2, RelayEval, ReplaceTags, SPF, SpamCop, URIDNSBL, URIDetail, URIEval, VBounce, WLBLEval, WhiteListSubject
Sep 10 15:40:34 soap amavis[84987]: SpamControl: init_pre_fork on SpamAssassin done
Sep 10 15:40:34 soap amavis[84987]: extra modules loaded after daemonizing/chrooting: /usr/local/lib/perl5/site_perl/5.10.0/mach/auto/Storable/autosplit.ix, MLDBM.pm, MLDBM/Sync.pm, MLDBM/Sync/SDBM_File.pm, Mail/SpamAssassin/BayesStore/MySQL.pm, Mail/SpamAssassin/BayesStore/SQL.pm, Mail/SpamAssassin/Plugin/FuzzyOcr.pm, Mail/SpamAssassin/Plugin/FuzzyOcr/Config.pm, Mail/SpamAssassin/Plugin/FuzzyOcr/Deanimate.pm, Mail/SpamAssassin/Plugin/FuzzyOcr/Hashing.pm, Mail/SpamAssassin/Plugin/FuzzyOcr/Logging.pm, Mail/SpamAssassin/Plugin/FuzzyOcr/Misc.pm, Mail/SpamAssassin/Plugin/FuzzyOcr/Preprocessor.pm, Mail/SpamAssassin/Plugin/FuzzyOcr/Scanset.pm, Mail/SpamAssassin/Plugin/FuzzyOcr/Scoring.pm, Mail/SpamAssassin/SQLBasedAddrList.pm, SDBM_File.pm, Storable.pm, String/Approx.pm
Sep 10 15:40:34 soap amavis[84989]: TIMING [total 3 ms] - bdb-open: 3 (100%)100, rundown: 0 (0%)100
Sep 10 15:40:34 soap amavis[84990]: TIMING [total 2 ms] - bdb-open: 2 (100%)100, rundown: 0 (0%)100

install
/usr/ports/devel/p5-Tie-Cache
/usr/ports/graphics/tesseract

Postfix Multiple IP Address, Individual SMTP Hostname Greeting

2
Filed under postfix
Tagged as

If your Postfix mail server has multiple IP addresses, it will use the same SMTP hostname greeting on every IP Address. This may cause a problem since some mail servers check the SMTP hostname banner to see if the hostname points to the same mail server. If not, any mail you send may be rejected or handled as spam. You can confirm if you have this problem by getting a DNS report on your domain name.

Sample DNS report, the hostnames are not real. Note that it shows the same SMTP banner 220 mail.acme.local ESMTP Postfix from the two hostnames, mail.acme.local and mail2.acme.local.
1. Edit the file /etc/postfix/master.cf and change the line below from

smtp inet n - n - - smtpd

to this

localhost:smtp  inet n - n - - smtpd
ipaddress1:smtp inet n - n - - smtpd
ipaddress2:smtp inet n - n - - smtpd -o myhostname=hostname2
.
.
.
ipaddressn:smtp inet n - n - - smtpd -o myhostname=hostnamen

The new settings above binds each ip address to a new hostname except for localhost and ipaddress1 which uses the regular hostname.

2. Restart the Postfix service or the MailScanner service if you have integrated MailScanner into Postfix.
3. Check your DNS report again, you should now pass the Mailserver greeting test.

php-fpm

0
Filed under WEB-DEV-LOG
Tagged as

time out problems kept brining down the site. Playing with settings fixed it.

/usr/local/etc/php-fpm.conf

<value name=”max_requests”>0</value>

fixed it but now memory leaks are a problem

<value name=”max_requests”>1000</value>

seems to work now to see for how long.