On Thu, 26 Feb 2009, Timo Sirainen wrote:
On Thu, 2009-02-26 at 15:04 -0800, Mark Hedges wrote:
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
andecho "/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.When Dovecot starts up, it logs a line:
Info: Dovecot v1.1.11 starting up
Do you see it, or do you see:
Info: Dovecot v1.1.11 starting up (core dumps disabled)
Feb 27 13:32:37 anubis dovecot: dovecot v1.1.11 starting up Feb 27 13:32:39 anubis dovecot: auth(default): new auth connection: pid=2610 Feb 27 13:32:39 anubis dovecot: auth(default): new auth connection: pid=2611 Feb 27 13:32:39 anubis dovecot: auth(default): new auth connection: pid=2613 Feb 27 13:32:39 anubis dovecot: auth(default): new auth connection: pid=2614 Feb 27 13:32:39 anubis dovecot: auth(default): new auth connection: pid=2615 Feb 27 13:32:39 anubis dovecot: auth(default): new auth connection: pid=2612
On Thu, 26 Feb 2009, Scott Silva wrote:
http://kbase.redhat.com/faq/docs/DOC-4897 shows how to enable core dumps in RedHat and CentOS. It is set in /etc/profile, so it would need to be temporarily edited there.
Thanks for trying to help, I tried this too, but as I reported earlier, I had tried according to the dovecot bug report instructions by setting ulimit from the shell before I started this build. Still no core. (Debian rules! *ahem*)
On Thu, 26 Feb 2009, Timo Sirainen wrote:
Well, that is weird. What does it log with the attached patch?
Patch didn't work. Attached rej. I think you forgot some {}'s so I think I did what you wanted with the attached diff. Here's the log output now:
Feb 27 13:33:59 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=49669 resp=<hidden>
Feb 27 13:33:59 anubis dovecot: auth-worker(default): pam(despam_test_anubis,127.0.0.1): lookup service=dovecot
Feb 27 13:33:59 anubis dovecot: auth-worker(default): pam(despam_test_anubis,127.0.0.1): #1/1 style=1 msg=Password:
Feb 27 13:33:59 anubis dovecot: auth(default): client out: OK 1 user=despam_test_anubis
Feb 27 13:33:59 anubis dovecot: auth(default): master in: REQUEST 1 2611 1
Feb 27 13:33:59 anubis dovecot: auth(default): passwd(despam_test_anubis,127.0.0.1): lookup
Feb 27 13:33:59 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 27 13:33:59 anubis dovecot: child 2634 (pop3) killed with signal 11
Feb 27 13:33:59 anubis dovecot: POP3(despam_test_anubis): Effective uid=511, gid=100
Feb 27 13:33:59 anubis dovecot: POP3(despam_test_anubis): mbox: data=~/mail:INBOX=/var/spool/mail/despam_test_anubis
Feb 27 13:33:59 anubis dovecot: POP3(despam_test_anubis): fs: root=/home/anubis/despam_test_anubis/mail, index=, control=, inbox=/var/spool/mail/despam_test_anubis
Feb 27 13:33:59 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 27 13:33:59 anubis dovecot: pop3-login: Login: user=
Mark