postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Virtual Domains

Re: Virtual Domains

From: Jeremy Bowen <jeremy_at_nospam>
Date: Mon Oct 11 2010 - 23:58:31 GMT
To: "postfix-users@postfix.org" <postfix-users@postfix.org>

On 10/11/2010, "Victor Duchovni" <Victor.Duchovni@morganstanley.com>
wrote:
>Avoid confusing yourself with localpart-only addresses on the RHS of
>address lookup tables. Given your myorigin setting, Make that:
>
> @example.com jeremy@example.com
> jane@virtual1.com jane@example.com
> @virtual1.com fred@example.com
> @virtual2.com bill@example.com

I have changed /etc/postfix/virtual and done a postmap on it and reloaded
postfix.

I now have something like
@example.com jeremy@example.com
@virtual1.com jane@example.com
bill@virtual.com bill@example.com
jane@example.com jane@example.com
etc.

>By now you probably figure out the issue. Virtual mappings are recursive,

Doh! Yeah, that was it.
I've previously been running with virtual mailboxes but this setup is
using
UNIX system accounts (hence the simple RHS) which confused me.

>(and catch-alls are a bad idea, but in any case) so jane, fred and bill
>match the first rule. You could add identity mappings:
>
> jane@example.com jane@example.com
> fred@example.com fred@example.com
> bill@example.com bill@example.com

This is critical

>or you could stop shooting yourself in the foot with catch-all
aliases! :-)

Yeah, that could work :-)
Thanks for the advice.