imapsieve: script not triggered
Andreas Krischer
a.krischer at akbyte.com
Mon May 7 20:58:10 EEST 2018
Hi, folks!
My problem:
I set up dovecot with imapsieve to execute a script whenever a user copies a mail to his Spam folder (spam autolearning). Unfortunately this script is never executed regardless what I’m configuring for imapsieve. It looks like dovecot doesn’t really load the plugin…
The "dovecot -n" output is attached.
I already tried setting imapsieve_mailbox1_name to *, but even this does not execute the script… Also I tried a mailbox without mail_crypt enabled, no success as well.
In the attached mail.log (mail_debug=yes) you can see, that imap_sieve_plugin is loaded, but it isn’t really executed.
The normal (LMTP) sieve is working - if a mail is incoming the sieve module shows it work in mail.log:
May 7 17:54:04 dovecot dovecot: lmtp(postmaster at myhost.name): Debug: YEm9ILyS8FqSaAAAujt/SA: sieve: file storage: Storage path `/var/vmail/myhost.name/postmaster/sieve' not found
May 7 17:54:04 dovecot dovecot: lmtp(postmaster at myhost.name): Debug: YEm9ILyS8FqSaAAAujt/SA: sieve: file storage: Storage path `/var/vmail/myhost.name/postmaster/.dovecot.sieve' not found
May 7 17:54:04 dovecot dovecot: lmtp(postmaster at myhost.name): Debug: YEm9ILyS8FqSaAAAujt/SA: sieve: storage: No default script location configured
May 7 17:54:04 dovecot dovecot: lmtp(postmaster at myhost.name): Debug: YEm9ILyS8FqSaAAAujt/SA: sieve: User has no personal script
May 7 17:54:04 dovecot dovecot: lmtp(postmaster at myhost.name): Debug: YEm9ILyS8FqSaAAAujt/SA: sieve: file storage: Using script storage path: /etc/dovecot/sieve/after/
May 7 17:54:04 dovecot dovecot: lmtp(postmaster at myhost.name): Debug: YEm9ILyS8FqSaAAAujt/SA: sieve: file script: Opened script `spam' from `/etc/dovecot/sieve/after/spam.sieve'
May 7 17:54:04 dovecot dovecot: lmtp(postmaster at myhost.name): Debug: YEm9ILyS8FqSaAAAujt/SA: sieve: executed after user's Sieve script(1): /etc/dovecot/sieve/after/spam.sieve
May 7 17:54:04 dovecot dovecot: lmtp(postmaster at myhost.name): Debug: Mailbox <lmtp DATA>: Opened mail UID=1 because: header Message-ID (Cache file is unusable)
May 7 17:54:04 dovecot dovecot: lmtp(postmaster at myhost.name): Debug: YEm9ILyS8FqSaAAAujt/SA: sieve: Opening script 1 of 1 from `/etc/dovecot/sieve/after/spam.sieve'
May 7 17:54:04 dovecot dovecot: lmtp(postmaster at myhost.name): Debug: YEm9ILyS8FqSaAAAujt/SA: sieve: Loading script /etc/dovecot/sieve/after/spam.sieve
May 7 17:54:04 dovecot dovecot: lmtp(postmaster at myhost.name): Debug: YEm9ILyS8FqSaAAAujt/SA: sieve: Script binary /etc/dovecot/sieve/after/spam.svbin successfully loaded
May 7 17:54:04 dovecot dovecot: lmtp(postmaster at myhost.name): Debug: YEm9ILyS8FqSaAAAujt/SA: sieve: binary save: not saving binary /etc/dovecot/sieve/after/spam.svbin, because it is already stored
May 7 17:54:04 dovecot dovecot: lmtp(postmaster at myhost.name): Debug: YEm9ILyS8FqSaAAAujt/SA: sieve: Executing script from `/etc/dovecot/sieve/after/spam.svbin'
I already spent hours on this problem so please let me know if you have any idea what the problem could be… :(
Thanks in advance!
Andreas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dovecot-conf.txt
URL: <https://dovecot.org/pipermail/dovecot/attachments/20180507/c2e32b52/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mail.log
Type: application/octet-stream
Size: 2134 bytes
Desc: not available
URL: <https://dovecot.org/pipermail/dovecot/attachments/20180507/c2e32b52/attachment.obj>
More information about the dovecot
mailing list