Category Archives: postfix

postfix commands

0
Filed under BSD, postfix, WEB-DEV-LOG
Tagged as

To see mail queue, enter:
# mailq

To remove all mail from the queue, enter:
# postsuper -d ALL

To remove all mails in the deferred queue, enter:
# postsuper -d ALL deferred

Email solutions

0
Filed under postfix, WEB-DEV-LOG
Tagged as

Hotmail needs PTR record for IP address
mail now does not get SPAM tag


Return Path client

  • Sender Score Certified?
  • Junk Mail Reporting Partner Program?
  • Smart Network Data Services?
  • http://postmaster.live.com/Services.aspx#JMRPP


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.