OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Postmaster and abuse default in virtual_alias_map

From: Alain NAKACHE (alainalinto.net)
Date: Sun Jul 30 2006 - 01:00:44 CDT


Sandy Drobic a écrit :
> Alain NAKACHE wrote:
>> Hi,
>>
>> I need to configure a default management of postmaster<domain> or
>> abuse<domain> on a virtual domains hosting.
>>
>> My custormers have the ability to define these emails in the
>> virtual_alias_maps table but if they don't I want to define them by
>> using a static file.
>>
>> This config has a chance to work :
>>
>> virtual_alias_maps = ldap:/etc/postfix/ldap/valias.cf
>> hash:/etc/postfix/valiasdefault.cf
>> ...
>>
>> /etc/postfix/valiasdefault.cf:
>> postmaster postmaster
>> abuse postmaster
>>
>> I am wrong ?
>
> Unqualified addresses will be qualified using $myorigin (default is
> $mydomain). This is probably not, what what you want to achieve.
>
> The select query should check that the domain exists in your config
> and then return postmasterfqdn-domain as result. otherwise all
> postmaster and abuse not set by the customer will end up in your
> mailbox. (^-^)
>
> Sandy
>
My problem is not on recipient validation. What I want to know is :

1/ Are tables in a virtual_alias_maps red sequentially, i.e. first ldap
table and if not found an alias then hash table in my config ? Where in
documentation can I find such explanation ?

2/ Is the syntax 'postmaster' can match any alias which user part is
'posmaster' and so on. Do I have to use regexp table ? Where in the
documentation can I find sequences of tests made on tables ?

Alain