Alessandro Vesely writes:

On 30/Apr/10 11:06, Matus UHLAR - fantomas wrote:
On 28.04.10 12:59, Alessandro Vesely wrote:
 The mechanism I was referring to is the one that sets whitelisting from 
rcptfilters. Courier splits recipients by temporarily rejecting the 
non-matching ones, so as to force the client to send the message twice.

That is precisely what I'd like to achieve:

if first recipient is abuse, temporarily reject all non-abuse recipients
if first recipient is not abuse, temporarily reject all abuse recipients

but looking at rcptfilter, I can't imagine how I'd implement this, do you have 
any hints?

Not many, besides the considerations below. I try and change the subject to see if I can catch Sam's attention on whether that extra smtpfilter is really needed...

No, you don't need smtpfilter in that case. Just install rcptfilter that terminates with a 0 exit code.

Since the rcptfilter never returns 99, the smtpfilter is never checked.

After the splitting mechanism, yet another possibility to whitelist global filters, in case one runs multiple ones, is to return "000 Ok." from, say, 0filter (the first one in its directory). However, this kind of "STMP response" is not documented in http://www.courier-mta.org/courierfilter.html so Sam's confirmation is needed also for this bit.

No -- that won't work. Courier itself supplies the SMTP result code, based on the exit status of the filter script.

Attachment: pgp9Aqar6IOV7.pgp
Description: PGP signature

------------------------------------------------------------------------------
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to