[Dovecot] doveadm expunge -A mailbox Trash savedbefore 30d iterate_query LDAP
hi everyone
after doing this in shell #/usr/local/dovecot-2.0.1/bin/doveadm expunge -u tmihal mailbox INBOX savedbefore 1d everything is working as it should but ... #/usr/local/dovecot-2.0.1/bin/doveadm expunge -A mailbox INBOX savedbefore 1d doveadm(root): Error: userdb list: Disconnected unexpectedly doveadm: Error: Failed to iterate through some users
#cat /etc/dovecot2/dovecot-ldap.conf tls = no hosts = blah ldap_version = 3 auth_bind = no dn = blah.blah dnpass = blah scope = onelevel deref = never pass_attrs = userPassword=password default_pass_scheme = CRYPT user_attrs = mail=%u,homeDirectory=home,mailQuotaSize=quota_rule=*:bytes=%$,mailQuotaCount=quota_rule2=*:messages=%$ base = ou=accounts,dc=xnet,dc=hr user_filter = (&(objectClass=qmailUser)(accountStatus=enabled)(enabledService=mail)(enabledService=%Ls%Lc)(|(mail=%u)(mailAlternateAddress=%u))) pass_filter = (&(objectClass=qmailUser)(accountStatus=enabled)(enabledService=mail)(enabledService=%Ls%Lc)(|(mail=%u)(mailAlternateAddress=%u))) # Attributes and filter to get a list of all users iterate_attrs = mail=%u iterate_filter = (objectClass=qmailUser)
Aug 31 10:03:35 cartman2 dovecot: auth: Debug: master in: LIST 1 Aug 31 10:03:35 cartman2 dovecot: auth: Fatal: net_connect_unix(auth-worker) failed: Permission denied Aug 31 10:03:35 cartman2 dovecot: auth: Debug: Loading modules from directory: /usr/local/dovecot-2.0.1/lib/dovecot/auth Aug 31 10:03:35 cartman2 dovecot: auth: Debug: passwd-file /etc/dovecot/passwd.masterusers: Read 1 users Aug 31 10:03:35 cartman2 dovecot: auth: Debug: auth client connected (pid=17731) Aug 31 10:03:35 cartman2 dovecot: auth: Debug: auth client connected (pid=17729) Aug 31 10:03:35 cartman2 dovecot: auth: Debug: auth client connected (pid=17734) Aug 31 10:03:35 cartman2 dovecot: auth: Debug: auth client connected (pid=17735) Aug 31 10:03:35 cartman2 dovecot: auth: Debug: auth client connected (pid=17737) Aug 31 10:03:35 cartman2 dovecot: auth: Debug: auth client connected (pid=17739) Aug 31 10:03:35 cartman2 dovecot: auth: Debug: auth client connected (pid=17742) Aug 31 10:03:35 cartman2 dovecot: auth: Debug: auth client connected (pid=17741) Aug 31 10:03:35 cartman2 dovecot: auth: Debug: auth client connected (pid=17740) Aug 31 10:03:35 cartman2 dovecot: auth: Debug: auth client connected (pid=17730) Aug 31 10:03:35 cartman2 dovecot: auth: Debug: auth client connected (pid=17738) Aug 31 10:03:35 cartman2 dovecot: auth: Debug: auth client connected (pid=17733) Aug 31 10:03:35 cartman2 dovecot: auth: Debug: auth client connected (pid=17743) Aug 31 10:03:35 cartman2 dovecot: auth: Debug: auth client connected (pid=17728) Aug 31 10:03:35 cartman2 dovecot: auth: Debug: auth client connected (pid=17736) Aug 31 10:03:35 cartman2 dovecot: auth: Debug: auth client connected (pid=17732)
any clues?
View this message in context: http://old.nabble.com/doveadm-expunge--A-mailbox-Trash-savedbefore-30d-itera... Sent from the Dovecot mailing list archive at Nabble.com.
On Tue, 2010-08-31 at 01:09 -0700, Tomislav Mihalicek wrote:
iterate_attrs = mail=%u
This isn't right. You probably want mail=user
Aug 31 10:03:35 cartman2 dovecot: auth: Fatal: net_connect_unix(auth-worker) failed: Permission denied
I guess you've changed some default permission settings related to auth processes. doveconf -n output would help giving the right answer, but you should look into auth-worker service's unix_listener.
i tried mail=user no help... below is a dovecot - n output so take a look please
# 2.0.1 (c5111fb65b0b): /etc/dovecot/dovecot.conf # OS: Linux 2.6.26-2-amd64 x86_64 Debian 5.0.5 auth_debug = yes auth_default_realm = xnet.hr auth_verbose = yes base_dir = /var/run/dovecot/ default_client_limit = 2000 default_process_limit = 200 default_vsz_limit = 536870912 disable_plaintext_auth = no hostname = cartman.example.com lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes log_path = login_greeting = MihaMail 0.0.1 mail_debug = yes mail_gid = 10030 mail_location = maildir:~/Maildir:INDEX=~/index mail_plugins = expire quota zlib autocreate virtual fts fts_squat zlib acl imap_acl mail_privileged_group = vmail mail_uid = 10030 managesieve_notify_capability = mailto managesieve_sieve_capability = comparator-i;octet comparator-i;ascii-casemap fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date spamtest spamtestplus virustest passdb { args = /etc/dovecot/master-users driver = passwd-file master = yes pass = yes } passdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { auth_socket_path = /var/run/dovecot/auth-master autocreate = Drafts autocreate2 = Sent Items autocreate3 = Trash autocreate4 = Spam autosubscribe = Drafts autosubscribe2 = Sent Items autosubscribe3 = Trash autosubscribe4 = Spam expire = Trash 7 Trash/* 7 Spam 30 expire_altmove = * 10 expire_dict = proxy::expire mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mail_log_fields = uid box msgid size quota = maildir:User quota quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=85%% quota-warning 85 %u quota_warning3 = messages=95%% quota-warning 95 %u quota_warning4 = messages=85%% quota-warning 85 %u sieve = ~/dovecot.sieve sieve_dir = ~/sieve sieve_global_path = /etc/dovecot/sieve/default.sieve zlib_save = bz2 zlib_save_level = 9 } postmaster_address = postmaster@example.com protocols = imap pop3 lmtp sieve sendmail_path = /usr/lib/sendmail service auth { unix_listener auth-userdb { group = vmail mode = 0600 user = vmail } user = $default_internal_user } service dict { unix_listener dict { group = vmail mode = 0600 user = vmail } } service imap-login { inet_listener imap { port = 143 } process_min_avail = 2 service_count = 1 vsz_limit = 134217728 } service imap { process_limit = 1024 vsz_limit = 536870912 } service lmtp { unix_listener /var/spool/postfix-virus/private/dovecot-lmtp { group = postfix mode = 0660 user = postfix } unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0660 user = postfix } } service managesieve-login { inet_listener sieve { port = 2000 } } service pop3-login { inet_listener pop3 { port = 110 } } service pop3 { process_limit = 1024 } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { mode = 0666 user = vmail } user = dovecot } ssl_cert =
Timo Sirainen wrote:
On Tue, 2010-08-31 at 01:09 -0700, Tomislav Mihalicek wrote:
iterate_attrs = mail=%u
This isn't right. You probably want mail=user
Aug 31 10:03:35 cartman2 dovecot: auth: Fatal: net_connect_unix(auth-worker) failed: Permission denied
I guess you've changed some default permission settings related to auth processes. doveconf -n output would help giving the right answer, but you should look into auth-worker service's unix_listener.
-- View this message in context: http://old.nabble.com/doveadm-expunge--A-mailbox-Trash-savedbefore-30d-itera... Sent from the Dovecot mailing list archive at Nabble.com.
participants (2)
-
Timo Sirainen
-
Tomislav Mihalicek