Matus UHLAR - fantomas via Postfix-users:
> I guess the inline code available since 3.7 supports this:
> 
> header_checks = regexp:{ {/^Authentication-Results: $myhostname/ IGNORE} }
> 
> This would only remove problem headers and exempt MX backups.
> 
> >If it helps, header_checks happen before Milters see the message,
> >while milter_header_checks happen when a Milter adds a header.
> 
> I am very glad it works this way.

It works with some limitations:

- You'd better add $$ at the end of the pattern, to anchor the regular 
expression.

- Youe example will not escape '.' in the $myhostname value. Perhaps
  you can disable special chatacters with \Q and \E, as in:

  header_checks = pcre:{ {/^Authentication-Results: \Q$myhostname\E$$/ IGNORE} }

Note that pcre, not regexp.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to