This page will guide you in configuring MailScanner, ClamAV and SpamAssassin to work in Postfix. Before proceeding, make sure Postfix is installed and working.
%org-name% = your organization name %org-long-name% = your full organization name %web-site% = your mail support website or company website Run As User = postfix Run As Group = postfix Incoming Queue Dir = /var/spool/postfix/hold Outgoing Queue Dir = /var/spool/postfix/incoming Incoming Work Group = clamav Incoming Work Permissions = 0640 MTA = postfix Virus Scanners = clamd Use SpamAssassin = yes SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin
Integrating MailScanner into Postfix
header_checks = regexp:/etc/postfix/header_checks
/^Received:/ HOLDThis will now place all incoming mail into the holding area until released by MailScanner.
sudo service postfix restart sudo service clamav-daemon start sudo service mailscanner start
Congratulations, your mails are now checked for spam and viruses. Each mail you send or receive will now contain the lines below to indicate that MailScanner is doing its job.
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Visit the forum to ask for help or to give a comment.