On 10/15/2012 05:29 AM, Glenn Park wrote:
Hello,
Is alias_maps the preferred way to specify aliases for the local
domain class? And virtual_alias_maps for all others?
It is the only way.
As documented:
alias_maps (default: see "postconf -d" output)
The alias databases that are used for local(8) delivery.
alias_database exists primarily for backward compatibility, and is
included in alias_maps by default (and is also the only lookup table to
be hashed by the newaliases(8) command)
While you COULD use virtual_alias_maps to alias
someb...@virtual.example.com to local user joe (which will be rewritten
to joe@$myorigin before attempting delivery), you shouldn't; use
fully-qualified addresses whenever and wherever possible.
What you CAN use virtual_alias_maps for is to alias a virtual recipient
to a specific local domain that is not @$myorigin, but this is not the
same as "an alias for the local domain class", as that specifically
refers to /all/ domains in $mydestination, at once.
--
J.