[Dovecot] doveadm-expunge debug message clarifications

LEVAI Daniel leva at ecentrum.hu
Tue Sep 21 16:09:50 EEST 2010


Hi!

I have some questions about doveadm-expunge's debug messages.

# /usr/local/bin/doveadm -Dv expunge -u <user> mailbox 'sa.*' SAVEDBEFORE 6h
doveadm(root): Debug: Loading modules from directory: /usr/local/lib/dovecot
doveadm(root): Debug: Module loaded: /usr/local/lib/dovecot/lib10_quota_plugin.so
doveadm(root): Debug: Module loaded: /usr/local/lib/dovecot/lib20_expire_plugin.so
doveadm(root): Debug: Loading modules from directory: /usr/local/lib/dovecot/doveadm
doveadm(root): Debug: Module loaded: /usr/local/lib/dovecot/doveadm/lib10_doveadm_expire_plugin.so
doveadm(root): Debug: Module loaded: /usr/local/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so
doveadm(root): Debug: expire: Searching only users listed in expire database
				^^^^ That I don't understand.
Does this mean that I can only specify users with the '-u' parameter
from the list from the expire database, which is configured with:
dict {
expire = pgsql:/etc/dovecot/dovecot-sql.conf
}

If I don't specify a user with '-u', then nothing gets expunged, so it
doesn't get the list of users from the expire database.

doveadm(<user>): Debug: expunge: box=sa.spam uid=6376
doveadm(<user>): Debug: expunge: box=sa.spam uid=6377
doveadm(<user>): Debug: expunge: box=sa.spam uid=6378
doveadm(<user>): Debug: expunge: box=sa.spam uid=6379
doveadm(<user>): Debug: expunge: box=sa.spam uid=6380
doveadm(<user>): Debug: expunge: box=sa.spam uid=6381
doveadm(<user>): Debug: expunge: box=sa.spam uid=6382
doveadm(<user>): Debug: expunge: box=sa.spam uid=6383
doveadm(<user>): Error: net_connect_unix(/var/dovecot//dict) failed: Permission denied

# ls -la /var/dovecot/dict
srw-------  1 root  wheel  0 Sep 21 09:47:00 2010 /var/dovecot/dict=

service dict {
  chroot = 
  client_limit = 1
  drop_priv_before_exec = no
  executable = dict
  extra_groups = 
  group = 
  idle_kill = 0 s
  privileged_group = 
  process_limit = 0
  process_min_avail = 0
  protocol = 
  service_count = 0
  type = 
  unix_listener dict {
    group = 
    mode = 0600
    user = 
  }
  user = $default_internal_user
  vsz_limit = 4294967295
}

What is trying to use that socket when I'm expunging mails? Am I
supposed to grant my internal_user some privileges to that socket?
While I got that error message, the expunge has succeeded.


Thanks,
Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F


More information about the dovecot mailing list