On Wed, Jul 11, 2012 at 08:03:05AM -0400, Wietse Venema wrote:
> Ralf Hildebrandt:
> > When using a policy daemon in smtpd_data_restrictions:
> >
> > Is the policy daemon called ONCE for every
> > sender - recipient tuple?
>
> Postfix invokes smtpd_clientrestrictions ONCE for every client
> connection.
>
> Postfix invokes smtpd_helo_restrictions ONCE for every HELO or EHLO
> command.
>
> [fill in the gap yourself...]
Modulo "smtpd_delay_reject" which causes "client", "helo" and "sender"
restrictions to fire once per recipient.
>
> Postfix invokes smtpd_recipient_restrictions ONCE for every RCPT
> command.
After this it is one event per SMTP command. And so:
> Likewise, Postfix invokes smtpd_data_restrictions ONCE for every
> DATA command.
The "data" and "end_of_data" restrictions are once per transaction.
--
Viktor.