|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Eray Aslan (eray.aslan
caf.com.tr)
Date: Fri Oct 19 2007 - 11:37:11 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 19.10.2007 17:39, Yoda Woda wrote:
> Here is my scenario: I have postfix and spamassassin installed in a
> gateway machine. Postfix accepts incoming messages, pipes them to
> spamassassin for scoring, which then pipes them back to postfix to be
> relayed to another machine. This work fine for us
>
> What I am trying to do now is to have spamassassin reject a message (say
> if the score is above 5) before it is re-injected back to postfix for
> relay. How can I accomplish this. Here is my master.cf
> <http://master.cf/>:
Spamassassin cannot reject or bounce a message. It just scores whatever
it is fed, reflecting input's spamminess. It is up to the calling
program to take the appropriate action based on the result from
spamassassin.
In any case, you should not reject or bounce a message once it is
accepted by your mailserver. It will result in backscatter (
http://www.postfix.org/BACKSCATTER_README.html ) and you will get
blacklisted.
You have a few options:
- Run SA in prequeue mode, that is before postfix acepts the message in
the first place. Not recommended unless you have a very low volume site
with a server which can handle the peak loads.
- Delete emails that score above a threshold. Again not recommended
because of possible false positives.
- Quarantine the spammy emails. Let the user release them if there are
any false positives. This might work depending on your userbase.
Usually too much of an hassle for the users.
- Tag and deliver the email to the end user (possibly to a designated
spam folder). Let the user decide what to do with it.
Last option is what I would recommend. Maildrop and procmail are
populer delivery agents that let you deliver the email to the
appropriate folders. Sieve is also a good choice if you are using
dovecot as your imap server. Amavisd-new is also recommended. It
integrates nicely with postfix, SA and virus scanners.
http://www.ijs.si/software/amavisd/
http://www.courier-mta.org/maildrop/
http://www.procmail.org/
http://wiki.dovecot.org/LDA/Sieve
--
Eray
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]