[EMAIL PROTECTED] 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 :-

[EMAIL PROTECTED] (local domain, but forwards remotely)
[EMAIL PROTECTED] (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:

[EMAIL PROTECTED]       [EMAIL PROTECTED]

to redirect the address to a specific account.

What seems to happen is mail for [EMAIL PROTECTED] ends up being forwarded to the remote entry for [EMAIL PROTECTED], 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?

if you want different .forward, you need different unix accounts. whether directly or after virtual_alias_maps expansion, you need different accounts.

alternatively, you can deliver via an external MDA that does what you want.


Reply via email to