On Thu, Oct 22, 2009 at 06:56:49PM +0200, Geert Hendrickx wrote:
> On Thu, Oct 22, 2009 at 09:36:06AM -0400, Wietse Venema wrote:
> > I'll implement the "regexp to edit command" code anyway. It's
> > cheaper than sending someone to a customer next time.
>
>
> Would this eg. also allow to substitute domains (s/@olddomain$/@newdomain$/)
> in RCPT TO, which is a FAQ?
With care, it may be possible to replace the recipient domain, but the
PCRE for this would be rather subtle, because the full command grammar
supports:
RCPT TO:<address> ORCPT=rfc822;address NOTIFY=... ...
and getting the parser right in a regular expression is rather
non-trivial.
If we want pre-cleanup address rewriting, it needs be to be done properly,
as an address rewriting feature. Not as a command-editing kludge.
--
Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[email protected]?body=unsubscribe%20postfix-users>
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.