Thus spake Sam Varshavchik on Thu, May 13, 2004 at 06:12:06PM CDT[EMAIL PROTECTED] writes:Sam, I've read this all over 3 or 4 times, and it's very arcane! - and a bit
>I found a workaround for this, and it's apparently a bug in Courier. >Standard policy for mail accounts here is to have the account's
>.mailfilters/rcptfilter exit with an EXITCODE of 99, which causes my virus
>filter to look at the message as well as .mailfilters/smtpfilter. If I >exit
>rcptfilter with EXITCODE = 0, then the problem doesn't occur. I can safely
>do this if I make it conditional on TCPREMOTEIP being the server's IP, or
>the localhost IP, or some other trusted IP.
The localmailfilter man page:
rcptfilter
The mail filter is invoked initially when the remote mail server specifies this address as a recipient. FILTER should terminate with one of the following exit codes: 0 - this sender is acceptable; 99 - this sender is acceptable, but I want to run the content filter for this the message; any other non-zero exit code - the sender is not acceptable, reject the message.
difficult to get my head around. I understnad that the final result of the
DATA command signifies the fate of the email to the sending system. In this
case the 412 error is being delivered after the rcpt to envelope directive.
Correct. This is done in order to separate all recipient addresses that will do content filtering from recipient addresses that don't.
The first recipient's status determines what's going to happen to the remaining recipients. If the first recipient selects content filtering, the remaining recipients that also select content filtering will be accepted, and recipients that do not do content filtering will be deferred with a 4xx code. If the first recipient will not do content filtering, the remaining recipients that also don't do content filtering will be accepted, and the other deferred with a 4xx.
The 4xx causes the sender to retry the delivery attempt, with the remaining recipients, later. What this accomplishes is that the list of recipients that do content filtering are separated from those that don't, and there's a separate delivery attempt for each group of recipients.
pgp00000.pgp
Description: PGP signature
