Dovecot version dovecot-1.0.rc14-7 (opensuse) Postfix is using Dovecot LDA. I'm getting this error message, and I guess it's going to be a problem on my next task, which is to set up sieve scripts. Is there something wrong/contraditory on my config or I forgot something? I want: /var/dovecot-tests/: where user's inbox resides /var/dovecot-tests/home/: home dir (users will not be system users, this home is for sieve) /var/dovecot-tests/data/: mbox --- error msg --- --- --- --- auth(default): client in: AUTH 1 PLAIN service=IMAP lip=dovecot_machine_ip rip=client_ip auth(default): client out: CONT 1 auth(default): client in: CONT 1 AHRoYWlzY2diAHRyb2NhcjEyMw=auth(default): ldap(someuser,client_ip): bind search: base=dc=mydomain,dc=me filter=(&(object class=inetlocalmailrecipient)(uid=someuser)) auth(default): ldap(someuser,client_ip): result: mail(user)=someuser auth(default): ldap(someuser,client_ip): bind: dn=cn=112345,ou=people,dc=mydomain,dc=me auth(default): client out: OK 1 user=someuser auth(default): master in: REQUEST 9 13177 1 auth(default): ldap(someuser,client_ip): user search: base=dc=mydomain,dc=me scope=subtree fi lter=(&(objectclass=inetlocalmailrecipient)(mail=someuser)) fields=uid, uid auth(default): master out: USER 9 someuser user=someuser uid=1500 gid=12 imap-login: Login: user=<someuser>, method=PLAIN, rip=client_ip, lip=dovecot_machine_ip debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')Effective uid=1500, gid=12 debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, subscriptions=no debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')mbox: data=/var/dovecot-test/data/someuser:INBOX=/var/dovecot-test/someuser debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')mbox: root=/var/dovecot-test/data/someuser, index=/var/dovecot-test/data/someuser, inbox=/var/dovecot -teste-mailspool/someuser auth(default): client in: AUTH 1 PLAIN service=IMAP lip=dovecot_machine_ip rip=client_ip resp=dGhhaXNjZ2IAdGhhaXNjZ2IAdHJvY2FyMTIz auth(default): ldap(someuser,client_ip): bind search: base=dc=mydomain,dc=me filter=(&(object class=inetlocalmailrecipient)(uid=someuser)) auth(default): ldap(someuser,client_ip): result: mail(user)=someuser auth(default): ldap(someuser,client_ip): bind: dn=cn=112345,ou=people,dc=mydomain,dc=me auth(default): client out: OK 1 user=someuser auth(default): master in: REQUEST 10 16172 1 auth(default): ldap(someuser,client_ip): user search: base=dc=mydomain,dc=me scope=subtree fi lter=(&(objectclass=inetlocalmailrecipient)(mail=someuser)) fields=uid, uid auth(default): master out: USER 10 someuser user=someuser uid=1500 gid=12 imap-login: Login: user=<someuser>, method=PLAIN, rip=client_ip, lip=dovecot_machine_ip debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')Effective uid=1500, gid=12 debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, subscriptions=no debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')mbox: data=/var/dovecot-test/data/someuser:INBOX=/var/dovecot-test/someuser debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')mbox: root=/var/dovecot-test/data/someuser, index=/var/dovecot-test/data/someuser, inbox=/var/dovecot -teste-mailspool/someuser debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')Disconnected: Logged out debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')Disconnected: Logged out auth(default): client in: AUTH 1 PLAIN service=IMAP lip=dovecot_machine_ip rip=client_ip auth(default): client out: CONT 1 auth(default): client in: CONT 1 AHRoYWlzY2diAHRyb2NhcjEyMw=auth(default): ldap(someuser,client_ip): bind search: base=dc=mydomain,dc=me filter=(&(object class=inetlocalmailrecipient)(uid=someuser)) auth(default): ldap(someuser,client_ip): result: mail(user)=someuser auth(default): ldap(someuser,client_ip): bind: dn=cn=112345,ou=people,dc=mydomain,dc=me auth(default): client out: OK 1 user=someuser auth(default): master in: REQUEST 11 7014 1 --- error msg --- --- --- --- -- dovecot.conf --- --- --- --- login_user = dovecot mail_extra_groups = mail valid_chroot_dirs = /var/dovecot-test mail_location = mbox:/var/dovecot-test/data/%u:INBOX=/var/dovecot-test/%u login_process_per_connection = yes login_processes_count = 3 login_greeting login_greeting_capability = yes namespace private { separator = / prefix inbox = yes } mail_debug = yes mail_log_prefix = "debug ('%u' '%n' '%d' '%s' '%h' '%i')" auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_~@ auth_verbose = yes auth_debug = yes auth_debug_passwords = yes auth default { mechanisms = plain passdb ldap { args = /etc/dovecot/dovecot-ldap.conf_passdb } userdb ldap { args = /etc/dovecot/dovecot-ldap.conf_userdb } socket listen { master { path = /var/run/dovecot/auth-master mode = 0600 user = dovecot-test group = mail } } } -- dovecot.conf --- --- --- --- -- dovecot-ldap.conf (dovecot-ldap.conf_passdb and dovecot-ldap.conf_userdb are symlinks to this file) hosts = ldap.mydomain.me dn = uid=dovecot,ou=someou,dc=mydomain,dc=me dnpass = pass tls = no auth_bind = yes ldap_version = 3 base = dc=mydomain,dc=me scope = subtree deref = never user_global_uid = dovecot-test user_global_gid = mail # user_filter = (&(objectclass=inetlocalmailrecipient)(mail=%u)) # user_attrs = uid=user, uid=home pass_filter = (&(objectclass=inetlocalmailrecipient)(uid=%u)) pass_attrs = mail=user,userPassword=password -- --- --- --- --- thanks A 2 Z Ozone Generators Top-quality industrial, commercial, and agricultural ozone generator. http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=bf5730137c0a5c2b7dd75c67b2072100 -- Powered by Outblaze
Samuel HAMEAU
2008-Mar-27 10:56 UTC
[Dovecot] (userdb/ldap) Set home dovecot variable - How?
Hi, you should see this related thread http://www.dovecot.org/list/dovecot/2008-March/029206.html and especially the two last posts. sam k bah a ?crit :> > Dovecot version dovecot-1.0.rc14-7 (opensuse) > Postfix is using Dovecot LDA. > > I'm getting this error message, and I guess it's going to be a problem on my next task, which is to set up sieve scripts. > Is there something wrong/contraditory on my config or I forgot something? I want: > > /var/dovecot-tests/: where user's inbox resides > /var/dovecot-tests/home/: home dir (users will not be system users, this home is for sieve) > /var/dovecot-tests/data/: mbox > > --- error msg --- --- --- --- > auth(default): client in: AUTH 1 PLAIN service=IMAP lip=dovecot_machine_ip rip=client_ip > auth(default): client out: CONT 1 > auth(default): client in: CONT 1 AHRoYWlzY2diAHRyb2NhcjEyMw=> auth(default): ldap(someuser,client_ip): bind search: base=dc=mydomain,dc=me filter=(&(object > class=inetlocalmailrecipient)(uid=someuser)) > auth(default): ldap(someuser,client_ip): result: mail(user)=someuser > auth(default): ldap(someuser,client_ip): bind: dn=cn=112345,ou=people,dc=mydomain,dc=me > auth(default): client out: OK 1 user=someuser > auth(default): master in: REQUEST 9 13177 1 > auth(default): ldap(someuser,client_ip): user search: base=dc=mydomain,dc=me scope=subtree fi > lter=(&(objectclass=inetlocalmailrecipient)(mail=someuser)) fields=uid, uid > auth(default): master out: USER 9 someuser user=someuser uid=1500 > gid=12 > imap-login: Login: user=<someuser>, method=PLAIN, rip=client_ip, lip=dovecot_machine_ip > debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 > ')Effective uid=1500, gid=12 > debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 > ')Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, subscriptions=no > debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 > ')mbox: data=/var/dovecot-test/data/someuser:INBOX=/var/dovecot-test/someuser > debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 > ')mbox: root=/var/dovecot-test/data/someuser, index=/var/dovecot-test/data/someuser, inbox=/var/dovecot > -teste-mailspool/someuser > auth(default): client in: AUTH 1 PLAIN service=IMAP lip=dovecot_machine_ip rip=client_ip > resp=dGhhaXNjZ2IAdGhhaXNjZ2IAdHJvY2FyMTIz > auth(default): ldap(someuser,client_ip): bind search: base=dc=mydomain,dc=me filter=(&(object > class=inetlocalmailrecipient)(uid=someuser)) > auth(default): ldap(someuser,client_ip): result: mail(user)=someuser > auth(default): ldap(someuser,client_ip): bind: dn=cn=112345,ou=people,dc=mydomain,dc=me > auth(default): client out: OK 1 user=someuser > auth(default): master in: REQUEST 10 16172 1 > auth(default): ldap(someuser,client_ip): user search: base=dc=mydomain,dc=me scope=subtree fi > lter=(&(objectclass=inetlocalmailrecipient)(mail=someuser)) fields=uid, uid > auth(default): master out: USER 10 someuser user=someuser uid=1500 > gid=12 > imap-login: Login: user=<someuser>, method=PLAIN, rip=client_ip, lip=dovecot_machine_ip > debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 > ')Effective uid=1500, gid=12 > debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 > ')Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, subscriptions=no > debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 > ')mbox: data=/var/dovecot-test/data/someuser:INBOX=/var/dovecot-test/someuser > debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 > ')mbox: root=/var/dovecot-test/data/someuser, index=/var/dovecot-test/data/someuser, inbox=/var/dovecot > -teste-mailspool/someuser > debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 > ')Disconnected: Logged out > debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 > ')Disconnected: Logged out > auth(default): client in: AUTH 1 PLAIN service=IMAP lip=dovecot_machine_ip rip=client_ip > auth(default): client out: CONT 1 > auth(default): client in: CONT 1 AHRoYWlzY2diAHRyb2NhcjEyMw=> auth(default): ldap(someuser,client_ip): bind search: base=dc=mydomain,dc=me filter=(&(object > class=inetlocalmailrecipient)(uid=someuser)) > auth(default): ldap(someuser,client_ip): result: mail(user)=someuser > auth(default): ldap(someuser,client_ip): bind: dn=cn=112345,ou=people,dc=mydomain,dc=me > auth(default): client out: OK 1 user=someuser > auth(default): master in: REQUEST 11 7014 1 > --- error msg --- --- --- --- > > > -- dovecot.conf --- --- --- --- > login_user = dovecot > mail_extra_groups = mail > valid_chroot_dirs = /var/dovecot-test > mail_location = mbox:/var/dovecot-test/data/%u:INBOX=/var/dovecot-test/%u > login_process_per_connection = yes > login_processes_count = 3 > login_greeting > login_greeting_capability = yes > > namespace private { > separator = / > prefix > inbox = yes > } > mail_debug = yes > mail_log_prefix = "debug ('%u' '%n' '%d' '%s' '%h' '%i')" > auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_~@ > > auth_verbose = yes > auth_debug = yes > auth_debug_passwords = yes > > auth default { > > mechanisms = plain > > passdb ldap { > args = /etc/dovecot/dovecot-ldap.conf_passdb > } > userdb ldap { > args = /etc/dovecot/dovecot-ldap.conf_userdb > } > socket listen { > master { > path = /var/run/dovecot/auth-master > mode = 0600 > user = dovecot-test > group = mail > } > } > } > > > -- dovecot.conf --- --- --- --- > > -- dovecot-ldap.conf (dovecot-ldap.conf_passdb and dovecot-ldap.conf_userdb are symlinks to this file) > hosts = ldap.mydomain.me > dn = uid=dovecot,ou=someou,dc=mydomain,dc=me > dnpass = pass > tls = no > auth_bind = yes > ldap_version = 3 > base = dc=mydomain,dc=me > scope = subtree > deref = never > > user_global_uid = dovecot-test > user_global_gid = mail > > # > user_filter = (&(objectclass=inetlocalmailrecipient)(mail=%u)) > # > user_attrs = uid=user, uid=home > > pass_filter = (&(objectclass=inetlocalmailrecipient)(uid=%u)) > pass_attrs = mail=user,userPassword=password > -- --- --- --- --- > > thanks > > > A 2 Z Ozone Generators > Top-quality industrial, commercial, and agricultural ozone generator. > http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=bf5730137c0a5c2b7dd75c67b2072100 > >