postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: virtual_alias_domains

Re: virtual_alias_domains

From: Jeroen Geilman <jeroen_at_nospam>
Date: Mon Oct 18 2010 - 20:43:57 GMT
To: postfix-users@postfix.org

On 10/18/2010 10:36 PM, Jerrale G wrote:
> On 10/18/2010 4:29 PM, The Doctor wrote:
>> REcently I have noted that virtual_alias_domains is growing.
>>
>> Is their some way for main.cf to look a file up instead of
>> having to read a whole line?
>>
>
> You are limited to using mysql, ONE file, ldap, postgresql, or mssql
> for each virtual_*_* parameter or any parameter that looks up something.

Certainly not.

All *_maps parameters can be specified as many times as necessary, for
instance:

virtual_alias_maps = hash:/etc/postfix/virtual,
mysql:/etc/postfix/my_virtual, ldap:/etc/postfix/ldap_virtual

They're not called mapS for nothing.

virtual_alias_domains is not a map setting per se, as it does nothing
with the RHS of the lookup - but it works the same way.

 From the postconf(5) man page:

Specify a list of host or domain names, "/file/name" or "type:table
<http://www.postfix.org/DATABASE_README.html>" patterns, separated by
commas and/or whitespace.

i.e. "a list of" any of the map types postfix supports.

-- J.