On Tue, Nov 09, 2010 at 06:30:51PM +0100, Jose-Marcio Martins da Cruz wrote:

> Noel Jones wrote:
>> On 11/9/2010 8:39 AM, Lima Union wrote:
>
>> clamav-milter operates on the message data, so all postfix 
>> smtpd_*_restrictions -- which operate on the envelope -- will get a chance 
>> to reject mail before the data is transmitted.
>> sid-milter operates on the envelope.  It will probably run before 
>> smtpd_recipient_restrictions, but that's not such a big deal since it's a 
>> fairly lightweight process (minimal CPU, but it does trigger a DNS 
>> lookup).
>
>
> Not sure. The MTA sequentially calls each milter at each SMTP step.
>
> See :
>
>   https://www.milter.org/developers/overview#ControlFlow
>
> So, e.g., for each recipient, postfix will call each milter one after the 
> other.
>
> However, I don't know if postfix checks smtpd_recipient_restrictions before 
> calling milters or after. I suppose before, but I'm not sure. Wietse ???

The "RCPT TO" command is passed to the milter after Postfix restriction
processing. Even rejected commands are are passed to milters, but the
milter is informed that the command (recipient) is rejected.

-- 
        Viktor.

Reply via email to