I am trying to filter my imap mail sent to my phone by using sieve. Currently everything is set up and works well using mbox and sendmail as the lda. I have re-installed dovecot with sieve included and updated dovecot.conf, which gives # dovecot -n # 1.1.3: /etc/dovecot/dovecot.conf ssl_cert_file: /etc/ssl/dovecot/server.pem ssl_key_file: /etc/ssl/dovecot/server.key disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/libexec/dovecot/imap-login mail_privileged_group: mail mail_location: mbox:~/mail:INBOX=/var/mail/%u auth default: passdb: driver: pam args: * userdb: driver: passwd and I have added "mail_plugins = cmusieve" to protocol lda{}. I then created a ".dovecot.sieve" script but am not sure where to place it. I tried ~/ and ~/.imap but it never seems to get compiled. Dovecot is running as a root service so it should have access. Setting mail_debug=yes produces no clues, so what should I be looking at? TIA -Robin -- ---------------------------------------------------------------------- Robin Atwood. "Ship me somewheres east of Suez, where the best is like the worst, Where there ain't no Ten Commandments an' a man can raise a thirst" from "Mandalay" by Rudyard Kipling ----------------------------------------------------------------------
On Sat, 2008-09-13 at 12:37 +0700, Robin Atwood wrote:> and I have added "mail_plugins = cmusieve" to protocol lda{}. I then created > a ".dovecot.sieve" script but am not sure where to place it. I tried ~/ and > ~/.imap but it never seems to get compiled.Home directory is correct.> Dovecot is running as a root > service so it should have access. Setting mail_debug=yes produces no clues, > so what should I be looking at?Sieve is used only by deliver binary, which isn't running as root. Sounds like you're never even calling it? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080913/0519f17a/attachment-0002.bin>
On Saturday 13 Sep 2008, Timo Sirainen wrote:> On Sat, 2008-09-13 at 12:37 +0700, Robin Atwood wrote: > > and I have added "mail_plugins = cmusieve" to protocol lda{}. I then > > created a ".dovecot.sieve" script but am not sure where to place it. I > > tried ~/ and ~/.imap but it never seems to get compiled. > > Home directory is correct. > > > Dovecot is running as a root > > service so it should have access. Setting mail_debug=yes produces no > > clues, so what should I be looking at? > > Sieve is used only by deliver binary, which isn't running as root. > Sounds like you're never even calling it?That was my impression! Since mail delivery is already working, I assumed I do not have to customise sendmail.cf. Is that not the case? I am not sure I understand this deliver thing, I thought in my case it actually meant sendmail. -Robin -- ---------------------------------------------------------------------- Robin Atwood. "Ship me somewheres east of Suez, where the best is like the worst, Where there ain't no Ten Commandments an' a man can raise a thirst" from "Mandalay" by Rudyard Kipling ----------------------------------------------------------------------