[Dovecot] Cannot get dovecot-sieve to work
Nick Lunt
nick.lunt at patech-solutions.com
Wed Jan 27 17:29:56 EET 2010
Hi all
# dovecot --version
1.2.10
# dovecot -n
# 1.2.10: /etc/dovecot.conf
# OS: Linux 2.6.18-128.el5 x86_64 Red Hat Enterprise Linux Server
release 5.3 (Tikanga)
log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot.log
ssl: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_location: mbox:~/mail:INBOX=/var/mail/%u
mail_debug: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
lda:
mail_plugins: sieve
auth default:
debug: yes
passdb:
driver: pam
userdb:
driver: passwd
plugin:
sieve: ~/.dovecot.sieve
sieve_dir: ~/
log_path: /var/log/dovecot.log
Here is my ~/.dovecot.sieve
$ cat .dovecot.sieve
require "fileinto";
if not header :contains "subject" "GRE:99" {
discard;
stop;
} else {
keep;
}
I only want to accept emails with GRE:99 as the subject, I'm not
interested in any other mails.
However when I send myself an email via the mail command all emails go
into my INBOX whatever the subject is.
I don't really get any info in the logs either:
Jan 27 17:34:20 dovecot: Info: Dovecot v1.2.10 starting up (core dumps
disabled)
Jan 27 17:34:21 auth(default): Info: new auth connection: pid=495
Jan 27 17:34:21 auth(default): Info: new auth connection: pid=496
Jan 27 17:34:21 auth(default): Info: new auth connection: pid=497
Jan 27 17:34:21 auth(default): Info: new auth connection: pid=498
Jan 27 17:34:21 auth(default): Info: new auth connection: pid=499
Jan 27 17:34:21 auth(default): Info: new auth connection: pid=500
Jan 27 17:34:32 auth(default): Info: client in: AUTH 1 PLAIN
service=imap lip=192.168.10.208 rip=192.168.10.207
lport=143 rport=22688 resp=<hidden>
Jan 27 17:34:32 auth-worker(default): Info: pam(nickl,192.168.10.207):
lookup service=dovecot
Jan 27 17:34:32 auth-worker(default): Info: pam(nickl,192.168.10.207):
#1/1 style=1 msg=Password:
Jan 27 17:34:32 auth(default): Info: client out: OK 1
user=nickl
Jan 27 17:34:32 auth(default): Info: master in: REQUEST 1 500
1
Jan 27 17:34:32 auth(default): Info: passwd(nickl,192.168.10.207):
lookup
Jan 27 17:34:32 auth(default): Info: master out: USER 1 nickl
system_groups_user=nickl uid=503 gid=503 home=/home/nickl
Jan 27 17:34:32 imap-login: Info: Login: user=<nickl>, method=PLAIN,
rip=192.168.10.207, lip=192.168.10.208
Jan 27 17:34:32 IMAP(nickl): Info: Effective uid=503, gid=503,
home=/home/nickl
Jan 27 17:34:32 IMAP(nickl): Info: mbox:
data=~/mail:INBOX=/var/mail/nickl
Jan 27 17:34:32 IMAP(nickl): Info: fs: root=/home/nickl/mail, index=,
control=, inbox=/var/mail/nickl
Jan 27 17:34:32 auth(default): Info: new auth connection: pid=513
Im sure my .dovecot.sieve is not getting processed but I cannot prove
it.
Any help would be appreciated.
Many thanks
Nick .
More information about the dovecot
mailing list