[Dovecot] Questions about using sieve
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?
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
Robin Atwood wrote:
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.
Your mail is being delivered by sendmail, so it's doing its job and ignoring sieve completely. You'll have to configure sendmail to use deliver to do the deliveries, and then it will use the sieve script. Otherwise deliver is never called.
-- Eduardo M KALINOWSKI eduardo@kalinowski.com.br http://move.to/hpkb
participants (3)
-
Eduardo M KALINOWSKI
-
Robin Atwood
-
Timo Sirainen