On 01/May/10 00:03, Sam Varshavchik wrote:
> Alessandro Vesely writes:
> [... whitelisting with maildrop filtering API ...]
>
> No, you don't need smtpfilter in that case. Just install rcptfilter that 
> terminates with a 0 exit code.

That is to make it whitelisted, right? However, since terminating with 
0 is the default, why isn't that tantamount to having no rcptfilter?

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

Fine. What I still don't understand, is how should the other users say 
that they /want/ the global filter to be run. I've always used 
"allfilters", so I'm not familiar with this at all.

BTW, is outgoing mail considered whitelisted by default?

>> 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.

Err... I meant 0filter to be a filter, not a script. I spotted some 
code near the end of the dofilter() function that sets rc=-1 if the 
first char of the response is '0', but I'm not sure what functionality 
it is meant to provide.

-- 

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

Reply via email to