> On Jun 28, 2016, at 2:15 PM, Benning, Markus <i...@markusbenning.de> wrote: > > Policy service is just a table lookup. From what restriction do you call > the policy lookup?
Postfix is configured to call the policy server at protocol state RCPT (smtpd_recipient_restrictions) and END-OF-MESSAGE (smtpd_end_of_data_restrictions). I understand what a policy service does, just want to know whether or not Postfix parses the submitted mail message to get 'From:' address and send it to policy server. This is not mentioned in Postfix doc: http://www.postfix.org/SMTPD_POLICY_README.html > The From: is a header instead of a smtp protocol field. > It may be only available within a header check. This makes sense. But with header check, you get one header each time, we cannot compare two headers. A content filter should work in this case, but it's not my purpose. ---- Zhang Huangbin, founder of iRedMail project: http://www.iredmail.org/ Time zone: GMT+8 (China/Beijing).