Denny Schierz
2010-Jul-29 10:36 UTC
[Dovecot] LDAP + mail_location: Get "%d" from customfield
hi, my mail_location looks like: mail_location = maildir:/imap/spool/%d/%1n/%n:INDEX=/imap/spool/% d/indexes/%1n/%n for example: /imap/spool/domain.foo/a/anton/new The problem is, that the user log in with only the username and no domainpart. So, Dovecot looks into: /imap/spool/a/anton/new what isn't correct. We created an LDAP entry in which domain the user is and searching for a way, to get it working. So, only what I want is to use our customfield as domainpart for the mail_location. Postfix works perfect and delivers the messages in the correct folder. any idea? cu denny -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Dies ist ein digital signierter Nachrichtenteil URL: <http://dovecot.org/pipermail/dovecot/attachments/20100729/7c0e216e/attachment-0002.bin>
Pascal Volk
2010-Jul-29 16:15 UTC
[Dovecot] LDAP + mail_location: Get "%d" from customfield
On 07/29/2010 12:36 PM Denny Schierz wrote:> hi, > > my mail_location looks like: > > mail_location = maildir:/imap/spool/%d/%1n/%n:INDEX=/imap/spool/% > d/indexes/%1n/%n > > for example: > > /imap/spool/domain.foo/a/anton/new > > The problem is, that the user log in with only the username and no > domainpart. So, Dovecot looks into: > > /imap/spool/a/anton/new > > what isn't correct. We created an LDAP entry in which domain the user is > and searching for a way, to get it working. So, only what I want is to > use our customfield as domainpart for the mail_location. Postfix works > perfect and delivers the messages in the correct folder. > > any idea? > > cu dennySee http://wiki.dovecot.org/MainConfig#Authentication_processes ? auth_default_realm Regards, Pascal -- The trapper recommends today: defaced.1021018 at localdomain.org
On 07/29/2010 12:36 PM, Denny Schierz wrote:> hi, > > my mail_location looks like: > > mail_location = maildir:/imap/spool/%d/%1n/%n:INDEX=/imap/spool/% > d/indexes/%1n/%n > > for example: > > /imap/spool/domain.foo/a/anton/new > > The problem is, that the user log in with only the username and no > domainpart. So, Dovecot looks into: > > /imap/spool/a/anton/new > > what isn't correct. We created an LDAP entry in which domain the user is > and searching for a way, to get it working. So, only what I want is to > use our customfield as domainpart for the mail_location. Postfix works > perfect and delivers the messages in the correct folder. > > any idea? > > cu denny >Hi Denny, had the same problem and solved it by changing the pass_attrs entry in dovecot-ldap.conf file. Mine is pass_attrs = mail=user,userPassword=password Reads: LDAP attribute "mail" will become the Dovecot field "user". This user can then be separed by %d and %n variables. Hope this helps, Radim
Possibly Parallel Threads
- 2.0.12 Coredump under Solaris 10
- 1.2.14 --- auth(default) Error: LDAP: Connection lost to LDAP server, reconnecting
- Performance settings for 500-1000User/per day
- Dovecot 2.0.9: Thunderbird 3.1.9: Very slow while open sent folder with many (4k>) mails
- mail_location / mail_home