On 01/May/10 15:49, Sam Varshavchik wrote:
>> BTW, is outgoing mail considered whitelisted by default?
>
> Yes.

Hm... quite a different kind of filters.

>>>> 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.
>
> There may be multiple global filters that get installed. This is a
> mechanism by which a global filter indicates that filtering should stop
> and a message is to be accepted. In run_filter():
>
>   if (rc)
>     return (rc < 0 ? 0 : rc);
>
> So the negative return value is suppressed, and becomes 0. Meanwhile,
> the negative return value aborts the loop in run_filter_dir() that goes
> through the filters in alphabetical order.

Thanks a lot for all clarifications, Sam!

I think I'll use this "000 Ok" to whitelist messages, only when the 
sole recipient is the abuse-mailbox.

-- 

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

Reply via email to