[Dovecot] Dovecot LDA/LDAP
I'm a total newbie with Dovecot LDA and LDAP. To be honoust, I don't know what I'm doing.
My system runs CentOS 5.5, Postfix 2.3.3 and Dovecot 1.2.11. I try to set up Dovecot LDA. But whatever I'm trying, I fail.
2010-06-30T18:28:12.585128+02:00 h1690641 postfix/pipe[26443]: 84F012A00A55: to=test@domain.com, relay=dovecot, delay=0.07, delays=0.03/0.01/0/0.02, dsn=5.1.1, status=bounced (user unknown)
My current situation:
I'm using at the current server OpenLDAP, Postfix and Dovecot with the Postfix LDA. It works fine, but I want to use sieve. I've setup a second server. I'm using my current OpenLDAP directory.
The configurations:
/etc/dovecot.conf
# 1.2.11: /etc/dovecot.conf # OS: Linux 2.6.18-028stab064.7 i686 CentOS release 5.5 (Final) reiserfs login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login mail_location: maildir:/home/vmail/%i/Maildir/ mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh imap_client_workarounds(pop3): pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh namespace: type: private separator: / location: maildir:/home/vmail/%i/Maildir/ inbox: yes hidden: yes list: yes subscriptions: yes lda: postmaster_address: postmaster@cocamsterdam.net sendmail_path: /usr/lib/sendmail auth_socket_path: /var/run/dovecot/auth-master auth default: passdb: driver: ldap args: /etc/dovecot-ldap.conf userdb: driver: ldap args: /etc/dovecot-ldap.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 432 user: vmail group: mail
/etc/dovecot-ldap.conf
hosts = host.server.com
dn = cn=Manager,dc=domain,dc=com
dnpass = blabla
ldap_version = 3
base = dc=domain,dc=com
user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid
user_filter = (&(objectClass=posixAccount)(uid=%u))
pass_attrs = uid=user,userPassword=password,
homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid
pass_filter = (&(objectClass=posixAccount)(uid=%u))
/etc/postfix/main.cf (Virtual settings)
virtual_alias_domains = $virtual_alias_maps virtual_alias_expansion_limit = 1000 virtual_alias_maps = $virtual_maps virtual_alias_recursion_limit = 1000 virtual_destination_concurrency_limit = $default_destination_concurrency_limit virtual_destination_recipient_limit = $default_destination_recipient_limit virtual_gid_maps = static:12 virtual_mailbox_base = /home/vmail/ virtual_mailbox_domains = /etc/postfix/domains.cf virtual_mailbox_limit = 51200000 virtual_mailbox_lock = fcntl virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf virtual_minimum_uid = 100 virtual_transport = dovecot virtual_uid_maps = static:500
/etc/postfix/master.cf (Dovecot settings)
dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${recipient}
/etc/postfix/domains.cf
domain.com
/etc/postfix/ldap-users.cf
server_host = host.domain.com search_base = dc=domain,dc=com version = 3 query_filter = (&(objectclass=person)(mail=%s)) result_attribute = uid result_format = %s/Maildir/
I've used http://www.linuxmail.info as an example. That works fine, but I want more.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 30 Jun 2010, Frank den Hartog wrote:
My system runs CentOS 5.5, Postfix 2.3.3 and Dovecot 1.2.11. I try to set up Dovecot LDA. But whatever I'm trying, I fail.
2010-06-30T18:28:12.585128+02:00 h1690641 postfix/pipe[26443]: 84F012A00A55: to=test@domain.com, relay=dovecot, delay=0.07, delays=0.03/0.01/0/0.02, dsn=5.1.1, status=bounced (user unknown)
Looks like the user test@domain.com does not exist. First start is to turn on logging (http://wiki.dovecot.org/Logging) and verify that Dovecot LDAP and LDAP are used at all and then check the LDAP item of test.
Regards,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBTCxBQb+Vh58GPL/cAQLG+Qf/Y1tvItqOjVjz02cVsNMZIbqtVWMmobpp DmfBB3XwGlUKr6OBAugJkA/npQL5eJLsk4kKlbNU4kx2ujwqGaSNIdM47iqJ6cEQ GtJC2wA5kHNMw9cCQXeTUgb3Vo9Ny8q1iYtcp79HphYE5xdgdesDFOHLZ5CLvx6W RmEyes7O14lKyQ+nFwI5SruTQ75tr8RaVD3FphOgH5p/laOeNGfh29UPqBJriwBh GpVjsse3I/ArRuNWBDgfMLx82UXo5Yf8kkna7jOKhlHsmRKyS8eDMlPWMC/WnN+H fxIN+5+rg1+0A0Wsn/rD6PJLFIPzDJrXWrErtK0gwUmhTj254B+1EA== =+wAQ -----END PGP SIGNATURE-----
participants (2)
-
Frank den Hartog
-
Steffen Kaiser