SpamAssassin - jhu-information-security-institute/NwSec GitHub Wiki
Installation
- Install spamassassin using:
$ sudo apt-get install spamassassin spamc
- Configure spamassassin
- Configure postfix to use spamassassin as a filter by adding the following lines to
/etc/postfix/master.cf
# ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (no) (never) (100) # ========================================================================== spamassassin unix - n n - - pipe user=spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
- Enable spamassassin using:
$ sudo systemctl enable spamassassin
- Reload the new configurations using:
$ sudo systemctl daemon-reload
- Restart postfix using:
$ sudo systemctl restart postfix
- Start spamassassin using:
$ sudo systemctl start spamassassin