leed-post | 27 Aug 16:26

local/virtual alias problems


Hello all

Could I just check the correct way of doing this, I've tried a few
different things but never with the correct outcome.

I have a real local domain, with a user in /etc/aliases that gets
forwarded remotely.

Now I want to add a real local user to a virtual domain with the same
name as that alias, eg :-

test <at> somewhere (local domain, but forwards remotely)
test <at> somewhere-else (virtual domain, local user)

What seems to happen is mail for test <at> somewhere-else ends up being 
forwarded to the remote entry for test <at> somewhere, and not being 
delivered locally.

To try and fix the problem, I made my real domain a virtual as well, but 
then all my real users end up being rejected as they're not listed in 
the virtual alias table.

I know I could just use a different username for the virtual domain, but 
I was just interested if there was another way?

Cheers
Lee

(Continue reading)

mouss | 27 Aug 17:13
Favicon

Re: local/virtual alias problems

leed-post <at> techyes.co.uk wrote:
> 
> Hello all
> 
> Could I just check the correct way of doing this, I've tried a few
> different things but never with the correct outcome.
> 
> I have a real local domain, with a user in /etc/aliases that gets
> forwarded remotely.
> 
> Now I want to add a real local user to a virtual domain with the same
> name as that alias, eg :-
> 
> test <at> somewhere (local domain, but forwards remotely)
> test <at> somewhere-else (virtual domain, local user)
> 

when you say virtual, you mean "virtual alias domain"? if so, you must 
know that at delivery time, the domain part in local domains is ignored.

use virtual_alias_maps:

test <at> somewhere-else	test-else <at> localhost

to redirect the address to a specific account.

> What seems to happen is mail for test <at> somewhere-else ends up being 
> forwarded to the remote entry for test <at> somewhere, and not being 
> delivered locally.
> 
(Continue reading)


Gmane