Wouter Amsterdam
2008-Apr-18 07:21 UTC
[Dovecot] Sieve script executed, but nothing happens
Hi all, I think I have almost solved my dovecot-deliver lookup problems, but now sieve still fails to work. From deliver's logfile I can tell the user's homedir is found and the sieve script is executed, but not as expected. My sieve testscript is very basic: /home/virtual/user.dovecot.sieve: ************* require "fileinto"; if address :is "to" "user@ mydomain.nl" { fileinto "sieve"; ( I also tried INBOX.sieve, without succes) } ************* But incoming messages for this account are still delivered in the normal inbox, not in the sieve folder. Why won't this work? /var/log/deliver: ************* deliver(user at mydomain.nl): Apr 17 09:55:40 Info: Loading modules from directory: /usr/lib/dovecot/lda deliver(user at mydomain.nl): Apr 17 09:55:40 Info: Module loaded: /usr/lib/dovecot/lda/lib90_cmusieve_plugin.so deliver(user at mydomain.nl): Apr 17 09:55:40 Info: auth input: user at mydomain.nl deliver(user at mydomain.nl): Apr 17 09:55:40 Info: auth input: home=/home/virtual/user deliver(user at mydomain.nl): Apr 17 09:55:40 Info: auth input: uid=5000 deliver(user at mydomain.nl): Apr 17 09:55:40 Info: auth input: gid=5000 deliver(user at mydomain.nl): Apr 17 09:55:40 Info: maildir: data=/data/mail/mydomain/user deliver(user at mydomain.nl): Apr 17 09:55:40 Info: maildir: root=/data/mail/mydomain/user, index=/data/mail/mydomain/user, control=, inbox deliver(user at mydomain.nl): Apr 17 09:55:40 Info: cmusieve: Using sieve path: /home/virtual/user/.dovecot.sieve deliver(user at mydomain.nl): Apr 17 09:55:40 Info: cmusieve: Executing script /home/virtual/user/.dovecot.sievec deliver(user at mydomain.nl): Apr 17 09:55:40 Info: msgid=<20080417075530.5E8BD20111 at termsrv.mydomain.local>: saved mail to INBOX ************* TIA, Wouter
On Fri, 18 Apr 2008, Wouter Amsterdam wrote:> if address :is "to" "user@ mydomain.nl" {Is this space intentional? "user<at><space>mydomain.nl"? -- Asheesh. -- "In the long run, every program becomes rococo, and then rubble." -- Alan Perlis
On Fri, 2008-04-18 at 09:21 +0200, Wouter Amsterdam wrote:> I think I have almost solved my dovecot-deliver lookup problems, but now > sieve still fails to work. From deliver's logfile I can tell the user's > homedir is found and the sieve script is executed, but not as expected. My > sieve testscript is very basic:How about trying an even more basic script: require "fileinto"; fileinto "test"; If it delivers the mail to test mailbox, then the if-check is somehow wrong. If it doesn't, something else is broken.. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080424/c6a69aeb/attachment-0002.bin>