|
From: Alan D. <We...@Om...> - 2006-01-08 14:28:32
|
On 1/8/2006 8:52 AM, cw wrote: > The concern though is that I would expect this mailbox to be applied > only to messages addressed to the hostname of the server. I've tested > a few other aliases defined in there and it would seem that anything > addressed to one of those aliases under *any* domain is redirected as > per /etc/mail/aliases unless it is explicitly defined in the domain as > something else. > > So is this expected behaviour? Personally I would have expected each > domain to be treated completely separately the aliases defined in > /etc/mail/aliases only to be applied to the server hostname which > isn't even domaina.tld it is host.domaina.tld Yes, this is expected behavior. Aliases are system-wide, so they apply by default to ALL domains. Addresses for specific domains or hosts belongs in the virtusertable. If you want the virtusertable to be used strictly for certain domains (or all domains) without consulting the aliases file, then you can define a "catch all" for each of those domains with a destination of error:nouser. That will restrict the addresses for those domains to only the addresses defined in the virtusertable. Alan |