Managesieve cannot access script store

dovelist dovelist at tesla.demon.nl
Sun Feb 5 19:53:54 UTC 2017


Hi,

I am trying to get sieve working on a new OpenSuse leap 42.2 install. On 
my 'old' OpenSuse 13.2 machine it worked fine.

The problem is that Managesieve can't access the script store and won't 
let me create any script. It says permission denied on ~/sieve 
directory. See log below. I 've activated debug logging, but that 
doesn't give any clues to me. Also, I've set the directory accessible to 
all, but Managesieve still complains.

> cd ~
> ls -l
drwx------ 1 rogier users 8340  5 feb 16:54 Maildir
drwxrwxrwx 1 rogier users   24  5 feb 18:38 sieve

To rule out client issues (kmail) I tested also with Manual TLS Login as 
described in:
http://wiki2.dovecot.org/Pigeonhole/ManageSieve/Troubleshooting

Same result.

I am puzzled. I can't find anything wrong in the dovecot configuration. 
The output of dovecot -n is shown below.
Hope someone has a solution. A lot of mail is waiting to get sorted...

Best Regards,
Rogier


The log:

feb 05 20:22:18 p150 dovecot[12120]: managesieve-login: Login: 
user=<rogier>, method=PLAIN, rip=192.168.0.18, lip=192.168.0.20, 
mpid=12135, TLS, session=<gmb0bs1H5q/AqAAS>
feb 05 20:22:18 p150 dovecot[12120]: managesieve(rogier): Debug: 
Effective uid=1000, gid=100, home=/home/rogier
feb 05 20:22:18 p150 dovecot[12120]: managesieve(rogier): Debug: 
Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, 
list=yes, subscriptions=yes location=maildir:~/Maildir
feb 05 20:22:18 p150 dovecot[12120]: managesieve(rogier): Debug: 
maildir++: root=/home/rogier/Maildir, index=, indexpvt=, control=, 
inbox=/home/rogier/Maildir, alt=
feb 05 20:22:18 p150 dovecot[12120]: managesieve(rogier): Debug: sieve: 
Pigeonhole version 0.4.15 (97b3da0) initializing
feb 05 20:22:18 p150 dovecot[12120]: managesieve(rogier): Debug: sieve: 
include: sieve_global is not set; it is currently not possible to 
include `:global' scripts.
feb 05 20:22:18 p150 dovecot[12120]: managesieve(rogier): Debug: sieve: 
file storage: Using active Sieve script path: 
/home/rogier/.dovecot.sieve
feb 05 20:22:18 p150 dovecot[12120]: managesieve(rogier): Debug: sieve: 
file storage: Using script storage path: /home/rogier/sieve/
feb 05 20:22:18 p150 dovecot[12120]: managesieve(rogier): Debug: sieve: 
file storage: Using permissions from /home/rogier/sieve/: mode=0777 
gid=-1
feb 05 20:22:18 p150 dovecot[12120]: managesieve(rogier): Debug: sieve: 
file storage: Relative path to sieve storage in active link: sieve/
feb 05 20:22:18 p150 dovecot[12120]: managesieve(rogier): Debug: sieve: 
file storage: sync: Synchronization active
feb 05 20:22:18 p150 dovecot[12120]: managesieve(rogier): Error: sieve: 
file storage: Failed to list scripts: opendir(/home/rogier/sieve) 
failed: Permission denied



Output of dovecot -n:

# 2.2.25 (7be1766): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.15 (97b3da0)
# OS: Linux 4.4.36-8-default x86_64 openSUSE 42.2 (x86_64)
auth_username_format = %Ln
base_dir = /var/run/dovecot/
mail_debug = yes
mail_location = maildir:~/Maildir
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope 
encoded-character vacation subaddress comparator-i;ascii-numeric 
relational regex imap4flags copy include variables body enotify 
environment mailbox date index ihave duplicate mime foreverypart 
extracttext
namespace inbox {
   inbox = yes
   location =
   mailbox Drafts {
     special_use = \Drafts
   }
   mailbox Junk {
     special_use = \Junk
   }
   mailbox Sent {
     special_use = \Sent
   }
   mailbox "Sent Messages" {
     special_use = \Sent
   }
   mailbox Trash {
     special_use = \Trash
   }
   prefix =
}
passdb {
   driver = pam
}
plugin {
   sieve = file:~/sieve/;active=~/.dovecot.sieve
   sieve_trace_debug = yes
}
protocols = imap lmtp sieve
service lmtp {
   unix_listener /var/spool/postfix/private/dovecot-lmtp {
     group = postfix
     mode = 0600
     user = postfix
   }
}
ssl = required
ssl_cert = </etc/ssl/private/dovecot.crt
ssl_dh_parameters_length = 2048
ssl_key = </etc/ssl/private/dovecot.pem
ssl_options = no_compression
ssl_prefer_server_ciphers = yes
userdb {
   driver = passwd
}
verbose_ssl = yes
protocol lmtp {
   mail_plugins = sieve
   postmaster_address = postmaster at xxxxxxxxxxxxxx
}


More information about the dovecot mailing list