Sieve Filter is not used

Jean-Gabriel Duquesnoy jean-gabriel at duquesnoy.de
Fri Sep 22 16:06:27 EDT 2006


Hi,

I have setup a small filter for testing that Sieve is working:
require "fileinto";

if address :is :all "From" "jgduquesnoy at yahoo.com"
{
fileinto "INBOX.Fun";
stop;
}
else {
keep;
stop;
}

but obviously the filter is not used at all, and when checking the log 
I do not see any hint, that sieve is used at all:
Sep 22 21:55:04 mail postfix/qmgr[3515]: 22EF883DCD: 
from=<jgduquesnoy at yahoo.com>, size=1266, nrcpt=1 (queue active)
Sep 22 21:55:04 mail postfix/smtp[7661]: > 127.0.0.1[127.0.0.1]: MAIL 
FROM:<jgduquesnoy at yahoo.com> SIZE=1266
Sep 22 21:55:04 mail amavis[6378]: (06378-07) ESMTP< MAIL 
FROM:<jgduquesnoy at yahoo.com> SIZE=1266\r\n
Sep 22 21:55:04 mail amavis[6378]: (06378-07) lookup (debug_sender) => 
undef, "jgduquesnoy at yahoo.com" does not match
Sep 22 21:55:04 mail amavis[6378]: (06378-07) ESMTP> 250 2.1.0 Sender 
jgduquesnoy at yahoo.com OK
Sep 22 21:55:04 mail amavis[6378]: (06378-07) 
ESMTP::10024 /var/amavis/tmp/amavis-20060922T215504-06378: 
<jgduquesnoy at yahoo.com> -> <duke at jgduke.dnsalias.com> SIZE=1266 
Received: from mail.jgduke.dnsalias.com ([127.0.0.1]) by localhost 
(mail.jgduke.dnsalias.com [127.0.0.1]) (amavisd-new, port 10024) with 
ESMTP for <duke at jgduke.dnsalias.com>; Fri, 22 Sep 2006 21:55:04 +0200 
(CEST)
Sep 22 21:55:04 mail postfix/smtp[7661]: < 127.0.0.1[127.0.0.1]: 250 
2.1.0 Sender jgduquesnoy at yahoo.com OK
Sep 22 21:55:04 mail amavis[6378]: (06378-07) Checking: 0APgZrDcot0d 
<jgduquesnoy at yahoo.com> -> <duke at jgduke.dnsalias.com>
Sep 22 21:55:10 mail amavis[6378]: (06378-07) wbl: checking sender 
<jgduquesnoy at yahoo.com>
Sep 22 21:55:10 mail amavis[6378]: (06378-07) query_keys: 
jgduquesnoy at yahoo.com, jgduquesnoy@, yahoo.com, .yahoo.com, .com, .
Sep 22 21:55:10 mail amavis[6378]: (06378-07) 
lookup_hash(jgduquesnoy at yahoo.com), no matches
Sep 22 21:55:10 mail amavis[6378]: (06378-07) lookup 
(blacklist_sender) => undef, "jgduquesnoy at yahoo.com" does not match
Sep 22 21:55:10 mail amavis[6378]: (06378-07) query_keys: 
jgduquesnoy at yahoo.com, jgduquesnoy@, yahoo.com, .yahoo.com, .com, .
Sep 22 21:55:10 mail amavis[6378]: (06378-07) 
lookup_hash(jgduquesnoy at yahoo.com), no matches
Sep 22 21:55:10 mail amavis[6378]: (06378-07) lookup 
(whitelist_sender) => undef, "jgduquesnoy at yahoo.com" does not match
Sep 22 21:55:10 mail amavis[6378]: (06378-07) 
lookup_re("jgduquesnoy at yahoo.com"), no matches
Sep 22 21:55:10 mail amavis[6378]: (06378-07) query_keys: 
jgduquesnoy at yahoo.com, jgduquesnoy@, yahoo.com, .yahoo.com, .com, .
Sep 22 21:55:10 mail amavis[6378]: (06378-07) 
lookup_hash(jgduquesnoy at yahoo.com), no matches
Sep 22 21:55:10 mail amavis[6378]: (06378-07) lookup 
(score_sender<jgduquesnoy at yahoo.com>) => undef, 
"jgduquesnoy at yahoo.com" does not match
Sep 22 21:55:12 mail amavis[6378]: (06378-07) (about to connect to 
[127.0.0.1]:10025) FWD via SMTP: <jgduquesnoy at yahoo.com> -> 
<duke at jgduke.dnsalias.com>
Sep 22 21:55:12 mail postfix/smtpd[7664]: < localhost[127.0.0.1]: MAIL 
FROM:<jgduquesnoy at yahoo.com>
Sep 22 21:55:12 mail postfix/smtpd[7664]: extract_addr: input: 
<jgduquesnoy at yahoo.com>
Sep 22 21:55:12 mail postfix/smtpd[7664]: smtpd_check_addr: 
addr=jgduquesnoy at yahoo.com
Sep 22 21:55:12 mail postfix/smtpd[7664]: send attr address = 
jgduquesnoy at yahoo.com
Sep 22 21:55:12 mail postfix/smtpd[7664]: input attribute value: 
jgduquesnoy at yahoo.com
Sep 22 21:55:12 mail postfix/smtpd[7664]: rewrite_clnt: local: 
jgduquesnoy at yahoo.com -> jgduquesnoy at yahoo.com
Sep 22 21:55:12 mail postfix/smtpd[7664]: send attr address = 
jgduquesnoy at yahoo.com
Sep 22 21:55:12 mail postfix/smtpd[7664]: input attribute value: 
jgduquesnoy at yahoo.com
Sep 22 21:55:12 mail postfix/smtpd[7664]: resolve_clnt: 
`jgduquesnoy at yahoo.com' -> transp=`smtp' host=`smtp.1und1.de' 
rcpt=`jgduquesnoy at yahoo.com' flags= class=default
Sep 22 21:55:12 mail postfix/smtpd[7664]: ctable_locate: install entry 
key jgduquesnoy at yahoo.com
Sep 22 21:55:12 mail postfix/smtpd[7664]: extract_addr: result: 
jgduquesnoy at yahoo.com
Sep 22 21:55:12 mail postfix/smtpd[7664]: check_mail_access: 
jgduquesnoy at yahoo.com
Sep 22 21:55:12 mail postfix/smtpd[7664]: ctable_locate: move existing 
entry key jgduquesnoy at yahoo.com
Sep 22 21:55:12 mail postfix/smtpd[7664]: check_access: 
jgduquesnoy at yahoo.com
Sep 22 21:55:12 mail postfix/smtpd[7664]: check_access: jgduquesnoy@
Sep 22 21:55:12 mail amavis[6378]: (06378-07) FWD via SMTP: 
<jgduquesnoy at yahoo.com> -> <duke at jgduke.dnsalias.com>, 250 2.6.0 Ok, 
id=06378-07, from MTA([127.0.0.1]:10025): 250 Ok: queued as 
89D9B8DFBC
Sep 22 21:55:12 mail amavis[6378]: (06378-07) one_response_for_all 
<jgduquesnoy at yahoo.com>: success, r=0,b=0,d=0, ndn_needed=0, '250 
2.6.0 Ok, id=06378-07, from MTA([127.0.0.1]:10025): 250 Ok: queued as 
89D9B8DFBC'
Sep 22 21:55:12 mail amavis[6378]: (06378-07) dsn: from MTA 250 Clean 
<jgduquesnoy at yahoo.com> -> <duke at jgduke.dnsalias.com>: on_succ=0, 
on_dly=1, on_fail=1, never=0, warn_sender=, DSN_passed_on=0
Sep 22 21:55:12 mail amavis[6378]: (06378-07) DSN: SUCC from MTA 250 
Clean, no DSN requested: <jgduquesnoy at yahoo.com> -> 
<duke at jgduke.dnsalias.com>
Sep 22 21:55:12 mail amavis[6378]: (06378-07) Passed CLEAN, 
[84.178.24.228] <jgduquesnoy at yahoo.com> -> 
<duke at jgduke.dnsalias.com>, Message-ID: 
<20060922195502.60646.qmail at web50511.mail.yahoo.com>, mail_id: 
0APgZrDcot0d, Hits: 0., queued_as: 89D9B8DFBC, 8030 ms
Sep 22 21:55:12 mail postfix/qmgr[3515]: 89D9B8DFBC: 
from=<jgduquesnoy at yahoo.com>, size=1744, nrcpt=1 (queue active)

Here is my imapd.conf:
postmaster: postmaster
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
sievedir: /var/lib/sieve
admins: cyrus
allowanonymouslogin: no
allowplaintext: yes
sasl_mech_list: PLAIN
servername: mail.jgduke.dnsalias.com
autocreatequota: 10000
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: 127.0.0.1
sasl_pwcheck_method: saslauthd
#sasl_pwcheck_method: auxprop
lmtp_overquota_perm_failure: no
lmtp_downcase_rcpt: yes
sendmail: /usr/sbin/sendmail
sieve_maxscriptsize: 32
sieve_maxscripts: 5
sieve_sasl_minimum_layer: 0
sasl_minimum_layer: 0
autocreateinboxfolders: INBOX | INBOX.Trash | INBOX.Sent | 
INBOX.Drafts
autosubscribeinboxfolders: INBOX | INBOX.Trash | INBOX.Sent | 
INBOX.Drafts

This is my cyrus.conf:
# standard standalone server implementation

START {
  # do not delete this entry!
  recover       cmd="ctl_cyrusdb -r"

  # this is only necessary if using idled for IMAP IDLE
  idled         cmd="idled"
}

# UNIX sockets start with a slash and are put 
into /var/lib/imap/socket
SERVICES {
  # add or remove based on preferences
  imap          cmd="imapd" listen="192.168.0.5:imap" prefork=0
#  imaps                cmd="imapd -s" listen="192.168.0.5:imaps" 
prefork=0
  pop3          cmd="pop3d" listen="pop3" prefork=0
#  pop3s                cmd="pop3d -s" listen="pop3s" prefork=0
  sieve         cmd="timsieved" listen="192.168.0.5:sieve" prefork=0

  # at least one LMTP is required for delivery
#  lmtp         cmd="lmtpd" listen="lmtp" prefork=0
  lmtpunix      cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" 
prefork=0

  # this is only necessary if using notifications
#  notify       cmd="notifyd" listen="/var/lib/imap/socket/notify" 
proto="udp" prefork=1
}

EVENTS {
  # this is required
  checkpoint    cmd="ctl_cyrusdb -c" period=30

  # this is only necessary if using duplicate delivery suppression
  delprune      cmd="cyr_expire -E 3" at=0400

  # this is only necessary if caching TLS sessions
  tlsprune      cmd="tls_prune" at=0400

}

Is there any setting missing which would cause sieve to not being 
used? 

Thanks for any help.
Best regards,
-- 
Jean-Gabriel Duquesnoy
Sauerbornstraße 4
D-61184 Karben
Mob: +49-172-3408344


More information about the Info-cyrus mailing list