Richard Smits wrote:
Hello,
I have a puzzle which I hope someone can help me with. I want to do a
header check with postfix, and if the subject, contains a word, call a
script or program to put the mail message in a quarantaine.
postfix can't run a program, but you can HOLD, DISCARD, FILTER, ...
based on the contents of _one_ header or body line.
I also want to make an exception for some email recipients.
postfix header and body checks have no exception mechanism. if you want
exceptions, you need a content filter.
I know we can do this with amavis and spamassassin, but I don't want to
use spamassassin. The reason for this construction is that our isp will
implement a spamfilter, and i don't want to check the emails twice.
If the message has a spamtag in the subject, i want to put it in a
quarantainedir.
a simple way to do this is to do it in the MDA (maildrop, dovecot-sieve,
... etc). you can do it in postfix, but it requires some work.
But some people want to receive their spam, so those are
the exceptions.
It is wrong to ask for the solution of too many problems. one problem at
a time.
So, is this possible with postfix alone, and without spamassassin ?
the answer depends on what "this" you mean. you asked multiple
questions... more than one is too much ;-p