Hi

> The only con is that milter can't apply multiple SA settings when single 
> mail has multiple destination users - it only has to use single setting for 
> them.

We found a way around this, we use MIMEDefang as Milter and have
built database lookups in the config.

Usually, per user SA settings are:

* Score Level on which an email is considered spam
* Action to perform on email considered spam

In the RCPT TO Milter Phase (check_recipient routine of MIMEDefang)

We load those two values, for the first recipient.

Then on each subsequent recipient we compare:

=> Values identical to first recipient: Accept recipient.
=> Values different: REJECT Recipient with error 452 

What happens is a bit depending on the sending MTA. Some try every
recipient, some stop after the first rejected recipient.

452 is used to tell the sender 'too many recipients' which causes the
sending MTA to send the email to the recipients that were accepted and
re-open a new connection to send the same email to the remaining
recipients.

This may cause some delays in email delivery if an email is sent to may
recipients but else works flawlessly.

Mit freundlichen Grüssen

-Benoît Panizzon-
-- 
I m p r o W a r e   A G    -    Leiter Commerce Kunden
______________________________________________________

Zurlindenstrasse 29             Tel  +41 61 826 93 00
CH-4133 Pratteln                Fax  +41 61 826 93 01
Schweiz                         Web  http://www.imp.ch
______________________________________________________

Reply via email to