SysAdmin EM:
> Hello everyone, I did not know what title to put the problem, but I happen
> to detail what is the drawback.
>
> I use the header_checks file to insert a data in the Reply-To header but
> depending on the provider it is added incorrectly.
>
> # /etc/postfix/header_checks
>
> /^From: (.*@primarydomain.com)/ PREPEND Reply-to: $1
>
> In Hotmail it is generated incorrectly:
>
> Reply-To: "user@" <secondomain.com [email protected]>, <
> [email protected]>
>
> In gmail is generated correctly:
>
> Reply-to: "[email protected]" <<[email protected]>
>
> I really don?t know how to fix it
Is there any reason why you could not use the entire Reply-To value?
If the From: address is broken, what is the point of trying to
repair it with a regular expression-based parser? Parsing email
address syntax with regular expressions is notoriously difficult.
I would not comment on the merits of unconditionally prepending
Reply-To, especially when there already is such a header.
Wietse