OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Question regarding virtual alias rewriting

From: Victor Duchovni (Victor.DuchovniMorganStanley.com)
Date: Tue Mar 04 2008 - 21:09:02 CST


On Wed, Mar 05, 2008 at 11:25:49AM +1000, Colin Campbell wrote:

> Hi,
>
> I have a setup as follows:
>
> Host A: running Exchange, handles email for example.com. Some users are
> local and some are "remote". Users that aren't local are sent to Host B.
>
> Host B: running Postfix, rewrites (virtual_alias_maps) example.com to
> example.net and uses Host C as relay host.

Unconditionally, or only for the known mail accounts that are "remote"?

> Suppose user1example.com sends an email to user2example.com, "user2"
> being one of the "remote" users. The email is forwarded from Host A to
> Host B. Host B then rewrites user2example.com to user2example.net and
> tries to send to Host C. Unfortunately host C is down, the email is
> delayed and Postfix sends a delay notification.
>
> Will the delay notification be subject to the virtual_alias_maps
> rewrite? (ie will user1example.com be rewritten to user1example.net).
> If so, what's the best method of stopping this? All suggestions welcome.

Yes, all recipients are subject to rewriting.

> I guess I should also ask if virtual_alias_map is the best way to handle
> this. Is it?

It is, but don't create rewrite rules that incorrectly rewrite too much.

--
        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:majordomopostfix.org?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.