Hello guys,
I'm trying to configure de expire plug in, all the configuration seems to be right but when I launch

# /opt/dovecot/sbin/dovecot --exec-mail ext /opt/dovecot/libexec/dovecot/expire-tool --test
Error: userdb(u...@mydomain.it) didn't return uid
Info: User lookup failed: u...@mydomain.it

even if I see in the logs that the authentication process worked fine (ldap):

dovecot: 2009-10-16 15:33:03 Info: auth(default): master in: USER 1 u...@mydomain.it service=expire dovecot: 2009-10-16 15:33:03 Info: auth(default): ldap(u...@mydomain.it): user search: base=dc=mydomain,dc=it scope=subtree filter=(&(objectClass=inetOrgPerson)(mail=u...@mydomain.it)) fields=mailMessageStore,mailquota dovecot: 2009-10-16 15:33:03 Info: auth(default): ldap(u...@mydomain.it): result: mailMessageStore(home)=/var/vmail/0/0/0/4/0 mailquota(quota_rule=*:backend)=104857600S dovecot: 2009-10-16 15:33:03 Info: auth(default): master out: USER 1 u...@mydomain.it home=/var/vmail/0/0/0/4/0 quota_rule=*:backend=104857600S

here my conf:

# OS: SunOS 5.9 sun4v log_path: /var/log/dovecot.log info_log_path: /var/log/dovecot-info.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap pop3 listen(default): *:143 listen(imap): *:143 listen(pop3): *:10100 ssl_disable: yes ssl_cert_file: /opt/csw/etc/dovecot.pem ssl_key_file: /opt/csw/etc/dovecot.pem disable_plaintext_auth: no login_dir: /opt/dovecot/var/run/dovecot/login login_executable(default): /opt/dovecot/libexec/dovecot/imap-login login_executable(imap): /opt/dovecot/libexec/dovecot/imap-login login_executable(pop3): /opt/dovecot/libexec/dovecot/pop3-login first_valid_uid: 1 first_valid_gid: 12 mail_privileged_group: daemon mail_uid: 1 mail_gid: 12 mail_location: maildir:%h mail_debug: yes mail_executable(default): /opt/dovecot/libexec/dovecot/imap mail_executable(imap): /opt/dovecot/libexec/dovecot/imap mail_executable(pop3): /opt/dovecot/libexec/dovecot/pop3 mail_plugins(default): quota imap_quota expire mail_plugins(imap): quota imap_quota expire mail_plugins(pop3): quota expire
mail_plugin_dir(default): /opt/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /opt/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /opt/dovecot/lib/dovecot/pop3
pop3_uidl_format(default): %08Xu%08Xv
pop3_uidl_format(imap): %08Xu%08Xv
pop3_uidl_format(pop3): UID%u-%v
pop3_logout_format(default): top=%t/%p, retr=%r/%b, del=%d/%m, size=%s
pop3_logout_format(imap): top=%t/%p, retr=%r/%b, del=%d/%m, size=%s
pop3_logout_format(pop3): top=%t/%p, retr=%r/%b, del=%d/%m, size=%s, bytes=%i/%o
auth default:
 master_user_separator: *
 verbose: yes
 debug: yes
 debug_passwords: yes
 passdb:
   driver: passwd-file
   args: /opt/dovecot/etc/passwd.masterusers
   master: yes
 passdb:
   driver: ldap
   args: /opt/dovecot/etc/dovecot-ldap.conf
 userdb:
   driver: ldap
   args: /opt/dovecot/etc/dovecot-ldap-userdb.conf
 socket:
   type: listen
   master:
     path: /opt/dovecot/var/run/dovecot/auth-master
     mode: 384
     user: dovecot
     group: dovecot
plugin:
 quota: maildir
 expire: Trash 1 Trash/* 1 Spam 30
 expire_dict: proxy::expire
dict:
 expire: db:/opt/dovecot/var/lib/dovecot/expire.db

and ldap one:

# cat /opt/dovecot/etc/dovecot-ldap.conf |grep -v "#"|grep -v ^$
hosts = localhost
sasl_bind = no
auth_bind = yes
ldap_version = 3
base = dc=mydomain,dc=it
scope = subtree
user_attrs = mailMessageStore=home,mailquota=quota_rule=*:backend
user_filter = (&(objectClass=inetOrgPerson)(mail=%u))
pass_attrs = mail=user,userPassword=password,mailMessageStore=userdb_home
pass_filter = (&(objectClass=inetOrgPerson)(mail=%u))


I also tried to set user_attrs = *uid=uid,*mailMessageStore=home,mailquota=quota_rule=*:backend but i didn't solve the problem.
Any ideas?

thanx in advance!
--

Emmanuel Gonzalez

Reply via email to