Steven King wrote:
> Hey everyone,
>
> Does anyone have any good documentation on how to rewrite the
> envelope_sender based on an regexp map?
>
> I need to do the following. I have an application that is broken, and
> sets the "mail from" envelope-sender value to "From:user"@domain.tld.
>
> Obviously the quotes and use of From: in this field is a violation of
> RFC822.
>
> Reading the regexp man page suggests that the following would work in
> sender_canonical_maps:
>
> /\"From:(.*)\"@(.*)/ REPLACE $...@${2}
>
> However, this does not seem to get matched in any way.
>
> Anyone have any ideas?
/^\"From:(.*)\"@(.*)/ REPLACE From: $...@${2}
/Per Jessen, Zürich