On 11/30/2012 10:45 AM, l...@airstreamcomm.net wrote:
> On 11/30/12 10:22 AM, Wietse Venema wrote:
>> l...@airstreamcomm.net:
>>> I am setup a 2.6.6 server with virtual domains and the entries in an
>>> alias_maps file (/etc/postfix/aliases) which look like this:
>>>
>>>       localuser :include:/etc/postfix/massmail/localuser
>>>       localuser2 :include:/etc/postfix/massmail/localuser2
>> As documented this format is supported in ALIAS_MAPS not
>> VIRTUAL_ALIAS_MAPS
>>
>>     Wietse
>>
> Understood, however I am wondering why the alias_maps are not
> working in my instance as it appears as if they are not being used
> at all.  I am not sure if this is a symptom of my configuration, or
> the intended functionality.

alias_maps are used by local(8) during delivery of local mail, and
is not used by virtual domains.


> 
> In my configuration is have:
> 
> alias_database = hash:/etc/aliases, hash:/etc/postfix/aliases

This defines the databases to be rebuilt when you issue the
"newaliases" command.  This has no effect on what alias databases
are used during local(8) delivery.
http://www.postfix.org/postconf.5.html#alias_database

> alias_maps = hash:/etc/aliases, hash:/etc/postfix/aliases

List of databases used during local(8) delivery.
http://www.postfix.org/postconf.5.html#alias_maps
http://www.postfix.org/aliases.5.html


> 
> Either of these maps appear to be recognized?
> 

These maps are not used during virtual delivery.  Please see
virtual_alias_maps; note the format is different.
http://www.postfix.org/postconf.5.html#virtual_alias_maps
http://www.postfix.org/virtual.5.html



It might be helpful to review
http://www.postfix.org/ADDRESS_REWRITING_README.html



  -- Noel Jones

Reply via email to