[Dovecot] Help with auto vacation replies
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello, I'm testing out dovecot with postfix. I'm running postfix 2.5.2 with dovecot version 1.1.1 with dovecot sieve plugin version 1.1.5.
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. Here is my .dovecot.sieve script:
require ["fileinto", "vacation"];
# BEGIN VACATION vacation :days 30 :subject "Out of Office Reply" :addresses ["cj.keist@colostate.edu"] "OUT OF THE OFFICE";
I know the dovecot delivery program is reading my script as the .dovecot.sievec file is being created and there is no .dovecot.sieve.err file. Permissions of the files are in my ownership. The files are located in my home directory as well. The log files simply show delivery of the message and nothing else:
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
Any help as to why it is not sending any replies?
Dovecot -n follows:
# 1.1.1: /userM/mail-services/dovecot/etc/dovecot.conf Warning: fd limit 256 is lower than what Dovecot can use under full load (more than 1500). Either grow the limit or change login_max_processes_count and max_mail_processes settings base_dir: /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: /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: 500 max_mail_processes: 500 mail_location: mbox:~/:INBOX=/userM/mail/%u 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
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
iD8DBQFIlyB8A29OFr7C6jcRAt5lAKCiP5Zh1WIMrg+QWPprcxi9Gp5Z3QCgxhbj A6ivJ6XeA8MuoA19y2xEFjI= =uT1j -----END PGP SIGNATURE-----
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.
-----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-----
participants (2)
-
CJ Keist
-
Timo Sirainen