Re: Rewriting the envelope_sender

2010-11-12 Thread Victor Duchovni
On Fri, Nov 12, 2010 at 12:07:21PM +0100, Jeroen Geilman wrote: >>> 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 ha

Re: Rewriting the envelope_sender

2010-11-12 Thread Jeroen Geilman
On 11/12/2010 11:16 AM, Per Jessen wrote: 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

Re: Rewriting the envelope_sender

2010-11-12 Thread Per Jessen
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. > > Ob

Re: Rewriting the envelope_sender

2010-11-10 Thread Steven King
I got the REPLACE from the syntax of header_checks man page. http://www.postfix.org/header_checks.5.html I was originally trying to implement this as a regexp header check. /\"From:(.*)\"@(.*)/$...@${2} That regexp in sender_canonical worked. Thanks. On 11/10/10 9:35 AM, Jeroen Geilman wr

Re: Rewriting the envelope_sender

2010-11-10 Thread Jeroen Geilman
On 11/10/2010 08:17 AM, 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.t

Rewriting the envelope_sender

2010-11-09 Thread Steven King
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