1. set mail_debug=yes, try again, and check logs
2. take one email (the whole email as source), store it as mail.eml and use sieve-test to find out if your script is broken. Aki On 20.09.2018 23:02, Ranbir wrote: > Hi Everyone, > > I have dovecot, postfix, roundcube and piegeonhole managesieve all > working nicely together. Personal scripts defined in roundcube run > without issue. > > I have configured the global sieve dir defined in 90-sieve.conf: > > sieve_global_dir = /var/lib/dovecot/sieve/global/ > > I pre-compiled the script in there: > > # ls -l /var/lib/dovecot/sieve/global/ > total 8 > -rw-r--r--. 1 root root 118 Sep 19 16:52 global.sieve > -rw-r--r--. 1 root root 197 Sep 19 16:56 global.svbin > > But, in the logs for dovecot, I never see the script being run: > > https://www.pastiebin.com/5ba3faa8628c2 > > Users are from freeipa. Their home directories are symlinks to where > the mail really lives. For example: > > lrwxrwxrwx. 1 ranbir virtual 42 May 25 2017 ranbir -> > /var/spool/mail/domain.tld/ranbir/ > > And the contents of that dir: > > [root@mailhost conf.d]# ls -al /home/DOMAIN/ranbir/ > total 64 > drwxrwx---. 4 ranbir virtual 4096 Sep 18 17:40 . > drwxrwx---+ 13 virtual virtual 4096 Jul 8 12:06 .. > -rw-------. 1 ranbir ranbir 17808 Sep 20 01:13 .bash_history > -rw-------. 1 ranbir ranbir 18 Dec 14 2015 .bash_logout > -rw-------. 1 ranbir ranbir 193 Dec 14 2015 .bash_profile > -rw-------. 1 ranbir ranbir 231 Dec 14 2015 .bashrc > lrwxrwxrwx. 1 virtual virtual 23 Feb 11 2018 .dovecot.sieve -> > sieve/managesieve.sieve > lrwxrwxrwx. 1 virtual virtual 23 Sep 18 16:53 .dovecot.sieve.log -> > sieve/dovecot.sieve.log > -rw-rw----. 1 virtual virtual 322 Sep 18 17:40 .dovecot.svbin > -rw-------. 1 ranbir ranbir 59 Jun 7 2016 .lesshst > drwx------. 56 virtual virtual 4096 Sep 20 15:02 Maildir > drwxrwx---. 3 ranbir virtual 89 Sep 18 17:16 sieve > -rw-------. 1 ranbir ranbir 6415 Feb 11 2018 .viminfo > > Did I miss something in the configuration? Dovecot isn't throwing any > errors. I can only conclude I haven't completed the setup for global > sieve to work or that I've misunderstood what the "sieve_global_dir" > paramater is for. > > Thanks! >
