[Dovecot] Filing to public folders

Cajus Pollmeier cajus at naasa.net
Wed Dec 16 23:17:31 EET 2009


Hi all,

I'm currently playing with a setup which might replace my current cyrus imapd one
with dovecot. Currently I'm stuck with trying to file messages that got to the user
"lists" to the public namespace' System folder (public/System) with sieve.

Dovecot claims "Permission denied", and I tried several debugging techniques to
get the cause - without a result right now :-(

Thanks,
Cajus

8<-------- /var/log/mail.info
Dec 16 21:40:51 ferdi dovecot: deliver(lists): sieve: using sieve path for user's script: /home/lists/.dovecot.sieve
Dec 16 21:40:51 ferdi dovecot: deliver(lists): sieve: opening script /home/lists/.dovecot.sieve
Dec 16 21:40:51 ferdi dovecot: deliver(lists): sieve: executing compiled script /home/lists/.dovecot.sieve
Dec 16 21:40:51 ferdi dovecot: deliver(lists): acl vfile: reading file /var/dovecot/public/.System/dovecot-acl
Dec 16 21:40:51 ferdi dovecot: deliver(lists): sieve: msgid=<3044.1260989392 at ferdi.test.net>: failed to store into mailbox 'public/System': Permission denied
Dec 16 21:40:51 ferdi dovecot: deliver(lists): Namespace : Using permissions from /var/dovecot/mails/lists: mode=0700 gid=-1
Dec 16 21:40:51 ferdi dovecot: deliver(lists): sieve: msgid=<3044.1260989392 at ferdi.test.net>: stored mail into mailbox 'INBOX'
Dec 16 21:40:51 ferdi dovecot: deliver(lists): sieve: execution of script /home/lists/.dovecot.sieve failed, but implicit keep was successful


8<-------- /home/lists/.dovecot.sieve
require ["fileinto"];

if header :contains "From" [ "root at test.net", "logcheck at test.net", "root at ferdi.test.net", "logcheck at ferdi.test.net" ] {
        fileinto "public/System";
        stop;
}

8<------- /var/dovecot/public/.System/dovecot-acl
user=lists lrwstiekxa
authenticated lr

8<-------- dovecot information
Dovecot version 1.2.8 (Backport on debian lenny 1:1.2.8-1~bpo50+1)
system> dovecot -n
# 1.2.8: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-trunk-amd64 x86_64 Debian 5.0.3 ext3
log_timestamp: %Y-%m-%d %H:%M:%S 
ssl_cert_file: /etc/cert/ferdi.cert.pem
ssl_key_file: /etc/cert/ferdi.key.pem
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_access_groups: publicmail
mail_privileged_group: mail
mail_location: maildir:/var/dovecot/mails/%u
mail_debug: yes
mbox_write_locks: fcntl dotlock
mail_plugins: acl
namespace:
  type: private
  separator: /
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: public
  separator: /
  prefix: public/
  location: maildir:/var/dovecot/public:INDEX=/var/dovecot/mails/%u/public
  list: children
lda:
  postmaster_address: postmaster at test.net
  mail_plugins: acl sieve
  auth_socket_path: /var/run/dovecot/auth-master
  debug: yes
auth default:
  passdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap.conf
  userdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap.conf
  socket:
    type: listen
    client:
      path: /var/run/dovecot/auth-client
      mode: 432
    master:
      path: /var/run/dovecot/auth-master
      mode: 432
      user: root
      group: mail
plugin:
  acl: vfile
  sieve: ~/.dovecot.sieve
  sieve_dir: ~/sieve
  antispam_signature: X-DSPAM-Signature
  antispam_signature_missing: error
  antispam_spam: SPAM
  antispam_dspam_binary: /usr/bin/dspam
  antispam_dspam_args: --deliver=;--user;%u
  antispam_mail_tmpdir: /tmp
  antispam_mail_sendmail: /usr/sbin/sendmail
  antispam_crm_binary: /bin/false
  antispam_signature: X-CRM114-CacheID



More information about the dovecot mailing list