From: Victor Duchovni (no email)
Date: Tue Jul 01 2008 - 16:36:14 EDT
On Tue, Jul 01, 2008 at 10:26:47PM +0200, Magnus B?ck wrote:
> On Tuesday, July 01, 2008 at 17:45 CEST,
> mouss <> wrote:
>
> [...]
>
> > you can use recipient_bcc_maps with pcre: something like
> >
> > /(.)/ $1 at bcc dot example dot com
>
> ITYM
>
> /(.*)/ $1 at bcc dot example dot com
This is fine with recipient_bcc_maps, where the lookup key is in "internal
form". If one wants to use similar rewriting with virtual alias maps,
one needs to be careful with quotes:
if !/@example\.net$/
/"(.*)"@example\.com$/ "${1}@example.com"@example.net
/(.*)@example\.com$/ ${1}@
endif
In this context (virtual_alias_maps), lookups are recursive, so it is
easy to get loops, make sure the RHS address is exempt from the rewrite.
-- 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:?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.
|
|
|