-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Timo, Thank you for your reply. The .dovecot.lda-dupes file has not been created yet. Only the .dovecot.sievec file so far. I just tried "reject" filter:
require ["fileinto", "vacation", "reject"]; if address :is "from" "joeblow@engr.colostate.edu" { reject "I don't like your email message"; }
I'm sending from test account joeblow@engr.colstate.edu to cjay@engr2.colostate.edu my test server and account on that server.
Also, I just upgraded to dovecot 1.1.2 and also recompiled sieve 1.1.5 with the new 1.1.2 dovecot and installed both. The reject looks to send a message but it's going to my local test account cjay instead of back to joeblow. Here are the logs when I send from the joeblow account:
Aug 4 13:23:59 mail2.engr.colostate.edu dovecot: [ID 762023 mail.info] Dovecot v1.1.2 starting up Aug 4 13:24:02 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): new auth connection: pid=10788 Aug 4 13:24:02 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): new auth connection: pid=10789 Aug 4 13:24:02 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): new auth connection: pid=10787 Aug 4 13:24:02 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): new auth connection: pid=10786 Aug 4 13:24:02 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): new auth connection: pid=10785 Aug 4 13:24:02 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): new auth connection: pid=10784 Aug 4 13:24:43 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): new auth connection: pid=10894 Aug 4 13:24:43 mail2.engr.colostate.edu postfix/smtpd[10894]: [ID 197553 mail.info] connect from pace.acns.colostate.edu[129.82.100.168] Aug 4 13:24:43 mail2.engr.colostate.edu postfix/smtpd[10894]: [ID 197553 mail.info] setting up TLS connection from pace.acns.colostate.edu[129.82.100.168] Aug 4 13:24:43 mail2.engr.colostate.edu postfix/smtpd[10894]: [ID 197553 mail.info] Anonymous TLS connection established from pace.acns.colostate.edu[129.82.100.168]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits) Aug 4 13:24:45 mail2.engr.colostate.edu postfix/smtpd[10894]: [ID 197553 mail.info] 0A47759EFA: client=pace.acns.colostate.edu[129.82.100.168] Aug 4 13:24:45 mail2.engr.colostate.edu postfix/cleanup[10917]: [ID 197553 mail.info] 0A47759EFA: message-id=02e8e13fe662e7c697f15caf7a2b47f0.squirrel@webmail.engr.colostate.edu Aug 4 13:24:45 mail2.engr.colostate.edu postfix/smtpd[10894]: [ID 197553 mail.info] disconnect from pace.acns.colostate.edu[129.82.100.168] Aug 4 13:24:45 mail2.engr.colostate.edu postfix/qmgr[4666]: [ID 197553 mail.info] 0A47759EFA: from=joeblow@engr.colostate.edu, size=1899, nrcpt=1 (queue active) Aug 4 13:24:47 mail2.engr.colostate.edu deliver(cjay): [ID 315030 mail.info] Loading modules from directory: /userM/mail-services/dovecot/lib/dovecot/lda Aug 4 13:24:48 mail2.engr.colostate.edu deliver(cjay): [ID 619685 mail.info] Module loaded: /userM/mail-services/dovecot/lib/dovecot/lda/lib90_cmusieve_plugin.so Aug 4 13:24:48 mail2.engr.colostate.edu deliver(cjay): [ID 848615 mail.info] mbox: data=/top/admin/ENS/people/cjay/home/:INBOX=/userM/mail/cjay Aug 4 13:24:48 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 4 13:24:49 mail2.engr.colostate.edu deliver(cjay): [ID 223526 mail.info] cmusieve: Using sieve path: /top/admin/ENS/people/cjay/home/.dovecot.sieve Aug 4 13:24:49 mail2.engr.colostate.edu deliver(cjay): [ID 507699 mail.info] cmusieve: Executing script /top/admin/ENS/people/cjay/home/.dovecot.sievec Aug 4 13:24:49 mail2.engr.colostate.edu deliver(cjay): [ID 122265 mail.info] Sending a rejection to cjay: I don't like your email message Aug 4 13:24:49 mail2.engr.colostate.edu deliver(cjay): [ID 351585 mail.info] msgid=02e8e13fe662e7c697f15caf7a2b47f0.squirrel@webmail.engr.colostate.edu: rejected Aug 4 13:24:49 mail2.engr.colostate.edu postfix/local[10918]: [ID 197553 mail.info] 0A47759EFA: to=cjay@engr2.colostate.edu, relay=local, delay=5.1, delays=0.73/0.59/0/3.8, dsn=2.0.0, status=sent (delivered to command: /userM/ma il-services/dovecot/libexec/dovecot/deliver) Aug 4 13:24:49 mail2.engr.colostate.edu postfix/qmgr[4666]: [ID 197553 mail.info] 0A47759EFA: removed Aug 4 13:24:49 mail2.engr.colostate.edu postfix/pickup[642]: [ID 197553 mail.info] BB44459EFA: uid=10946 from=<> Aug 4 13:24:49 mail2.engr.colostate.edu postfix/cleanup[10917]: [ID 197553 mail.info] BB44459EFA: message-id=dovecot-1217877887-282721-0@mail2.engr.colostate.edu Aug 4 13:24:49 mail2.engr.colostate.edu postfix/qmgr[4666]: [ID 197553 mail.info] BB44459EFA: from=<>, size=3185, nrcpt=1 (queue active) Aug 4 13:24:50 mail2.engr.colostate.edu deliver(joeblow): [ID 315030 mail.info] Loading modules from directory: /userM/mail-services/dovecot/lib/dovecot/lda Aug 4 13:24:50 mail2.engr.colostate.edu deliver(joeblow): [ID 619685 mail.info] Module loaded: /userM/mail-services/dovecot/lib/dovecot/lda/lib90_cmusieve_plugin.so Aug 4 13:24:50 mail2.engr.colostate.edu deliver(joeblow): [ID 848615 mail.info] mbox: data=/top/students/UNGRAD/ES/joeblow/home/:INBOX=/userM/mail/joeblow Aug 4 13:24:50 mail2.engr.colostate.edu deliver(joeblow): [ID 885103 mail.info] fs: root=/top/students/UNGRAD/ES/joeblow/home, index=, control=, inbox=/userM/mail/joeblow Aug 4 13:24:50 mail2.engr.colostate.edu deliver(joeblow): [ID 497138 mail.info] cmusieve: /top/students/UNGRAD/ES/joeblow/home/.dovecot.sieve doesn't exist Aug 4 13:24:50 mail2.engr.colostate.edu deliver(joeblow): [ID 702911 mail.info] msgid=dovecot-1217877887-282721-0@mail2.engr.colostate.edu: saved mail to INBOX Aug 4 13:24:50 mail2.engr.colostate.edu postfix/local[10918]: [ID 197553 mail.info] BB44459EFA: to=joeblow@engr.colostate.edu, relay=local, delay=0.85, delays=0.28/0/0/0.58, dsn=2.0.0, status=sent (delivered to command: /userM/m ail-services/dovecot/libexec/dovecot/deliver) Aug 4 13:24:50 mail2.engr.colostate.edu postfix/qmgr[4666]: [ID 197553 mail.info] BB44459EFA: removed Aug 4 13:25:19 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): client in: AUTH 1 PLAIN service=imap secured lip=129.82.224.17 rip=129.82.224.6 lport=993 rport=49849 Aug 4 13:25:19 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): client out: CONT 1 Aug 4 13:25:19 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): client in: CONT<hidden> Aug 4 13:25:19 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth-worker(default): pam(cjay,129.82.224.6): lookup service=dovecot Aug 4 13:25:20 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): new auth connection: pid=11088 Aug 4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth-worker(default): pam(cjay,129.82.224.6): #1/1 style=1 msg=Password: Aug 4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): client out: OK 1 user=cjay Aug 4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): master in: REQUEST 1 10787 1 Aug 4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth-worker(default): passwd(cjay,129.82.224.6): lookup Aug 4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(default): master out: USER 1 cjay system_user=cjay uid=10946 gid=32 home=/top/admin/ENS/people/cjay/home Aug 4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] imap-login: Login: user=<cjay>, method=PLAIN, rip=129.82.224.6, lip=129.82.224.17, TLS Aug 4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] IMAP(cjay): Effective uid=10946, gid=32, home=/top/admin/ENS/people/cjay/home Aug 4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] IMAP(cjay): mbox: data=/top/admin/ENS/people/cjay/home/:INBOX=/userM/mail/cjay Aug 4 13:25:22 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] IMAP(cjay): fs: root=/top/admin/ENS/people/cjay/home, index=, control=, inbox=/userM/mail/cjay #
Timo Sirainen wrote:
On Aug 4, 2008, at 11:30 AM, CJ Keist wrote:
I have everything compiled and working except for the sieve plugin. I'm now trying to test out the sieve plugin and having no luck in getting a simple auto vacation reply to work.
When testing, remember to delete .dovecot.lda-dupes between the tests so Dovecot doesn't just disable it.
Also have you tried if reject works? That shows if the problem is with sendmail calling.
Aug 4 09:06:28 mail2.engr.colostate.edu postfix/local[7480]: [ID 197553 mail.info] 622BB59EFA: to=cjay@engr2.colostate.edu, relay=local, delay=0.89, delays=0 .18/0.08/0/0.64, dsn=2.0.0, status=sent (delivered to command: /userM/mail-services/dovecot/libexec/dovecot/deliver) Aug 4 09:06:28 mail2.engr.colostate.edu postfix/qmgr[4666]: [ID 197553 mail.info] 622BB59EFA: removed
These are Postfix's logs. Dovecot should log something itself as well. At minimum something like:
deliver(tss): Jun 12 11:01:31 Info: msgid=msg@id: saved mail to INBOX
See http://wiki.dovecot.org/LDA -> logging and/or http://wiki.dovecot.org/Logging if you can't find it. Also note that errors and non-errors may be logged to different files.
C. J. Keist Email: cj.keist@colostate.edu UNIX/Network Manager Phone: 970-491-0630 Engineering Network Services Fax: 970-491-5569 College of Engineering, CSU Ft. Collins, CO 80523-1301
All I want is a chance to prove 'Money can't buy happiness' -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIl1mfA29OFr7C6jcRAp+JAKCktgzZ+o6fDqRk90jVDegGn611ogCeIamv WPlkrH+EexLyYsk/HZsNAFE= =KGp8 -----END PGP SIGNATURE-----