[Dovecot] a strange doveadm behavior
hi timo very very good job you realize for the community
here I have a very strange problem with doveadm I actually use a configuration file parameters in which the parameters are placed carefully
My problem appears when I run this command doveadm expunge -A mailbox Trash savedbefore 30d i post command and result to the terminal [fakessh@r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d doveadm(fakessh): Error: userdb lookup: connect(/var/run/dovecot//auth-userdb) failed: Permission denied (euid=514(fakessh) egid=100(users) missing +r perm: /var/run/dovecot//auth-userdb, euid is not dir owner) doveadm: Error: Failed to iterate through some users [root@r13151 ~]$ chmod +r /var/run/dovecot/auth-userdb [fakessh@r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d doveadm(fakessh): Error: userdb lookup: connect(/var/run/dovecot//auth-userdb) failed: Permission denied (euid=514(fakessh) egid=100(users) missing +w perm: /var/run/dovecot//auth-userdb, euid is not dir owner) doveadm: Error: Failed to iterate through some users [root@r13151 ~]# chmod og+w /var/run/dovecot/auth-userdb [fakessh@r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d doveadm(dkimproxy): Fatal: seteuid(0) failed: Operation not permitted [fakessh@r13151 ~]$
any kind of discussion would be welcome
-- gpg --keyserver pgp.mit.edu --recv-key 092164A7 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7
I add this to my config file
unix_listener auth-userdb { mode = 0666 }
and the error is : fakessh@r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d doveadm(dkimproxy): Fatal: seteuid(0) failed: Operation not permitted
work in root
Le mercredi 06 avril 2011 à 19:37 +0200, fakessh @ a écrit :
hi timo very very good job you realize for the community
here I have a very strange problem with doveadm I actually use a configuration file parameters in which the parameters are placed carefully
My problem appears when I run this command doveadm expunge -A mailbox Trash savedbefore 30d i post command and result to the terminal [fakessh@r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d doveadm(fakessh): Error: userdb lookup: connect(/var/run/dovecot//auth-userdb) failed: Permission denied (euid=514(fakessh) egid=100(users) missing +r perm: /var/run/dovecot//auth-userdb, euid is not dir owner) doveadm: Error: Failed to iterate through some users [root@r13151 ~]$ chmod +r /var/run/dovecot/auth-userdb [fakessh@r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d doveadm(fakessh): Error: userdb lookup: connect(/var/run/dovecot//auth-userdb) failed: Permission denied (euid=514(fakessh) egid=100(users) missing +w perm: /var/run/dovecot//auth-userdb, euid is not dir owner) doveadm: Error: Failed to iterate through some users [root@r13151 ~]# chmod og+w /var/run/dovecot/auth-userdb [fakessh@r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d doveadm(dkimproxy): Fatal: seteuid(0) failed: Operation not permitted [fakessh@r13151 ~]$
any kind of discussion would be welcome
-- gpg --keyserver pgp.mit.edu --recv-key 092164A7 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7
On Wed, 2011-04-06 at 19:37 +0200, fakessh @ wrote:
doveadm(fakessh): Error: userdb lookup: connect(/var/run/dovecot//auth-userdb) failed: Permission denied (euid=514(fakessh) egid=100(users) missing +r perm: /var/run/dovecot//auth-userdb, euid is not dir owner) .. [root@r13151 ~]# chmod og+w /var/run/dovecot/auth-userdb
For a more permanent solution you can set:
service auth { unix_listener auth-userdb { mode = 0666 } }
[fakessh@r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d doveadm(dkimproxy): Fatal: seteuid(0) failed: Operation not permitted [fakessh@r13151 ~]$
You have multiple users with different UIDs, right? You need to run doveadm as root then, so that it can change the UID when needed (and then you don't also need to change the permissions above).
hi timo hi dovecot's guru
and specify how the various users with doveadm
my dovecot -n ~]# /usr/sbin/dovecot -n # 2.0.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32.2-xxxx-grs-ipv6-32 i686 CentOS release 5.5 (Final) auth_mechanisms = plain login base_dir = /var/run/dovecot/ lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes listen = [::] log_path = /var/log/maillog log_timestamp = %Y-%m-%d %H:%M:%S login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c mail_location = maildir:~/Maildir mail_max_userip_connections = 20 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 namespace { inbox = yes location = prefix = separator = . } passdb { driver = pam } plugin/autocreate = Trash plugin/autocreate2 = Junk plugin/autocreate3 = Sent plugin/autocreate4 = Drafts plugin/autosubscribe = Trash plugin/autosubscribe2 = Junk plugin/autosubscribe3 = Sent plugin/autosubscribe4 = Drafts plugin/plugin = autocreate managesieve sieve plugin/sieve = ~/.dovecot.sieve plugin/sieve_before = /var/sieve-scripts/roundcube.sieve plugin/sieve_dir = ~/sieve plugin/sieve_global_path = whatever protocols = sieve imap pop3 service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0600 user = postfix } unix_listener auth-master { mode = 0666 } unix_listener auth-userdb { mode = 0666 } vsz_limit = 64 M } service imap-login { inet_listener imap { port = 0 } inet_listener imaps { address = * , [::] port = 993 } process_limit = 128 vsz_limit = 64 M } service imap { client_limit = 1 service_count = 0 } service managesieve-login { inet_listener managesieve-login { address = * port = 2000 } process_limit = 128 vsz_limit = 64 M } service pop3-login { inet_listener pop3 { port = 0 } inet_listener pop3s { address = * , [::] port = 995 } process_limit = 128 vsz_limit = 64 M } ssl_ca =
i use ~]# rpm -qa | egrep dovecot dovecot-pigeonhole-0.2.2-15.el5 dovecot-2.0.11-1_126.el5 dovecot-managesieve-0.2.2-15.el5
Le vendredi 08 avril 2011 à 16:11 +0300, Timo Sirainen a écrit :
On Wed, 2011-04-06 at 19:37 +0200, fakessh @ wrote:
doveadm(fakessh): Error: userdb lookup: connect(/var/run/dovecot//auth-userdb) failed: Permission denied (euid=514(fakessh) egid=100(users) missing +r perm: /var/run/dovecot//auth-userdb, euid is not dir owner) .. [root@r13151 ~]# chmod og+w /var/run/dovecot/auth-userdb
For a more permanent solution you can set:
service auth { unix_listener auth-userdb { mode = 0666 } }
[fakessh@r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d doveadm(dkimproxy): Fatal: seteuid(0) failed: Operation not permitted [fakessh@r13151 ~]$
You have multiple users with different UIDs, right? You need to run doveadm as root then, so that it can change the UID when needed (and then you don't also need to change the permissions above).
-- gpg --keyserver pgp.mit.edu --recv-key 092164A7 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7
On Fri, 2011-04-08 at 16:51 +0200, fakessh @ wrote:
hi timo hi dovecot's guru
and specify how the various users with doveadm
What's the question?..
userdb { driver = passwd }
So you're using passwd, i.e. multiple UNIX users.
[fakessh@r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d
You must then run doveadm as root: sudo doveadm expunge -A ..
sorry for my bad English ( i'am FRench ) but I understood the answer must be
doveadm use in root
thanks timo Le vendredi 08 avril 2011 à 17:55 +0300, Timo Sirainen a écrit :
On Fri, 2011-04-08 at 16:51 +0200, fakessh @ wrote:
hi timo hi dovecot's guru
and specify how the various users with doveadm
What's the question?..
userdb { driver = passwd }
So you're using passwd, i.e. multiple UNIX users.
[fakessh@r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d
You must then run doveadm as root: sudo doveadm expunge -A ..
-- gpg --keyserver pgp.mit.edu --recv-key 092164A7 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7
participants (2)
-
fakessh @
-
Timo Sirainen