[Dovecot] domain truncated
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
Yes, that is not the problem.
As can be seen from the error message: mkdir(/var/spool/mail/vdom//cone/cur) failed: Permission denied the domain is missing. It should be /var/spool/mail/vdom/testpostotiput.co.yu/cone/
besause cone@testpostotiput.co.yu was the username used at the pop3 authentication.
On 2/15/07, Oliver Schulze L. oliver@samera.com.py wrote:
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.
It works now when I removed "uid=user".
Thank you.
On 2/16/07, Timo Sirainen tss@iki.fi wrote:
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.
participants (3)
-
Nemanja Miletic
-
Oliver Schulze L.
-
Timo Sirainen