Viktor Dukhovni via Postfix-users:
> On Wed, Apr 29, 2026 at 11:04:05AM -0400, Bill Cole via Postfix-users wrote:
>
> > I have found that matching multiple times on the same pattern in the same
> > header in header_checks is not function, which is consistent with the man
> > page which says that once there is a match, the 'action' is performed and
> > the next header is checked.
> >
> > I cannot find any explicit mention in the Postfix documentation for any way
> > to do multiple actions on a single match, however I may have missed it. Is
> > there some trick I can use or will I need to implement this in a Milter?
>
> No support for multiple actions is documented in header_checks(5). If
> you must have that, you'll need a milter or SMTP content filter.
The Postfix table API supports only one result per query. You can
implement multiple matches with a unionmap, but that still produces
a single result string as output (individual outputs joined with ',').
Postfix supports ${number} expansion in header_checks results. If
a header_checks result could contain multiple commands, then Postfix
would be vulnerable to command injection, similar to little Bobby
tables in https://xkcd.com/327/
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]