[Dovecot] failed to stat user's sieve script

2010-01-28 Thread Nick Lunt
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.o0sdqfmo018...@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: r...@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.

http://www.eset.com
 


Re: [Dovecot] failed to stat user's sieve script

2010-01-28 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 28 Jan 2010, Nick Lunt wrote:


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)



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


IMHO, neither deliver nor Dovecot chown to root (well, do not chown).

Regards,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBS2GFhb+Vh58GPL/cAQKe6Qf/d9wrLIBq8zTmV0KJ1EBjoGup2abml/3q
0AhQGvqsQIyalGOwmYenQAXZLqAOpw649QFTbYjJ4wA9MoDwQI+wd0I/4wQnkFgt
O+fuaRvogOUL1wM06UKNoBHbTBxJBu/6JVPwzOMuNlHGP/Im4HXlGuFDVzuTL7en
y7p30DNagFeXiz5R/WZTNM4eAy7KXMMcVKVomGX8uCt5nvGT3mgalDVb5xNulwgw
ejzSiH2EagMuIlfNXuKnrOGD6rfS3UVxM5IIcEkTs665Sj/6BjJRrlC2wTJP4+Ly
s6cc++nLkU2wZq8SDduFuJQd9yi7Iwjf5vJ0FQKbpu7dl+blUzjqtA==
=JwIz
-END PGP SIGNATURE-


Re: [Dovecot] failed to stat user's sieve script

2010-01-28 Thread Nick Lunt

 -Original Message-
 From: dovecot-bounces+nick.lunt=patech-solutions@dovecot.org
 [mailto:dovecot-bounces+nick.lunt=patech-solutions@dovecot.org] On
 Behalf Of Steffen Kaiser
 Sent: 28 January 2010 12:40
 To: dovecot@dovecot.org
 Cc: dovecot@dovecot.org
 Subject: Re: [Dovecot] failed to stat user's sieve script
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Thu, 28 Jan 2010, Nick Lunt wrote:
 
  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)
 
  I cannot send email to the root user on the box.
 
 IMHO, neither deliver nor Dovecot chown to root (well, do not chown).
 
 Regards,
 
 - --
 Steffen Kaiser

Hi Steffan

any idea how I fix this problem then ? My setup is very basic but
thing's are not working. Obviously I'm doing something wrong, but what ?

Thanks
Nick.
 
 

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

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


Re: [Dovecot] failed to stat user's sieve script

2010-01-28 Thread Anton Dollmaier

Hi,


Jan 28 13:26:15 deliver(root): Error: chdir(/root) failed: Permission
denied


dovecot cannot store mails to /root, use an alias in your MTA to 
redirect mails to another user.



best regards,

Anton


Re: [Dovecot] failed to stat user's sieve script

2010-01-28 Thread Nick Lunt

 -Original Message-
 From: dovecot-bounces+nick.lunt=patech-solutions@dovecot.org
 [mailto:dovecot-bounces+nick.lunt=patech-solutions@dovecot.org] On
 Behalf Of Anton Dollmaier
 Sent: 28 January 2010 13:13
 To: dovecot@dovecot.org
 Subject: Re: [Dovecot] failed to stat user's sieve script
 
 Hi,
 
  Jan 28 13:26:15 deliver(root): Error: chdir(/root) failed:
Permission
  denied
 
 dovecot cannot store mails to /root, use an alias in your MTA to
 redirect mails to another user.

Hi Anton

that's done the trick, thanks very much.

Nick.

 
 

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

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com