|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Appending
domain to a virtual mailbox lookup
From: Andrew B. Panphiloff (andrew
panfilov.org.ru)
Date: Thu Sep 01 2005 - 11:45:52 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Etienne Goyer wrote:
>Hi,
>
>I am installing Postfix and Cyrus imapd to serve virtual mail domain. I
>am using OpenLDAP as an authentication source and lookup table for Postfix.
>
>For Cyrus imapd virtual domain support, I need to deliver via LMTP to
>mailbox
domain. I have configured Postfix to lookup the destination
>mailbox as such :
>
>main.cf:
>virtual_transport = lmtp:unix:/var/lib/imap/socket/lmtp
>virtual_mailbox_domains = example.com, test.com
>virtual_mailbox_maps = ldap:/etc/postfix/ldap-virtual-mailbox.cf
>virtual_alias_maps = ldap:/etc/postfix/ldap-virtual-mailbox.cf
>
>ldap-virtual-mailbox.cf:
>search_base = o=Something
>query_filter = mail=%s
>result_attribute = uid
>
>
result_attribute = mail
>
>The uid attribute in LDAP in unqualified, ie it's "egoyer", not
>"egoyer
test.com". For correct delivery via LMTP, I would need to have
>the domain the mail was originally destined to appended to the uid. As
>it is, I can see that the LMTP transport try to deliver mail to
>uid
myhostname, but I would like it to deliver to uid
domain.
>
>Exemple : mail received for etienne.goyer
test.com, LDAP search return
>"egoyer" (the uid attribute), mail delivered to egoyer
test.com via LMTP.
>
>Is this possible ? Would there be a better way of achieving the same
>result ?
>
>Thanks for any suggestion !
>
>Etienne Goyer
>
>
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]