hi,
i'm trying to set a dovecot/pop + postfix couple with ldap authentification. and i'v got a lots of troubles.
hers's my dovecot.conf
protocols = pop3 login = imap login = pop3 first_valid_gid = 1000 last_valid_gid = 0 mail_extra_groups = mail default_mail_env = maildir:/var/mail/%1u/%u/Maildir mbox_locks = dotlock flock auth = default auth_mechanisms = plain auth_userdb = ldap /etc/dovecot-ldap.conf auth_passdb = ldap /etc/dovecot-ldap.conf auth_verbose = yes
here's dovecot-ldap.conf
hosts = 192.168.128.1 dn = cn=manager,o=dental-on-line dnpass = dolmaster ldap_version = 3 base = ou=002f83,ou=machines,ou=fr,o=dental-on-line deref = never scope = subtree user_attrs = uid user_filter = (&(objectClass=posixAccount)(uid=%u)) pass_attrs = uid,userPassword pass_filter = (&(objectClass=posixAccount)(uid=%u)) default_pass_scheme = PLAIN user_global_uid = 1000 user_global_gid = 1000
and, a ldif exempl:
dn: uid=mwerly, ou=002F83, ou=machines, ou=fr, o=dental-on-line displayName: WERLY Marc shadowExpire: -1 mobile: 000 objectClass: top objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: posixAccount objectClass: shadowAccount userPassword:: eHh4 shadowLastChange: 10000 facsimileTelephoneNumber: 01.43.21.54.75 uid: mwerly uidNumber: 12164 cn: Marc WERLY shadowInactive: -1 loginShell: /bin/bash shadowMin: 0 gidNumber: 100 shadowMax: 999999 gecos: mwerly homeDirectory: /home/mwerly sn: Marc shadowWarning: 99
1 it seems unable to authenticate with pop3-login: Login: mwerly [192.168.1.7] Aug 31 17:47:35 dental01 pop3: I/O leak: 0x8050d70 (0) Aug 31 17:47:35 dental01 pop3: I/O leak: 0x8084db0 (1)
:o( 2 if I comment user_global_uid = 1000 user_global_gid = 1000 dovecot can't get uidnumber from ldap, in spite of its presence in ldap entry :'o(
3 postfix seem able to send messages to local virtual users(thanks of ldap/pam ldap authentification). the /var/mail/%u files are up2dated by postfix, but I simply can't get any mails with thoses dovcot logs: pop3-login: Login: mwerly [192.168.1.7] Aug 31 17:47:35 dental01 pop3: I/O leak: 0x8050d70 (0) Aug 31 17:47:35 dental01 pop3: I/O leak: 0x8084db0 (1)
:`o[[[[[
please help
2 if I comment user_global_uid = 1000 user_global_gid = 1000 dovecot can't get uidnumber from ldap, in spite of its presence in ldap entry :'o(
You have to specify in your user_attrs which parameters give the uidnomber and the gidnumber in your ldap directory:
# User attributes in order: # Virtual user name (user@domain) # Home directory # MAIL environment # System user name (for getting user's groups from /etc/group) # - For virtual users you don't want to use this, so this defaults to none. # System UID # System GID #user_attrs = uid,homeDirectory,,,uidNumber,gidNumber
ok, thanks, it gets uidnumber. but, what does mean thoses I/O leak??? is it some kind of internal errors???dovecot can't authenticate any way Cedric Foll wrote:
2 if I comment user_global_uid = 1000 user_global_gid = 1000 dovecot can't get uidnumber from ldap, in spite of its presence in ldap entry :'o(
You have to specify in your user_attrs which parameters give the uidnomber and the gidnumber in your ldap directory:
# User attributes in order: # Virtual user name (user@domain) # Home directory # MAIL environment # System user name (for getting user's groups from /etc/group) # - For virtual users you don't want to use this, so this defaults to none. # System UID # System GID #user_attrs = uid,homeDirectory,,,uidNumber,gidNumber
-- richard venne dental-on-line 01 43 27 94 24
On 31.8.2004, at 18:59, venne wrote:
3 postfix seem able to send messages to local virtual users(thanks of ldap/pam ldap authentification). the /var/mail/%u files are up2dated by postfix, but I simply can't get any mails with thoses dovcot logs: pop3-login: Login: mwerly [192.168.1.7] Aug 31 17:47:35 dental01 pop3: I/O leak: 0x8050d70 (0) Aug 31 17:47:35 dental01 pop3: I/O leak: 0x8084db0 (1)
Looks like the only way for those I/O leaks to happen is if user is authenticated ok, but mailbox can't be opened for some reason. I fixed this now and also made it always log at least some error message. The I/O leaks themselves are just warnings that everything wasn't cleaned up properly.
Your real problem is probably that the pop3 user don't have permissions to the mailbox or it doesn't exist.
the /var/mail/%u files exist, and I put 777 mask. but, i can't read my mails, even when i'm authentified. how to allow mbox with dovecot???
my setup doesn't make any thing
default_mail_env = mbox:/var/mail/%u
:o( Timo Sirainen wrote:
On 31.8.2004, at 18:59, venne wrote:
3 postfix seem able to send messages to local virtual users(thanks of ldap/pam ldap authentification). the /var/mail/%u files are up2dated by postfix, but I simply can't get any mails with thoses dovcot logs: pop3-login: Login: mwerly [192.168.1.7] Aug 31 17:47:35 dental01 pop3: I/O leak: 0x8050d70 (0) Aug 31 17:47:35 dental01 pop3: I/O leak: 0x8084db0 (1)
Looks like the only way for those I/O leaks to happen is if user is authenticated ok, but mailbox can't be opened for some reason. I fixed this now and also made it always log at least some error message. The I/O leaks themselves are just warnings that everything wasn't cleaned up properly.
Your real problem is probably that the pop3 user don't have permissions to the mailbox or it doesn't exist.
-- richard venne dental-on-line 01 43 27 94 24
On 2.9.2004, at 15:25, venne wrote:
the /var/mail/%u files exist, and I put 777 mask. but, i can't read my mails, even when i'm authentified. how to allow mbox with dovecot???
my setup doesn't make any thing
default_mail_env = mbox:/var/mail/%u
That doesn't work. It would expect /var/mail/user to be a directory containing mboxes. You want something like:
default_mail_env = mbox:~/mail:INBOX=/var/mail/%u
(and if you only want INBOX, see last chapter of http://wiki.dovecot.org/moin.cgi/VirtualUsers)
i saw that:
- Only /var/mail mboxes
With POP3 it's been traditional that users have their mails only in /var/mail directory. IMAP however supports having multiple mailboxes, so each user has to have a private directory where the mailboxes are stored. Dovecot also needs a directory for it's indexes unless you disable them completely.
I have no plans to support INBOX-only IMAP. If you only need POP3, you might then as well use another POP3 server. Dovecot isn't anything special as a POP3 server.
:o( my users dont have thier own homedirectory, only a mbox.
Timo Sirainen wrote:
On 2.9.2004, at 15:25, venne wrote:
the /var/mail/%u files exist, and I put 777 mask. but, i can't read my mails, even when i'm authentified. how to allow mbox with dovecot???
my setup doesn't make any thing
default_mail_env = mbox:/var/mail/%u
That doesn't work. It would expect /var/mail/user to be a directory containing mboxes. You want something like:
default_mail_env = mbox:~/mail:INBOX=/var/mail/%u
(and if you only want INBOX, see last chapter of http://wiki.dovecot.org/moin.cgi/VirtualUsers)
-- richard venne dental-on-line 01 43 27 94 24
participants (3)
-
Cedric Foll
-
Timo Sirainen
-
venne