[Dovecot] Several errors

Timo Sirainen tss at iki.fi
Sun Jul 26 21:40:29 EEST 2009


On Sat, 2009-07-25 at 13:38 +0200, FraNL wrote:
> After a
> chown root:root /var/mail/vhosts/mydomain.tld/user
> chmod 700 /var/mail/vhosts/mydomain.tld/user

Mails shouldn't be owned by root. You should probably pick out some user
to use for your mails, such as "vmail" (and create it if it doesn't
exist yet). Then configure your userdb to use it.

> I get the following error in my log:
> 
> Jul 25 13:32:19 dovecot: Fatal: chdir(/var/mail/vhosts/mydomain.tld/user)
> failed: Permission denied (euid=0(root) egid=1000 UNIX perms seem ok, ACL
> problem?)

Looks like there was a bug in this logging code. euid wasn't root when
chdir() was done. This patch fixes it:
http://hg.dovecot.org/dovecot-1.2/raw-rev/25650d7f6b85

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090726/3043a4fa/attachment.bin 


More information about the dovecot mailing list