Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
email:mailscanner [2025/06/16 08:22] – willy | email:mailscanner [2025/06/16 09:51] (current) – willy | ||
---|---|---|---|
Line 15: | Line 15: | ||
cd MailScanner-xxx | cd MailScanner-xxx | ||
./ | ./ | ||
+ | ln -s / | ||
+ | rc-update add msmilter-init default | ||
</ | </ | ||
- | follow instructions and answer the various questions | + | follow instructions and answer the various questions. |
+ | |||
+ | MailScanner setup, see [[https:// | ||
+ | / | ||
+ | < | ||
+ | Run As User = postfix | ||
+ | Run As Group = postfix | ||
+ | Incoming Queue Dir = / | ||
+ | Outgoing Queue Dir = / | ||
+ | MTA = msmail | ||
+ | MSMail Queue Type = short | ||
+ | MSMail Delivery Method = QMQP | ||
+ | MSMail Socket Type = inet | ||
+ | MSMail Socket Dir = / | ||
+ | MSMail Relay Port = 628 | ||
+ | MSMail Relay Address = 127.0.0.1 | ||
+ | </ | ||
+ | |||
+ | / | ||
+ | < | ||
+ | run_mailscanner=1 | ||
+ | </ | ||
+ | |||
+ | Postfix setup. | ||
+ | main.cf: | ||
+ | < | ||
+ | # MailScanner milter | ||
+ | # | ||
+ | # MailScanner milter may use QMQP for delivery | ||
+ | qmqpd_authorized_clients = 127.0.0.1 | ||
+ | </ | ||
+ | master.cf: | ||
+ | < | ||
+ | 628 | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Install MailWatch ====== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | Follow docs [[https:// | ||
+ | |||
+ | / | ||
+ | < | ||
+ | Always Looked Up Last = & | ||
+ | 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 | ||
+ | </ | ||
+ | |||
+ | Set queues permissions: | ||
+ | <code bash> | ||
+ | usermod -a -G postfix apache | ||
+ | chmod g+rx / | ||
+ | chmod g+rx / | ||
+ | chgrp postfix / | ||
+ | chgrp postfix / | ||
+ | </ | ||
+ | |||
+ | |||