[Dovecot] problems with dotlock

Mark Hedges hedges at scriptdolphin.org
Fri Feb 27 00:23:44 EET 2009



On Thu, 26 Feb 2009, Mark Hedges wrote:
>
> On Thu, 26 Feb 2009, Timo Sirainen wrote:
>
> > On Thu, 2009-02-26 at 12:59 -0800, Mark Hedges wrote:
> >
> > > Right, mail_privileged_group does not work.  Setting
> > > mail_access_groups = mail does work.
> > >
> > > The problem is the same in v1.1.11, which is the latest
> > > stable version from the atrpms site linked from dovecot.org
> > > download for binary packages.
> >
> > Would it be possible for you to try a patched v1.1.11 version?
> > http://hg.dovecot.org/dovecot-1.1/raw-rev/51f4b25c7bd3 should give a
> > better error message that could help figuring out why it doesn't work.

Somehow it ran okay when I copied and modified the example
conf file with the same changes.  I guess you have to
explicitly turn on pop3 now.  Here is the log output:

Feb 26 14:14:06 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=48531 resp=<hidden>
Feb 26 14:14:06 anubis dovecot: auth-worker(default): pam(despam_test_anubis,127.0.0.1): lookup service=dovecot
Feb 26 14:14:06 anubis dovecot: auth-worker(default): pam(despam_test_anubis,127.0.0.1): #1/1 style=1 msg=Password:
Feb 26 14:14:06 anubis dovecot: auth(default): client out: OK   1   user=despam_test_anubis
Feb 26 14:14:06 anubis dovecot: auth(default): master in: REQUEST   1   25788   1
Feb 26 14:14:06 anubis dovecot: auth(default): passwd(despam_test_anubis,127.0.0.1): lookup
Feb 26 14:14:06 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:14:06 anubis dovecot: child 25810 (pop3) killed with signal 11
Feb 26 14:14:06 anubis dovecot: POP3(despam_test_anubis): Effective uid=511, gid=100
Feb 26 14:14:06 anubis dovecot: POP3(despam_test_anubis): mbox: data=~/mail:INBOX=/var/spool/mail/despam_test_anubis
Feb 26 14:14:06 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: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)
Feb 26 14:14:06 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:14:07 anubis dovecot: auth(default): new auth connection: pid=25811

It isn't setting egid to 12(mail) like it should.

Thanks for your help.

What about IMAP and dotlock files?  I need dotlock files for
inbox and all the folders to keep openwebmail from trying to
change the folders while an IMAP connection is open.  It's
probably not too likely in our scenario anyway so it won't
be a showstopper, but is that possible?

Mark


More information about the dovecot mailing list