Brian Evans - Postfix List a écrit :
> Gaby Vanhegan wrote:
>> Is this sane or is it going to cause problems?
>>
>> /etc/postfix/main.cf:
>> ...
>> # Valid local users only exist in these locations
>> local_recipient_maps = proxy:unix:passwd.byname $alias_maps
>> $virtual_alias_maps
>> ...
>> # What are the domains that we handle mail for?
>> virtual_alias_domains = hash:/etc/postfix/virtual_domains
>> virtual_alias_maps = hash:/etc/postfix/virtual
>>
>> Should I be omitting the $virtual_alias_maps from the
>> local_recipient_maps or does it make no difference at all?
>>
> Do not include virtual_alias_maps in local_recipient_maps.
> virtual_alias_maps are checked globally for all Address Classes.
> 
> For more on Address Classes, see
> http://www.postfix.org/ADDRESS_CLASS_README.html

actually, this has nothing to do with classes.

virtual_alias_maps are _always_ used, so need not be specified in any
recipient maps.

to be clear, virtual_alias_maps apply to all mail, even for domains that
are not yours. for example
j...@yahoo.com  j...@gmail.com
will redirect mail as specified even if you are not yahoo.com.

Reply via email to