Hi all, I have a problem with domain information being truncated from username during ldap search, so it can not be used in mail_location. This happens when user part of the username %n is used in pass_filter in passdb ldap search. When I use %u all username information remains and mailbox can be located. Here is my configuration. In dovecot.conf I have two locations one for system and one for virtual users: ... mail_location = maildir:/var/spool/mail/%n mail_location = maildir:/var/spool/mail/vdom/%d/%n ... Also two configurations for passdb: ... passdb ldap { args = /etc/dovecot-ldap.conf } passdb ldap { args = /etc/dovecot-ldap-virt.conf } ... Here info is searched in ldap: /etc/dovecot-ldap-virt.conf ... base = dc=%d,ou=Virtual Domains,dc=eunet,dc=yu pass_filter = (&(objectClass=posixAccount)(uid=%n)) ... And the line in log file stating that maildir can not be located: mkdir(/var/spool/mail/vdom//cone/cur) failed: Permission denied Is this a bug or I am doing something wrong. Thank You, Nemanja
What does: ls -ld /var/spool/mail/vdom/ tells you? Can dovecot user create new folders there? HTH Oliver Nemanja Miletic wrote:> > > mkdir(/var/spool/mail/vdom//cone/cur) failed: Permission denied > > > Is this a bug or I am doing something wrong. > > Thank You, > Nemanja-- Oliver Schulze L. | Get my e-mail after a captcha in: Asuncion - Paraguay | http://tinymailto.com/oliver
On Thu, 2007-02-15 at 21:08 +0100, Nemanja Miletic wrote:> Here info is searched in ldap: /etc/dovecot-ldap-virt.conf > ... > base = dc=%d,ou=Virtual Domains,dc=eunet,dc=yu > pass_filter = (&(objectClass=posixAccount)(uid=%n)) > ...Your pass_attrs probably has "uid=user" in it. This makes the username same as the uid field's contents, so since you don't have domain in it that's dropped. You could just remove the "uid=user" from pass_attrs to fix it. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070216/6813351a/attachment.bin>
Possibly Parallel Threads
- New PowerPC Code Owner
- PORUKA KOJU STE POSLALI SADRZI VIRUS / VIRUS IN YOUR MAIL
- [Bug 104728] New: [possible regression] VMD crashes on startup on GT 640 / GK107 / NVE7
- How to get Greedy RA to not spill results of trivially rematerializable instructions
- How to get Greedy RA to not spill results of trivially rematerializable instructions