I get the impression from the SMTPD_POLICY_README and the access.5 pages
that you can respond with multiple actions before ending with an empty

No, where does it say so?

        Wietse


http://www.postfix.org/access.5.html -> Other Actions -> PREPEND:

"Prepend the specified message header to the message. When more than one PREPEND action executes, the first prepended header appears before the second etc. prepended header."

I interpret that as meaning if you send multiple prepend actions, the first one will be added to the headers first, the 2nd prepend will be added to the headers second, and so on, thus allowing multiple action=prepend responses.

No where in the access.5 or SMTPD_POLICY_README could i explicitly find anything saying you can only send one action.

I also confirm my assumption with the logic that is why an [empty line] is needed to let postfix know when you are done sending actions. Just the same as postfix sends multiple lines to the policy service. Otherwise if you can only send one action why do you need to send an [empty line] when the first action sent would be the end.

By your response im guessing postfix will only process one action per policy check. So if i want to process multiple actions like add a header and a info log entry i need to run two separate policy servers?

Reply via email to