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: mouss (usebsdfree.fr)
Date: Tue Aug 01 2006 - 17:17:03 CDT


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

no, not a hash, unless you're ready to script and sync. Keep using ldap
since your domains are there. create a (ldap) map that implements:

postmasterdomain.example postmasterexample.com
abusedomain.example abuseexample.com

whenever "domain.example" is found in your map of managed domains.

PS. It is a good idea to forget about addresses with no domains (be them
"foo" or "foo") even if MTAs allow them in some cases.