- 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.
Daily Archives: September 10, 2009
amavisd-new
/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
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
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.
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.

