[Dovecot] problems with dotlock

Mark Hedges hedges at scriptdolphin.org
Fri Feb 27 01:04:46 EET 2009



On Thu, 26 Feb 2009, Timo Sirainen wrote:

> On Thu, 2009-02-26 at 14:23 -0800, Mark Hedges wrote:
> > Feb 26 14:14:06 anubis dovecot: child 25810 (pop3) killed with signal 11
>
> It shouldn't be crashing. Could you get a gdb backtrace from this?
> http://dovecot.org/bugreport.html

I set mail_drop_priv_before_exec = yes, and I did `ulimit -c
unlimited` and `echo "/tmp/core" >
/proc/sys/kernel/core_pattern` before starting dovecot, but
I still didn't get a core dump anywhere.  Seems like the
home directory is okay.  No core file.  Even looked
everywhere with `locate` after `updatedb`.  Is this a reason
I can say that CentOS sucks too much to use in production?
;-)

> > Feb 26 14:14:06 anubis dovecot: POP3(despam_test_anubis): file_dotlock_create(/var/spool/mail/despam_test_anubis) failed: Permission denied (euid=511(despam_test_anubis) egid=100(users) missing +w perm: /var/spool/mail) (set mail_privileged_group=mail)
> ..
> > It isn't setting egid to 12(mail) like it should.
>
> One more try, what does it log after applying also this patch:
> http://hg.dovecot.org/dovecot-1.1/raw-rev/8c99c4d2eaad

Feb 26 14:52:05 anubis dovecot: auth(default): client in: AUTH  1   PLAIN   service=pop3    secured lip=127.0.0.1   rip=127.0.0.1   lport=110   rport=37079 resp=<hidden>
Feb 26 14:52:05 anubis dovecot: auth-worker(default): pam(despam_test_anubis,127.0.0.1): lookup service=dovecot
Feb 26 14:52:05 anubis dovecot: auth-worker(default): pam(despam_test_anubis,127.0.0.1): #1/1 style=1 msg=Password:
Feb 26 14:52:05 anubis dovecot: auth(default): client out: OK   1   user=despam_test_anubis
Feb 26 14:52:05 anubis dovecot: auth(default): master in: REQUEST   1   28152   1
Feb 26 14:52:05 anubis dovecot: auth(default): passwd(despam_test_anubis,127.0.0.1): lookup
Feb 26 14:52:05 anubis dovecot: auth(default): master out: USER 1   despam_test_anubis  system_user=despam_test_anubis  uid=511 gid=100 home=/home/anubis/despam_test_anubis
Feb 26 14:52:05 anubis dovecot: POP3(despam_test_anubis): Effective uid=511, gid=100
Feb 26 14:52:05 anubis dovecot: POP3(despam_test_anubis): mbox: data=~/mail:INBOX=/var/spool/mail/despam_test_anubis
Feb 26 14:52:05 anubis dovecot: POP3(despam_test_anubis): fs: root=/home/anubis/despam_test_anubis/mail, index=, control=, inbox=/var/spool/mail/despam_test_anubis
Feb 26 14:52:05 anubis dovecot: POP3(despam_test_anubis): file_dotlock_create(/var/spool/mail/despam_test_anubis) failed: Permission denied (euid=511(despam_test_anubis) egid=100(users) missing +w perm: /var/spool/mail) (under root dir /home/anubis/despam_test_anubis/mail -> no privileged locking)
Feb 26 14:52:05 anubis dovecot: pop3-login: Login: user=<despam_test_anubis>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Feb 26 14:52:05 anubis dovecot: child 28171 (pop3) killed with signal 11
Feb 26 14:52:05 anubis dovecot: auth(default): new auth connection: pid=28172



More information about the dovecot mailing list