csere matyas wrote:
> we have a client that doesnt want to loose any mail, and asked us not to
> scan any mail addressed to him.
> is there a way to do recipient whitelisting, eg if the mail is to
> [EMAIL PROTECTED] it would always pass, and get delivered?

Make a copy of plugins/check_badrcpto and replace 'bad' with 'good' everywhere.
 Then change the code that returns no_such_user and replace it with "return OK"
instead.  Lastly, make sure that this is the first rcpt hook that is loaded
(basically move it higher in the config/plugins file).

However, this will only shortcircuit the rcpt tests.  If you have any blacklists
running at connect time, there is no general way to stop them from blocking
messages (since you haven't found out the RCPT yet).  Similarly, if you are
running any antivirus plugins (and you should at least run clamav since it costs
you nothing), you should not send those messages on (it would be grossly
irresponsible).

If I was in this situation, I might be inclined to suggest that this client take
his business elsewhere, as he is part of the problem.  There are so many
messages that can be safely blocked during SMTP, with almost neglible false
positives, and plenty of spam that still gets through.  The only times I have
had legit messages get blocked, I determined later that it was due to gross
misconfiguration of the remote MTA.  And I am in a corporate environment where
lost messages are not acceptable either.

John

p.s. Please start a completely new thread, not by replying to a previous
message.  Most mail/news clients thread using hidden headers, so changing the
subject line is not sufficient to start a new thread.

Reply via email to