Jochen Spieker:
The problem is that LDA doesn't find the script.
Ok, using a global script works:
deliver(jrspieker@well-adjusted.de): Info: Module loaded: /usr/lib/dovecot/modules/lda/lib10_quota_plugin.so deliver(jrspieker@well-adjusted.de): Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_sieve_plugin.so deliver(jrspieker@well-adjusted.de): Info: auth input: mail=maildir:/srv/mail/well-adjusted.de/jrspieker deliver(jrspieker@well-adjusted.de): Info: auth input: userdb_home=/srv/mail/home/well-adjusted.de/jrspieker deliver(jrspieker@well-adjusted.de): Info: auth input: uid=105 deliver(jrspieker@well-adjusted.de): Info: auth input: gid=109 deliver(jrspieker@well-adjusted.de): Info: Quota root: name=storage=512000 backend=maildir args= deliver(jrspieker@well-adjusted.de): Info: maildir: data=/srv/mail/well-adjusted.de/jrspieker deliver(jrspieker@well-adjusted.de): Info: maildir++: root=/srv/mail/well-adjusted.de/jrspieker, index=, control=, inbox=/srv/mail/well-adjusted.de/jrspieker deliver(jrspieker@well-adjusted.de): Info: sieve: using sieve path for user's script: /srv/mail/home/global/sieve/global.sieve deliver(jrspieker@well-adjusted.de): Info: sieve: opening script /srv/mail/home/global/sieve/global.sieve deliver(jrspieker@well-adjusted.de): Info: sieve: executing compiled script /srv/mail/home/global/sieve/global.sieve deliver(jrspieker@well-adjusted.de): Info: Namespace : Using permissions from /srv/mail/well-adjusted.de/jrspieker: mode=0755 gid=-1 deliver(jrspieker@well-adjusted.de): Info: sieve: msgid=<20120429132328.D581B1E9@manowar.wasteland.homelinux.net>: stored mail into mailbox 'INBOX'
I suspect LDA doesn't look for the script where I expect it to look. Again, dovecot -n show this (now including the global settings):
plugin: quota: maildir:storage=512000 sieve_dir: ~/sieve/ sieve: ~/.dovecot.sieve sieve_global_path: /srv/mail/home/global/sieve/global.sieve sieve_global_dir: /srv/mail/home/global/sieve/
I would expect ~ to translate to the userdb_home from the log entry above (/srv/mail/home/well-adjusted.de/jrspieker). ManageSieve's behaviour confirms that expectation.
The wiki says "A relative path (or just a filename) will be interpreted to point under the user's home directory."¹ This works for ManageSieve just like the ~-notation, but LDA still doesn't find the script.
J.
¹ http://wiki.dovecot.org/LDA/Sieve/Dovecot#Per-user_Sieve_script_location
When I get home from the supermarket I don't know what to do with all the plastic. [Agree] [Disagree] <http://www.slowlydownward.com/NODATA/data_enter2.html>