Noel Jones a écrit :
> On 9/19/2009 5:56 PM, Gerry Gam wrote:
>> I have this in virtual:
>>
>> nob...@mydomain.com nobody
>> @mydomain.com me
>>
>> Reading the docs I'm led to believe that the first line has precedence
>> and should catch those emails (I have nobody set in /etc/aliases to
>> /dev/null). However, emails to nob...@mydomain.com are getting through
>> to account "me".
> 
> virtual_alias__maps lookups are recursive, so nob...@mydomain.com
> matches @mydomain.com.
> 
> The solution is to rewrite to a different domain, typically @localhost,
> with localhost listed in mydestination.
> 
> nob...@mydomain nob...@localhost
> @mydomain.com me
> 

Alternatively, stop the recursion by returning the key as a result:

nob...@mydomain nob...@mydomain
@mydomain.com m...@mydomain

PS. It is a good idea to use full addresses (with domain part) in
virtual aliases.

Reply via email to