> ----- Original Message ----- > From: "Adam Tauno Williams" <awilliam@xxxxxxxxxxxxx> > To: "Cyrus Mailing List" <info-cyrus@xxxxxxxxxxxxxxxxxxxx> > Subject: Re: Lmtp w/ Postfix and LDAP: change mailbox name when saving mail. > Date: Wed, 21 Jan 2009 13:37:28 -0500 > > > On Wed, 2009-01-21 at 14:01 -0300, k bah wrote: > > I need to know then how things are processed when mail arrives, > > from the Cyrus point of view, of course. > > First Postfix searches the user on LDAP, like this: > > > > query_filter=(&(|(&(objectclass=postfixuser)(objectclass=inetlocalmailrecipient)) > > (objectclass=groupofuniquenames))(mail=%s)) > > result_attribute=mailRoutingAddres) > > on my LDAP server the fields are: > > mail = username@xxxxxxxxxx > > uid = username~domain.org > > mailRoutingAddress = username~domain.org@xxxxxxxxxx (uid is the > > "user part") > > My question is, how Cyrus decides what is the mailbox name, from > > what Postfix gives or it just looks the user part of the email? I > > mean, Cyrus knows the destination email is username@xxxxxxxxxx, > > then it assumes the mailbox name is "username"? Or it uses the > > "user part" of whatever Postfix gave(?), because if this is true, > > Cyrus should be using the user part of the mailroutingaddress > > field..? > > If your MTA (Postfix) is delivering via LMTP then Cyrus does what it is > told. The mailbox is determined by Postfix. We use the > "mailRoutingAddress" schema you describe above; the user portion of the > e-mail address is completely irrelevant. If you have > > ... > mailLoadAddress: fred.t.smith@xxxxxxxxxxx > mailRoutingAddress: fred > ... > > Then mail to "fred.t.smith@xxxxxxxxxxx" should get stuffed into the > INBOX "user.fred". > -- Thanks. I started some of Postfix daemons with "-v" and noticed mailroutingaddress shows up on the logs when using Dovecot LDA, but not when Postfix is configured to use Cyrus lmtp socket. From this I started to think the issue is with Postfix config, this along with what you said points to exactly it: Postfix config. I'm gonna (re)check/study the Postfix queues order and address the problem to the Postfix mailing list. thanks! = Slatwall - Guaranteed Low Prices Save Money. Buy Slatwall Direct From The Manufacturer. Ships Same Day. http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=1eaeab72fe25701fdf05fbc6900fc46f -- Powered by Outblaze ---- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html