[Dovecot] Sieve doesn't find user scripts
Jochen Spieker
ml at well-adjusted.de
Sun Apr 29 16:44:12 EEST 2012
Jochen Spieker:
>
> The problem is that LDA doesn't find the script.
Ok, using a global script works:
deliver(jrspieker at well-adjusted.de): Info: Module loaded: /usr/lib/dovecot/modules/lda/lib10_quota_plugin.so
deliver(jrspieker at well-adjusted.de): Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_sieve_plugin.so
deliver(jrspieker at well-adjusted.de): Info: auth input: mail=maildir:/srv/mail/well-adjusted.de/jrspieker
deliver(jrspieker at well-adjusted.de): Info: auth input: userdb_home=/srv/mail/home/well-adjusted.de/jrspieker
deliver(jrspieker at well-adjusted.de): Info: auth input: uid=105
deliver(jrspieker at well-adjusted.de): Info: auth input: gid=109
deliver(jrspieker at well-adjusted.de): Info: Quota root: name=storage=512000 backend=maildir args=
deliver(jrspieker at well-adjusted.de): Info: maildir: data=/srv/mail/well-adjusted.de/jrspieker
deliver(jrspieker at well-adjusted.de): Info: maildir++: root=/srv/mail/well-adjusted.de/jrspieker, index=, control=, inbox=/srv/mail/well-adjusted.de/jrspieker
deliver(jrspieker at well-adjusted.de): Info: sieve: using sieve path for user's script: /srv/mail/home/global/sieve/global.sieve
deliver(jrspieker at well-adjusted.de): Info: sieve: opening script /srv/mail/home/global/sieve/global.sieve
deliver(jrspieker at well-adjusted.de): Info: sieve: executing compiled script /srv/mail/home/global/sieve/global.sieve
deliver(jrspieker at well-adjusted.de): Info: Namespace : Using permissions from /srv/mail/well-adjusted.de/jrspieker: mode=0755 gid=-1
deliver(jrspieker at well-adjusted.de): Info: sieve: msgid=<20120429132328.D581B1E9 at 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>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20120429/edb07d3c/attachment-0004.bin>
More information about the dovecot
mailing list