Wietse Venema:
> 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 no-re...@primarydomain.com>, <
> > nore...@primarydomain.com>
> > 
> > In gmail is generated correctly:
> > 
> > Reply-to: "u...@secondomain.com" <<no-re...@primarydomain.com>
> > 
> > I really don?t know how to fix it
> 
> Is there any reason why you could not use the entire Reply-To value?

Sorry, I meant the From: value as in:

        /^From: (.+)/ PREPEND Reply-to: $1

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

Reply via email to