This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== N) Mail Scanner ====== [[https://www.mailscanner.info|MailScanner]] is a tool that integrates your mail server (MTA = Postfix) with antivirus scanners and Spam Assassin. MailScanner Gentoo latest package is obsolete, you must install manually. Download generic 'Nix tarball from [[https://github.com/MailScanner/v5/releases|GitHub]] releases page decompress and run install.sh <code bash> mkdir /opt/mailscanner cd /opt/mailscanner wget ... tar xvf <downloaded file> cd MailScanner-xxx ./install.sh ln -s /usr/lib/MailScanner/init/msmilter-init /etc/init.d/ rc-update add msmilter-init default </code> follow instructions and answer the various questions. MailScanner setup, see [[https://www.mailscanner.info/postfix/|here]]. /etc/MailScanner.conf: <code> Run As User = postfix Run As Group = postfix Incoming Queue Dir = /var/spool/MailScanner/milterin Outgoing Queue Dir = /var/spool/MailScanner/milterout MTA = msmail MSMail Queue Type = short MSMail Delivery Method = QMQP MSMail Socket Type = inet MSMail Socket Dir = /var/spool/postfix/public/qmqp MSMail Relay Port = 628 MSMail Relay Address = 127.0.0.1 </code> /etc/default: <code> run_mailscanner=1 </code> Postfix setup. main.cf: <code> # MailScanner milter #smtpd_milters = inet:127.0.0.1:33333 # MailScanner milter may use QMQP for delivery qmqpd_authorized_clients = 127.0.0.1 </code> master.cf: <code> 628 inet n - n - - qmqpd </code> ====== Install MailWatch ====== [[https://mailwatch.org/|here]]. Follow docs [[https://docs.mailwatch.org/install/installing.html|here]]. /etc/MailScanner/MailScanner.conf: <code> Always Looked Up Last = &MailWatchLogging Detailed Spam Report = yes Quarantine Whole Message = yes Quarantine Whole Messages As Queue Files = no Include Scores In SpamAssassin Report = yes Quarantine User = root Quarantine Group = apache (this should be the same group as your web server) Quarantine Permissions = 0660 </code> Set queues permissions: <code bash> usermod -a -G postfix apache chmod g+rx /var/spool/postfix/hold chmod g+rx /var/spool/postfix/incoming/ chgrp postfix /var/spool/postfix/incoming chgrp postfix /var/spool/postfix/hold </code>