Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 55740

Summary: Cyrus-Imapd 2.2.3: Error when sieve tries to create script dirs for virtual users
Product: Gentoo Linux Reporter: anders <anders>
Component: [OLD] ServerAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description anders 2004-06-30 18:30:05 UTC
I got an error messages in my log files saying that sieve didn't have permissions to create the "domain" directory under /var/imap/sieve

Turns out root owns the sieve directory. Changing owner and group to cyrus:mail fixes problem. Please update ebuild...

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-09-29 22:14:15 UTC
Sorry for the delay. I don't use sieve and try to reproduce your problem here but I can't.

$ sieveshell -a langthang -u langthang localhost
Please enter your password:
> put myscript.script
> activate myscript
> quit

# ls -ld /var/imap/sieve/
drwxr-xr-x  28 root root 672 Sep 29 13:28 /var/imap/sieve/

# ls -l /var/imap/sieve/
total 0
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 a
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 b
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 c
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 d
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 e
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 f
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 g
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 h
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 i
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 j
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 k
drwxr-x---  2 cyrus mail 96 Sep 29 21:13 l
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 m
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 n
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 o
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 p
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 q
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 r
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 s
drwxr-x---  3 cyrus mail 72 Sep 29 21:53 t
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 u
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 v
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 w
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 x
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 y
drwxr-x---  2 cyrus mail 72 Sep 29 21:13 z

# ls -l /var/imap/sieve/l/
total 0
drwx------  2 cyrus mail 144 Sep 29 21:57 langthang

# ls -l /var/imap/sieve/l/langthang/myscript.script
-rw-------  1 cyrus mail 101 Sep 29 21:57 /var/imap/sieve/l/langthang/myscript.script

# cat /var/imap/sieve/l/langthang/myscript.script
require ["reject","fileinto"];

if address :is :all "From" "foo@example.org"
{
  reject "testing";
}
Comment 2 Fernando J. Pereda (RETIRED) gentoo-dev 2005-02-14 14:16:45 UTC
Fixed in cyrus-imapd-2.2.10-r1. Notice it's still ~ARCH.

Cheers,
Ferdy