postfix-2.4.5 cyrus-imapd-2.3.8 -- I have Postfix configured to use LDAP, with Dovecot LDA. I was told Postfix is the one who decides what is the mailbox name. Dovecot LDA saves the message on the mailbox with name as specified by Postfix. The same should be true when using lmtp and Cyrus, as I was told on another list. My user entries on LDAP follow this format: mail= usern...@domain.org uid = username~domain.org mailRoutingAddress= username~domain....@domain.org
I started some of Postfix daemons (master.cf) with "-v" and noticed, when using Dovecot LDA, the correct mapping mail -> mailroutingaddress happens (usern...@domain.org -> username~domain....@domain.org, so Dovecot LDA saves the message to the mailbox username~domain.org) The same does not happen when using cyrus lmtp instead of dovecot lda. It does not show the mapping on the log (Postfix daemons still running with "-v"), and Cyrus saves the message to "username" as the mailbox name. I tried to understand the postfix queues order (http://www.franciosi.org/blog/blog_images/99_postfix_architecture.gif) but I cannot figure out what is wrong. The host running Postfix (this is not the MX/smtp-out) and Dovecot is imap.domain.org. I have the mx on another host. Mail comes from the internet, and postfix on smtp.domain.org sends to postfix on imap.domain.org. >From imap.domain.org main.cf: -- alias_maps = hash:/etc/aliases, ldap:ldapmycompany local_recipient_maps = hash:/etc/aliases, ldap:ldapmycompany virtual_alias_maps = hash:/etc/postfix/virtual virtual_alias_domains = hash:/etc/postfix/virtual virtual_maps = ldap:/etc/postfix/ldap-mycompany.cf (ldap-mycompany.cf has the same stuff defined here on ldapmycompany_* relay_recipient_maps = ldap:ldapmycompany ldapmycompany_server_host=ldapserver.domain.org ldapmycompany_search_base=ou=people,dc=domain,dc=org ldapmycompany_query_filter=(&(|(&(objectclass=postfixuser)(objectclass=inetlocalmailrecipient)) (objectclass=groupofuniquenames))(mail=%s)) ldapmycompany_result_attribute=mailRoutingAddress ldapcompany_domain=domain.org imap.domain.org smtp.domain.org mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp (when using cyrus) OR dovecot_destination_recipient_limit = 1 (when using dovecot) mailbox_transport = dovecot ---- master.cf: -- (just when using dovecot) dovecot unix - n n - - pipe flags=DRhu user=delivering-mail:mail argv=/usr/lib/dovecot/deliver -d ${recipient} ---- transport: -- (just when using cyrus/lmtp) domain.org lmtp:unix:/var/lib/imap/socket/lmtp ---- Considering the image with the Postfix queues (that one on the link), when I use Cyrus/lmtp instead of the Dovecot LDA, does the message arriving to usern...@domain.org take different paths? This is not clear to me and can define if Postfix specifies the mailbox name as "username" or "username~domain.org", if the path is different, I think, because then the LDAP mail -> mailroutingaddress mapping would not happen. If I was not clear, I want to know why when using cyrus/lmtp the "mail -> mailroutingaddress" mapping does not happen. thanks in advance = Slatwall - Guaranteed Low Prices Save Money. Buy Slatwall Direct From The Manufacturer. Ships Same Day. http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=277a4df8492197df54945a1aa23e1c28 -- Powered by Outblaze