[Dovecot] Dovecot sieve plugin reject not working

2008-08-05 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm at a loss here.  Details of my setup:

OS: Solaris 10
gcc version: 3.4.3
postfix version 2.5.2
dovecot version 1.1.2
dovecot sieve version 1.1.5

How I installed:

Postfix:
make makefiles CCARGS='-DUSE_SASL_AUTH
\-DDEF_SERVER_SASL_TYPE=\dovecot\ -DUSE_TLS -I/opt/csw/include'
\AUXLIBS=-R/opt/csw/lib -L/opt/csw/lib -lssl -lcrypto -ldb
make
make upgrade

Dovecot:
./configure --prefix=/userM/mail-services/dovecot
make
make install

Sieve:
./configure --prefix=/userM/mail-services/dovecot
- --with-dovecot=../dovecot-1.1.2
make
make install

dovecot -n
# 1.1.2: /userM/mail-services/dovecot/etc/dovecot.conf
Warning: fd limit 256 is lower than what Dovecot can use under full load
(more than 3072). Either grow the limit or change
login_max_processes_count and max_mail_processes settings
base_dir: /userM/mail-services/dovecot/var/run/dovecot/
protocols: imap imaps pop3 pop3s
ssl_cert_file: /userM/mail-services/dovecot/etc/ssl/dovecot.pem
ssl_key_file: /userM/mail-services/dovecot/etc/ssl/privkey.pem
ssl_parameters_regenerate: 0
ssl_cipher_list: MEDIUM:!LOW
disable_plaintext_auth: no
login_dir: /userM/mail-services/dovecot/var/run/dovecot/login
login_executable(default):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(imap):
/userM/mail-services/dovecot/libexec/dovecot/imap-login
login_executable(pop3):
/userM/mail-services/dovecot/libexec/dovecot/pop3-login
login_greeting: Cyrus ready.
login_max_processes_count: 1024
max_mail_processes: 1024
mail_location: mbox:~/:INBOX=/userM/mail/%u
mail_debug: yes
mmap_disable: yes
mail_nfs_index: yes
mail_executable(default): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(imap): /userM/mail-services/dovecot/libexec/dovecot/imap
mail_executable(pop3): /userM/mail-services/dovecot/libexec/dovecot/pop3
mail_plugin_dir(default): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /userM/mail-services/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /userM/mail-services/dovecot/lib/dovecot/pop3
auth default:
  mechanisms: plain login
  verbose: yes
  debug: yes
  passdb:
driver: pam
  passdb:
driver: passwd
args: blocking=yes
  userdb:
driver: passwd
args: blocking=yes
  socket:
type: listen
client:
  path: /userM/mail-services/postfix/var/private/auth
  mode: 432
  user: postfix
  group: postfix

.dovecot.sieve:
require [fileinto, vacation, reject];
if address :is from [EMAIL PROTECTED] {
  reject I don't like your email message;
}

When I send message from yahoo.com to my [EMAIL PROTECTED]
account on this server no rejection notice is being sent back.  It looks
like at the end of the log file section below that it is sending
something back, but nothing shows up. Also see how the From is empty?
I don't think this is postfix problem as I can send and receive mail
through it fine.

SysLog:
Aug  5 08:46:09 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info]
auth(def
ault): new auth connection: pid=11000
Aug  5 08:46:09 mail2.engr.colostate.edu postfix/smtpd[11000]: [ID
197553 mail.i
nfo] connect from pace.acns.colostate.edu[129.82.100.168]
Aug  5 08:46:09 mail2.engr.colostate.edu postfix/smtpd[11000]: [ID
197553 mail.i
nfo] setting up TLS connection from pace.acns.colostate.edu[129.82.100.168]
Aug  5 08:46:09 mail2.engr.colostate.edu postfix/smtpd[11000]: [ID
197553 mail.i
nfo] Anonymous TLS connection established from
pace.acns.colostate.edu[129.82.10
0.168]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Aug  5 08:46:09 mail2.engr.colostate.edu postfix/smtpd[11000]: [ID
197553 mail.i
nfo] CBD4059982: client=pace.acns.colostate.edu[129.82.100.168]
Aug  5 08:46:09 mail2.engr.colostate.edu postfix/cleanup[11016]: [ID
197553 mail
.info] CBD4059982: message-id=[EMAIL PROTECTED]
Aug  5 08:46:09 mail2.engr.colostate.edu postfix/smtpd[11000]: [ID
197553 mail.i
nfo] disconnect from pace.acns.colostate.edu[129.82.100.168]
Aug  5 08:46:09 mail2.engr.colostate.edu postfix/qmgr[23653]: [ID 197553
mail.in
fo] CBD4059982: from=[EMAIL PROTECTED], size=1701, nrcpt=1 (queue
active)
Aug  5 08:46:10 mail2.engr.colostate.edu deliver(cjay): [ID 315030
mail.info] Lo
ading modules from directory: /userM/mail-services/dovecot/lib/dovecot/lda
Aug  5 08:46:10 mail2.engr.colostate.edu deliver(cjay): [ID 619685
mail.info] Mo
dule loaded:
/userM/mail-services/dovecot/lib/dovecot/lda/lib90_cmusieve_plugin.
so
Aug  5 08:46:10 mail2.engr.colostate.edu deliver(cjay): [ID 848615
mail.info] mb
ox: data=/top/admin/ENS/people/cjay/home/:INBOX=/userM/mail/cjay
Aug  5 08:46:10 mail2.engr.colostate.edu deliver(cjay): [ID 885103
mail.info] fs
: root=/top/admin/ENS/people/cjay/home, index=, control=,
inbox=/userM/mail/cjay
Aug  5 08:46:10 mail2.engr.colostate.edu deliver(cjay): [ID 223526
mail.info] cm
usieve: Using sieve path: /top/admin/ENS/people/cjay/home/.dovecot.sieve
Aug  5 08:46:10 mail2.engr.colostate.edu deliver(cjay): [ID 507699
mail.info] cm
usieve: 

Re: [Dovecot] Dovecot sieve plugin reject not working

2008-08-05 Thread Andrew Schulman
 When I send message from yahoo.com to my [EMAIL PROTECTED]
 account on this server no rejection notice is being sent back.  It looks
 like at the end of the log file section below that it is sending
 something back, but nothing shows up. Also see how the From is empty?
 I don't think this is postfix problem as I can send and receive mail
 through it fine.

I reported a related bug with the reject action here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=489760 .  Seems to be different
from your case, though.