Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

3) Modify the /etc/postfix/master.cf file; first, change the first 'smtp' line of the file to:

No Format
  smtp      inet  n       -       -       -       -       smtpd -o content_filter=spamfilter

Then, add the following (a call to our newly-created spamfilter script) at the end:

No Format
  spamfilter
            unix  -       n       n       -       -       pipe
     flags=Rq user=spamd argv=/usr/bin/spamfilter.sh -oi -f ${sender} ${recipient}

...

3) Modify the /etc/postfix/master.cf file; first, change the first 'smtp' line of the file to:

No Format
  smtp      inet  n       -       -       -       -       smtpd -o content_filter=spamfilter

Then, add the following (a call to our newly-created spamfilter script) at the end:

No Format
  spamfilter
            unix  -       n       n       -       -       pipe
     flags=Rq user=spamd argv=/usr/bin/spamfilter.sh -oi -f ${sender} ${recipient}

...