[Dovecot] Using Dovecot deliver with Postfix
Hello,
while installing Dovecot sieve, I am not able to deliver email for root. The strange thing is, that mails to ordinary users get delivered. And no, I do not use virtual mail, just ordinary unix accounts with an entry to passwd / shadow. Also before switching from Postfix deliver to Dovecot deliver, everything worked fine. Current versions for dovecot and postfix are:
dovecot-1.2.8 postfix-2.6.5
Anybody an idea, where I misconfigured something?
Thanks in advance Tobi
dovecot.log (Dovecot daemon)
Dec 25 13:15:01 deliver(root): Error: chdir(/root) failed: Permission denied Dec 25 13:15:01 deliver(root): Error: stat(/root/Maildir) failed: Permission denied Dec 25 13:15:01 deliver(root): Error: stat(/root/Maildir/tmp) failed: Permission denied (euid=65534(nobody) egid=65533(nobody) missing +x perm: /root)
mail.log (Postfix daemon)
Dec 25 13:15:01 h636004 postfix/pickup[9007]: ABD64208163: uid=0 from=<root> Dec 25 13:15:01 h636004 postfix/cleanup[9073]: ABD64208163: message-id=20091225121501.ABD64208163@DOMAIN.net Dec 25 13:15:01 h636004 postfix/qmgr[9006]: ABD64208163: from=root@DOMAIN.net, size=629, nrcpt=1 (queue active) Dec 25 13:15:01 h636004 postfix/local[9075]: ABD64208163: to=tobi@DOMAIN.net, orig_to=<root>, relay=local, delay=0.26, delays=0.14/0.01/0/0.12, dsn=2.0.0, status=sent (delivered to command: /usr/local/libexec/dovecot/deliver) Dec 25 13:15:01 h636004 postfix/local[9075]: ABD64208163: to=root@DOMAIN.net, orig_to=<root>, relay=local, delay=0.36, delays=0.14/0.01/0/0.21, dsn=4.3.0, status=deferred (temporary failure)
Here is an excerpt from my dovecot.conf:
dovecot.conf:
protocol lda { postmaster_address = postmaster@DOMAIN #mail_plugins = sieve # Disabled to fix deliver issue } mail_location = maildir:%h/Maildir auth default { mechanisms = plain login passdb pam { args = * } userdb passwd { } socket listen { master { path = /var/run/dovecot/auth-master mode = 0600 } client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } }
Am 29.12.2009 um 22:34 schrieb Timo Sirainen:
On Fri, 2009-12-25 at 13:30 +0100, Tobias Lang wrote:
while installing Dovecot sieve, I am not able to deliver email for root.
That's because you should be redirecting root's mails to some other user. root shouldn't have mail.
Well, I do redirect mail to admin accounts. However, I use SuSE 11 as a base system. And there it is a default to also deliver root mail to the root account, default aliases looks like this:
root: tobi, \root
I was not aware, that root should not be allowed to recieve mail at all and by removing the '\root' from /etc/aliases, deliver is working as expected.
Tobi
P.S.: Sorry for private double-post
participants (2)
-
Timo Sirainen
-
Tobias Lang