[Dovecot] Managesieve + procmail
Stan Hoeppner
stan at hardwarefreak.com
Sat Nov 20 18:04:30 EET 2010
Lox put forth on 11/20/2010 12:02 AM:
> 2010/11/9 Stan Hoeppner <stan at hardwarefreak.com>
>
>> Read this thread:
>>
>> http://www.virtualmin.com/node/11460
>>
>
> Hello,
>
> Thank you that was usefull. But I still can't get it working ....
>
> It seems Dovecot's LDA is not using uid and guid from my userdb file to
> deliver to user inbox (located in /var/mail)
>
> I get:
>
> dovecot: deliver(virtuser_537): file_dotlock_create(/var/mail/virtuser_537)
> failed: Permission denied (euid=537(virtuser_537) egid=518(neaevents)
> missing +w perm: /var/mail) (set mail_privileged_group=mail)
What's the group ownership of /var/mail/virtuser_537 ? Can we see (at
least partial) output of "ls -la /var/mail" and "ls -la
/var/mail/virtuser_537"? That may be helpful.
--
Stan
> dovecot -n
> # 1.2.9: /etc/dovecot/dovecot.conf
> # OS: Linux 2.6.32-25-server x86_64 Ubuntu 10.04.1 LTS
> log_timestamp: %Y-%m-%d %H:%M:%S
> protocols: imap pop3 imaps pop3s managesieve
> ssl_ca_file: /etc/dovecot/ca.pem
> ssl_cert_file: /etc/dovecot/server.crt
> ssl_key_file: /etc/dovecot/server.key
> ssl_cipher_list:
> ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM
> disable_plaintext_auth: no
> login_dir: /var/run/dovecot/login
> login_executable(default): /usr/lib/dovecot/imap-login
> login_executable(imap): /usr/lib/dovecot/imap-login
> login_executable(pop3): /usr/lib/dovecot/pop3-login
> login_executable(managesieve): /usr/lib/dovecot/managesieve-login
> mail_privileged_group: mail
> mail_location: mbox:~/mail:LAYOUT=maildir
> mail_debug: yes
> mbox_write_locks: fcntl dotlock
> mail_executable(default): /usr/lib/dovecot/imap
> mail_executable(imap): /usr/lib/dovecot/imap
> mail_executable(pop3): /usr/lib/dovecot/pop3
> mail_executable(managesieve): /usr/lib/dovecot/managesieve
> mail_plugins(default): autocreate
> mail_plugins(imap): autocreate
> mail_plugins(pop3):
> mail_plugins(managesieve):
> mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
> mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
> mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
> mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
> imap_client_workarounds(default): outlook-idle delay-newmail
> tb-extra-mailbox-sep
> imap_client_workarounds(imap): outlook-idle delay-newmail
> tb-extra-mailbox-sep
> imap_client_workarounds(pop3):
> imap_client_workarounds(managesieve):
> pop3_client_workarounds(default):
> pop3_client_workarounds(imap):
> pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
> pop3_client_workarounds(managesieve):
> lda:
> postmaster_address: postmaster
> mail_plugins: sieve
> quota_full_tempfail: yes
> deliver_log_format: msgid=%m: %$
> rejection_reason: Your message to <%t> was automatically rejected:%n%r
> auth default:
> mechanisms: plain login
> passdb:
> driver: passwd-file
> args: /etc/dovecot/dovecot.passwd
> userdb:
> driver: passwd-file
> args: /etc/dovecot/dovecot.passwd
> userdb:
> driver: prefetch
> socket:
> type: listen
> client:
> path: /var/spool/postfix/private/dovecot-auth
> mode: 432
> user: postfix
> group: postfix
> plugin:
> autocreate: Trash
> autocreate2: Junk
> autocreate3: Sent
> autocreate4: Drafts
> autocreate5: Archives
> autosubscribe: Trash
> autosubscribe2: Junk
> autosubscribe3: Sent
> autosubscribe4: Drafts
> autosubscribe5: Archives
> sieve: ~/.dovecot.sieve
> sieve_dir: ~/sieve
>
> And /etc/procmailrc:
>
> DELIVER="/usr/lib/dovecot/deliver -c
> /etc/dovecot/conf.d/01-dovecot-postfix.conf -n"
> LOGFILE=/var/log/procmail.log
> VERBOSE=on
> HOME= $HOME
> DROPPRIVS=yes
>
> :0 w
> | $DELIVER
>
> Regards.
>
More information about the dovecot
mailing list