[prev in list] [next in list] [prev in thread] [next in thread] 

List:       info-cyrus
Subject:    Re: Lmtp w/ Postfix and LDAP: change mailbox name when saving mail.
From:       "k bah" <kbah () linuxmail ! org>
Date:       2009-01-21 19:28:38
Message-ID: 20090121192838.A1AF2233F3 () ws5-3 ! us4 ! outblaze ! com
[Download RAW message or body]

> ----- Original Message -----
> From: "Adam Tauno Williams" <awilliam@whitemice.org>
> To: "Cyrus Mailing List" <info-cyrus@lists.andrew.cmu.edu>
> 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@domain.org
> > uid = username~domain.org
> > mailRoutingAddress = username~domain.org@domain.org (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@domain.org, 
> > 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@example.com
> mailRoutingAddress: fred
> ...
> 
> Then mail to "fred.t.smith@example.com" 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic