Skip to content

Instantly share code, notes, and snippets.

@carlhoerberg carlhoerberg/a.md

Last active Sep 1, 2015
Embed
What would you like to do?
Spamassassin and postfix on Ubuntu 14.04

Install:

apt-get install spamassassin postfix

in /etc/postfix/master.cf modify;

smtp      inet  n       -       -       -       -       smtpd
  -o content_filter=spamassassin

and add:

spamassassin    unix  -       n       n       -       -       pipe
  flags=Rq user=nobody argv=/usr/bin/spamc -u ${user} -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}

Spamc will now be run as the user reciving the email and then delivered with sendmail back

service spamassassin restart
postfix reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.