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 at 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 at 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20040902/fa4568df/attachment-0001.bin>
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
Reasonably Related Threads
- Dovecot, postifx, virtual domains and deliver, what about luser_relay/fallback_relay?
- postifx mail server with ldap
- More about Postifx mail server configuration and all
- dovecot auth + postifx: how to disable PLAIN and LOGIN without TLS?
- Looking for HowTo Postifx, Dovecot and PostgreSQL