OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: virtual_alias_maps and LDAP

From: AlxFrag (alxfraggmail.com)
Date: Thu Jan 10 2008 - 10:25:46 CST


Rob Nevins wrote:
> Hello,
>
> I have a setup whereby I use LDAP to verify an existing user, but need
> to accept mail for: postmaster, abuse and root for each virtual domain
> hosted. Currently those usernames do not exist in the LDAP
> directory. I thought by using the virtual_alias_maps parameter I
> could just forward those usernames to "real" ones. My configuration:
>
> # Virtual mail user for AD authentication
> virtual_mailbox_domains = /etc/postfix/virtual_domains
> virtual_mailbox_base = /mail
> virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf
> virtual_uid_maps = static:500
> virtual_gid_maps = static:500
> *virtual_alias_maps = hash:/etc/postfix/virtual
>
> *Is it possible to accept mail for postmaster, abuse and root without
> having those usernames in the LDAP database?
>
> Thanks!
>
> -Rob
>
i've used:
*virtual_alias_maps = hash:/etc/postfix/virtual

*in file virtual i've placed:

postmastermydomain1 real_usermydomain
abusemydomain1 real_usermydomain
webmastermydomain1 real_usermydomain

postmastermydomain2 real_usermydomain
abusemydomain2 real_usermydomain
webmastermydomain2 real_usermydomain

the mail address in the left column are not "real address" and they are
not hosted in my LDAP server. The only real address is real_usermydomain.

*

*