Re: Lmtp w/ Postfix and LDAP: change mailbox name when saving mail.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 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=mailRoutingAddress


 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..?

 Right now Postfix is using Dovecot LDA, and the mailbox names are as expected.

 I'm trying to understand how Cyrus decides the mailbox name, how can I debug it? I think Postfix is correctly configured to what I want it to do (mailbox name = uid field from LDAP or "user part of mailroutingaddress").


 thanks again


> ----- Original Message -----
> From: "Dan White" <dwhite@xxxxxxx>
> To: "k bah" <kbah@xxxxxxxxxxxxx>
> Cc: Info-cyrus@xxxxxxxxxxxxxxxxxxxx
> Subject: Re: Lmtp w/ Postfix and LDAP: change mailbox name when saving mail.
> Date: Wed, 21 Jan 2009 09:16:08 -0600
> 
> 
> Dan White wrote:
> >
> > sasl_ldapdb_uri: ldap://ldap.example.org
> > sasl_ldapdb_mech: GSSAPI
> > sasl_ldapdb_canon_attr: uid
> > #sasl_canon_user_plugin: ladpdb
> > #imap_sasl_canon_user_plugin: ldapdb
> > #pop3_sasl_canon_user_plugin: ldapdb
> > #nntp_sasl_canon_user_plugin: ldapdb
> > #sieve_sasl_canon_user_plugin: ldapdb
> > lmtp_sasl_canon_user_plugin: ldapdb
> >
> >
> 
> On second thought, this probably won't do anything useful, since 
> the user is not authenticating to LMTP.
> 
> A Postfix regex map (or LDAP map) may be able to convert the 
> recipient before it gets handed off to LMTP.
> 
> - Dan

=
Antennas.us Store
Antennas 100 kHz to 26 GHz (COTS) Commercial- Industrial-Government.
http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=687e4b3ea622e686069e429cb0ff5733


-- 
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

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux