[Dovecot] postfix - dovecot - ldap
Hallo, I want to run postfix - dovecot - openldap working together
The first problem is, that dovecot doesn't create the directories
/usr/local/mail/abcshop.at/bamm/Maildir cur new tmp
although I can contact the Dovecot-Server
telnet localhost 143 OK .... 1 login bamm@abcshop.at secret OK Logged in
/usr/local/mail/ is owned by virtual:virtual
If I uncomment the line #mail_location = maildir:/usr/local/mail/%d/%n/Maildir
dovecot creates the directories /usr/local/mail/abcshop.at/bamm/mail
What is going wrong in my configuration files?
Thanks for help! Martin
dovecot-ldap.conf
hosts = localhost dn = uid=dovecot,ou=services,dc=abcshop,dc=at dnpass = secret ldap_version = 3 base = ou=people,dc=abcshop,dc=at
user_attrs = mailHomeDirectory=home,mailUidNumber=uid,mailGidNumber=gid,mailStorageDirectory=mail user_filter =(&(objectClass=PostfixBookMailAccount)(uniqueIdentifier=%u))
pass_attrs = uniqueIdentifier=user,userPassword=password pass_filter = (&(objectClass=PostfixBookMailAccount)(uniqueIdentifier=%u)) default_pass_scheme = PLAIN
dovecot.conf:
protocols = imap imaps disable_plaintext_auth = no ssl_cert_file = /usr/local/etc/dovecot/mail.example.com-cert.pem ssl_key_file = /usr/local/etc/dovecot/mail.example.com-key.pem log_path=/var/log/dovecot.log info_log_path=/var/log/dovecot.log mail_privileged_group = mail dotlock_use_excl = yes verbose_proctitle = yes first_valid_uid = 1000 first_valid_gid = 1000 mail_location = maildir:/usr/local/mail/%d/%n/Maildir maildir_copy_with_hardlinks = yes protocol imap { mail_plugins = quota imap_quota login_greeting_capability = yes imap_client_workarounds = delay-newmail netscape-eoh tb-extra-mailbox-sep }
protocol pop3 { pop3_uidl_format = %08Xu%08Xv mail_plugins = quota pop3_client_workarounds = outlook-no-nuls oe-ns-eoh } protocol managesieve { sieve=~/.dovecot.sieve sieve_storage=~/sieve } protocol lda { postmaster_address = postmaster@abcshop.at mail_plugins = quota sendmail_path = /usr/sbin/sendmail } auth_username_format = %Lu auth default { mechanisms = plain passdb ldap { args = /usr/local/etc/dovecot-ldap.conf } userdb ldap { args = /usr/local/etc/dovecot-ldap.conf } user = root socket listen { master { path = /var/run/dovecot/auth-master mode = 0600 user = virtual group = virtual } client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } } dict { } plugin { quota_rule = *:storage=1048576 quota = maildir }
- Martin Sengstschmid ms35@lanolino.at:
Hallo, I want to run postfix - dovecot - openldap working together
The first problem is, that dovecot doesn't create the directories
/usr/local/mail/abcshop.at/bamm/Maildir cur new tmp
although I can contact the Dovecot-Server
telnet localhost 143 OK .... 1 login bamm@abcshop.at secret OK Logged in
/usr/local/mail/ is owned by virtual:virtual
If I uncomment the line #mail_location = maildir:/usr/local/mail/%d/%n/Maildir
dovecot creates the directories /usr/local/mail/abcshop.at/bamm/mail
Do you specify the location in LDAP with an attribute? Then prepend maildir like this:
maildir:/usr/local/mail/abcshop.at/bamm/mail
p@rick
-- state of mind Agentur für Kommunikation, Design und Softwareentwicklung
Patrick Koetter Tel: 089 45227227 Echinger Strasse 3 Fax: 089 45227226 85386 Eching Web: http://www.state-of-mind.de
Amtsgericht München Partnerschaftsregister PR 563
Hallo,
thank you for trying to help me:
the bamm.ldif file is ldapsearch -x -LLL -b "uniqueIdentifier=bamm@abcshop.at,ou=it,ou=people,dc=abcshop,dc=at" "(objectclass=*)"
dn: uniqueIdentifier=bamm@abcshop.at, ou=it,ou=people,dc=abcshop,dc=at objectClass: organizationalPerson objectClass: person objectClass: top objectClass: PostfixBookMailAccount objectClass: extensibleObject cn: Bamm Bamm givenName: Bamm mail: bamm@abcshop.at mailAlias: bamm.bamm@abcshop.at mailAlias: postmaster@abcshop.at mailAlias: abuse@abcshop.at mailEnabled: TRUE mailGidNumber: 2000 mailHomeDirectory: /usr/local/mail/abcshop.at/bamm mailQuota: 2621440 mailStorageDirectory: maildir:/usr/local/mail/abcshop.at/bamm/Maildir mailUidNumber: 2000 sn: Bamm uniqueIdentifier: bamm@abcshop.at userPassword: bamm_secret creatorsName: cn=Manager,dc=abcshop,dc=at createTimestamp: 20040621072925Z modifiersName: cn=Manager,dc=abcshop,dc=at modifyTimestamp: 20040629211316Z
dovecot-ldap.conf ... user_attrs = mailHomeDirectory=home,mailUidNumber=uid,mailGidNumber=gid,mailStorageDirectory=mail
....
If I login as bamm@abcshop.at I get OK Logged in but /usr/local/mail/ remains empty.
Martin
- Martin Sengstschmid ms35@lanolino.at:
Hallo, I want to run postfix - dovecot - openldap working together
The first problem is, that dovecot doesn't create the directories
/usr/local/mail/abcshop.at/bamm/Maildir cur new tmp
although I can contact the Dovecot-Server
telnet localhost 143 OK .... 1 login bamm@abcshop.at secret OK Logged in
/usr/local/mail/ is owned by virtual:virtual
If I uncomment the line #mail_location = maildir:/usr/local/mail/%d/%n/Maildir
dovecot creates the directories /usr/local/mail/abcshop.at/bamm/mail
Do you specify the location in LDAP with an attribute? Then prepend maildir like this:
maildir:/usr/local/mail/abcshop.at/bamm/mail
p@rick
- Martin Sengstschmid ms35@lanolino.at:
Hallo,
thank you for trying to help me:
Welcome.
What does the Dovecot Log say?
p@rick
the bamm.ldif file is ldapsearch -x -LLL -b
"uniqueIdentifier=bamm@abcshop.at,ou=it,ou=people,dc=abcshop,dc=at"
"(objectclass=*)"dn: uniqueIdentifier=bamm@abcshop.at, ou=it,ou=people,dc=abcshop,dc=at objectClass: organizationalPerson objectClass: person objectClass: top objectClass: PostfixBookMailAccount objectClass: extensibleObject cn: Bamm Bamm givenName: Bamm mail: bamm@abcshop.at mailAlias: bamm.bamm@abcshop.at mailAlias: postmaster@abcshop.at mailAlias: abuse@abcshop.at mailEnabled: TRUE mailGidNumber: 2000 mailHomeDirectory: /usr/local/mail/abcshop.at/bamm mailQuota: 2621440 mailStorageDirectory: maildir:/usr/local/mail/abcshop.at/bamm/Maildir mailUidNumber: 2000 sn: Bamm uniqueIdentifier: bamm@abcshop.at userPassword: bamm_secret creatorsName: cn=Manager,dc=abcshop,dc=at createTimestamp: 20040621072925Z modifiersName: cn=Manager,dc=abcshop,dc=at modifyTimestamp: 20040629211316Z
dovecot-ldap.conf ... user_attrs =
mailHomeDirectory=home,mailUidNumber=uid,mailGidNumber=gid,mailStorageDirectory=mail....
If I login as bamm@abcshop.at I get OK Logged in but /usr/local/mail/ remains empty.
Martin
- Martin Sengstschmid ms35@lanolino.at:
Hallo, I want to run postfix - dovecot - openldap working together
The first problem is, that dovecot doesn't create the directories
/usr/local/mail/abcshop.at/bamm/Maildir cur new tmp
although I can contact the Dovecot-Server
telnet localhost 143 OK .... 1 login bamm@abcshop.at secret OK Logged in
/usr/local/mail/ is owned by virtual:virtual
If I uncomment the line #mail_location = maildir:/usr/local/mail/%d/%n/Maildir
dovecot creates the directories /usr/local/mail/abcshop.at/bamm/mail
Do you specify the location in LDAP with an attribute? Then prepend maildir like this:
maildir:/usr/local/mail/abcshop.at/bamm/mail
p@rick
-- state of mind Agentur für Kommunikation, Design und Softwareentwicklung
Patrick Koetter Tel: 089 45227227 Echinger Strasse 3 Fax: 089 45227226 85386 Eching Web: http://www.state-of-mind.de
Amtsgericht München Partnerschaftsregister PR 563
Although "LOGIN" worked
in dovecot-info.log is written
dovecot: Jan 13 19:32:12 Info: imap-login: Aborted login (auth failed, 1 attempts): user=bamm@abcshop.at, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Martin
Patrick Ben Koetter schrieb:
- Martin Sengstschmid ms35@lanolino.at:
Hallo,
thank you for trying to help me:
Welcome.
What does the Dovecot Log say?
p@rick
the bamm.ldif file is ldapsearch -x -LLL -b
"uniqueIdentifier=bamm@abcshop.at,ou=it,ou=people,dc=abcshop,dc=at"
"(objectclass=*)"dn: uniqueIdentifier=bamm@abcshop.at, ou=it,ou=people,dc=abcshop,dc=at objectClass: organizationalPerson objectClass: person objectClass: top objectClass: PostfixBookMailAccount objectClass: extensibleObject cn: Bamm Bamm givenName: Bamm mail: bamm@abcshop.at mailAlias: bamm.bamm@abcshop.at mailAlias: postmaster@abcshop.at mailAlias: abuse@abcshop.at mailEnabled: TRUE mailGidNumber: 2000 mailHomeDirectory: /usr/local/mail/abcshop.at/bamm mailQuota: 2621440 mailStorageDirectory: maildir:/usr/local/mail/abcshop.at/bamm/Maildir mailUidNumber: 2000 sn: Bamm uniqueIdentifier: bamm@abcshop.at userPassword: bamm_secret creatorsName: cn=Manager,dc=abcshop,dc=at createTimestamp: 20040621072925Z modifiersName: cn=Manager,dc=abcshop,dc=at modifyTimestamp: 20040629211316Z
dovecot-ldap.conf ... user_attrs =
mailHomeDirectory=home,mailUidNumber=uid,mailGidNumber=gid,mailStorageDirectory=mail....
If I login as bamm@abcshop.at I get OK Logged in but /usr/local/mail/ remains empty.
Martin
- Martin Sengstschmid ms35@lanolino.at:
Hallo, I want to run postfix - dovecot - openldap working together
The first problem is, that dovecot doesn't create the directories
/usr/local/mail/abcshop.at/bamm/Maildir cur new tmp
although I can contact the Dovecot-Server
telnet localhost 143 OK .... 1 login bamm@abcshop.at secret OK Logged in
/usr/local/mail/ is owned by virtual:virtual
If I uncomment the line #mail_location = maildir:/usr/local/mail/%d/%n/Maildir
dovecot creates the directories /usr/local/mail/abcshop.at/bamm/mail
Do you specify the location in LDAP with an attribute? Then prepend maildir like this:
maildir:/usr/local/mail/abcshop.at/bamm/mail
p@rick
participants (2)
-
Martin Sengstschmid
-
Patrick Ben Koetter