[Dovecot] failed to stat user's sieve script

Nick Lunt
Thu, 28 Jan 2010 11:18:27 -0000

Hi

# dovecot --version
1.2.10

==> /var/log/dovecot.log <=Jan 28 13:26:15 deliver(root): Info: Loading
modules from directory:
/usr/lib/dovecot/lda
Jan 28 13:26:15 deliver(root): Info: Module loaded:
/usr/lib/dovecot/lda/lib90_sieve_plugin.so
Jan 28 13:26:15 deliver(root): Error: chdir(/root) failed: Permission
denied
Jan 28 13:26:15 deliver(root): Info: maildir: data=/root/Maildir
Jan 28 13:26:15 deliver(root): Info: maildir++: root=/root/Maildir,
index=, control=, inbox=/root/Maildir
Jan 28 13:26:15 deliver(root): Error: sieve: failed to stat user's sieve
script: stat(/root/.dovecot.sieve) failed: Permission denied
(euid=99(nobody) egid=99(nobody) missing +x perm: /root) (using global
script path in stead)
Jan 28 13:26:15 deliver(root): Info: sieve: user has no valid personal
script
Jan 28 13:26:15 deliver(root): Info: sieve: no scripts to execute:
reverting to default delivery.
Jan 28 13:26:15 deliver(root): Error: stat(/root/Maildir) failed:
Permission denied
Jan 28 13:26:15 deliver(root): Info: Namespace : Using permissions from
/root/Maildir: mode=0700 gid=-1
Jan 28 13:26:15 deliver(root): Error: stat(/root/Maildir/tmp) failed:
Permission denied (euid=99(nobody) egid=99(nobody) missing +x perm:
/root)
Jan 28 13:26:15 deliver(root): Info:
msgid=<201001281326.o0SDQFMO018304 at psl-dev.patech-solutions.com>: save
failed to INBOX: Internal error occurred. Refer to server log for more
information. [2010-01-28 13:26:15]

I cannot send email to the root user on the box.

I can send email to other users on the box.

Root user does not have a .dovecot.sieve.

Dovecot created ~user/Maildir fine, but will not create /root/Maildir.

Permissions on ~user directory: drwx------ 6 nickl nickl 4096 Jan 28
13:07 /home/nickl/
Permissions on /root directory: drwxr-x--- 20 root root 4096 Jan 28
13:24 /root/

Running dovecot with postfix, mailbox_command  /usr/libexec/dovecot/deliver .

This is all running fine for the user but not for root. I don't want
dovecot-sieve to work on root's emails anyway, just the users.

Dovecot settings:

# dovecot -n
# 1.2.10: /etc/dovecot.conf
# OS: Linux 2.6.18-128.el5 x86_64 Red Hat Enterprise Linux Server
release 5.3 (Tikanga)
log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot.log
ssl: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_access_groups: mail
mail_privileged_group: mail
mail_location: maildir:~/Maildir
mail_debug: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
lda:
  postmaster_address: root at localhost
  mail_plugins: sieve
auth default:
  debug: yes
  passdb:
    driver: pam
  userdb:
    driver: passwd
plugin:
  sieve: ~/.dovecot.sieve
  sieve_dir: ~/
  log_path: /var/log/dovecot.log

Any help appreciated, I only started using dovecot yesterday and it's a
learning curve trying to get dovecot-sieve to work.

Thanks
Nick.





__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4813 (20100128) __________

The message was checked by ESET NOD32 Antivirus.