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

Re: Virtual Domains

From: Victor Duchovni <Victor.Duchovni_at_nospam>
Date: Mon Oct 11 2010 - 21:41:01 GMT
To: postfix-users@postfix.org

On Tue, Oct 12, 2010 at 10:21:26AM +1300, Jeremy Bowen wrote:

> my /etc/postfix/virtual file looks like this:
> @example.com jeremy

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

    jane@virtual1.com jane@example.com

> @virtual1.com fred

    @virtual1.com fred@example.com

> @virtual2.com bill

    @virtual2.com bill@example.com

By now you probably figure out the issue. Virtual mappings are recursive,
(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

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

-- Viktor.