Julien Danjou
2009-Jul-08 17:37 UTC
[Dovecot] Problem with 1.2 and sieve: failed with unsuccessful implicit keep
Hi,
First, thanks for this awesome piece of software.
I've just upgraded to latest dovecot, aka 1.2.
I've a problem. I've started using Sieve, and everything works fine, I
already received a thousand of mails without any problem.
However, there's one mail which is stuck in the postfix queue because of
that:
Jul 8 18:47:51 prometheus dovecot: deliver(jd at danjou.info):
mkdir_parents_chown(danjou.info/jd/) failed: Permission denied
(euid=8(mail) egid=8(mail))
Jul 8 18:47:51 prometheus dovecot: deliver(jd at danjou.info): copy:
i_stream_read() failed: No such file or directory
Jul 8 18:47:51 prometheus dovecot: deliver(jd at danjou.info): sieve:
msgid=?
<1186f9b5-0529-4622-8f4a-58462f9a4bcb at svr-exchange.siege.ldlc.com>:
failed to store into mailbox 'INBOX': Internal error occurred. Refer
to server log for more information. [2009-07-08 18:47:51]
Jul 8 18:47:51 prometheus dovecot: deliver(jd at danjou.info): read(mail,
uid=1) failed: Permission denied
Jul 8 18:47:51 prometheus dovecot: deliver(jd at danjou.info): sieve:
msgid=?
<1186f9b5-0529-4622-8f4a-58462f9a4bcb at svr-exchange.siege.ldlc.com>:
failed to store into mailbox 'INBOX': BUG: Unknown internal error
Jul 8 18:47:51 prometheus dovecot: deliver(jd at danjou.info): sieve:
script /var/mail/sieve/jd at danjou.info.dovecot.sieve failed with
unsuccessful implicit keep
IMHO, the bug is around the uid stuff. the read(mail, uid=1) seems very
wrong. since this uid is not used at all in the configuration file.
I can provide more information if needed, just ask.
dovecot 1.2
Debian GNU/Linux 5.0 (lenny)
CPU amd64
FS is ext3
# dovecot -n
# 2007 pts/0 19:27:38
# 1.2.0: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.26-1-amd64 x86_64 Debian 5.0.2 ext3
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imaps pop3s managesieve
ssl_cert_file: /etc/ssl/private/ssl.naquadah.org.crt
ssl_key_file: /etc/ssl/private/ssl.naquadah.org.key
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
first_valid_uid: 8
last_valid_uid: 8
mail_privileged_group: mail
mail_location: maildir:/var/mail/vmail/%h
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
auth default:
user: mail
passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
userdb:
driver: prefetch
userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
socket:
type: listen
client:
path: /var/spool/postfix/private/auth
mode: 432
user: postfix
group: postfix
master:
path: /var/run/dovecot/auth-master
mode: 384
user: mail
group: mail
plugin:
sieve: /var/mail/sieve/%u.dovecot.sieve
Anonymized mail attached. The From line was manually added, mainly
because I extracted the content from the Postfix queue.
(I'm not subscribed.)
Cheers,
--
Julien Danjou
// ? <julien at danjou.info> http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD
// Life is life. Lalalalala.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url :
http://dovecot.org/pipermail/dovecot/attachments/20090708/9293d4e9/attachment-0001.bin
Timo Sirainen
2009-Jul-08 17:46 UTC
[Dovecot] Problem with 1.2 and sieve: failed with unsuccessful implicit keep
On Wed, 2009-07-08 at 19:37 +0200, Julien Danjou wrote:> Jul 8 18:47:51 prometheus dovecot: deliver(jd at danjou.info): > mkdir_parents_chown(danjou.info/jd/) failed: Permission denied > (euid=8(mail) egid=8(mail))The problem is this. It tries to create a non-existing directory, but can't because of permission problems. Although this may be misleading, because you're not using absolute paths in the user's home (mail?) directory. I'd fix that first. Maybe this problem goes away after that too.> Jul 8 18:47:51 prometheus dovecot: deliver(jd at danjou.info): copy: > i_stream_read() failed: No such file or directory > Jul 8 18:47:51 prometheus dovecot: deliver(jd at danjou.info): sieve: > msgid=? > <1186f9b5-0529-4622-8f4a-58462f9a4bcb at svr-exchange.siege.ldlc.com>: > failed to store into mailbox 'INBOX': Internal error occurred. Refer > to server log for more information. [2009-07-08 18:47:51] > Jul 8 18:47:51 prometheus dovecot: deliver(jd at danjou.info): read(mail, > uid=1) failed: Permission deniedAll this is a result from the first error. -------------- 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/20090708/8cd09e64/attachment.bin