Re: [Dovecot] Dovecot auto vacation with sieve doesn't work
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just to wrap this up. I think I found my problem. I'm running this on a test mail server in engr.colostate.edu domain, but configuring the mail server to think it's in engr2.colostate.edu. So the sieve plungin was trying to see if the message was for me by checking the [EMAIL PROTECTED] with what it is getting as the real domain engr.colostate.edu. Didn't match so it was setting the address as [EMAIL PROTECTED] and so sieve would not deliver the auto reply. Not entirely sure that is correct but I what I have done to get around this is to hard code in the engr2.colostate.edu domain in the sieve plugin and recompiled. Is there something I could do in the dovecot.conf file to fix this? Anyway, it is now sending the vacation reply! This should not be a problem once I move it over to our main mail server. CJ Keist wrote: Okay, Trying to do some debugging of the sieve code. So I have found that it is failing on sending the reply in the following code area: bc_eval.c Line: 324 /* ok, we're willing to respond to the sender. but is this message to me? that is, is my address in the [Resent]-To, [Resent]-Cc or [Resent]-Bcc fields? */ But I haven't pin-pointed yet why it's not seeing the message as being for me?? CJ Keist wrote: Timo, I removed the ${1} variable but still no luck. I read the reasons why deliver would not send a reply but I don't think any should be true. Below is the header of one of the messages, let me know if you see something that is causing sieve not to send the reply. - From [EMAIL PROTECTED] Wed Aug 06 12:59:28 2008 Return-Path: [EMAIL PROTECTED] X-Original-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Received: from bird.ACNS.ColoState.EDU (bird.acns.colostate.edu [129.82.100.165] ) by mail2.engr.colostate.edu (Postfix) with ESMTPS id 0D01C59984 for [EMAIL PROTECTED]; Wed, 6 Aug 2008 12:59:27 -0600 (MDT) Received: from parker.ACNS.ColoState.EDU (parker.colostate.edu [129.82.103.125]) by bird.ACNS.ColoState.EDU (8.12.11.20060308/8.12.11) with ESMTP id m76I xJDX014096 for [EMAIL PROTECTED]; Wed, 6 Aug 2008 12:59:19 -0600 Received: from goku.engr.colostate.edu (goku.engr.colostate.edu [129.82.224.16]) by parker.ACNS.ColoState.EDU (AIX5.3/8.13.4/8.11.0) with ESMTP id m76IxJ wC909674 for [EMAIL PROTECTED]; Wed, 6 Aug 2008 12:59:19 -0600 Received: from webmail.engr.colostate.edu (sunbeam.engr.colostate.edu [129.82.22 4.8]) by goku.engr.colostate.edu (Postfix) with ESMTP id 23AE126AAF for [EMAIL PROTECTED]; Wed, 6 Aug 2008 12:59:20 -0600 (MDT) Received: from 129.82.224.6 (SquirrelMail authenticated user joeblow) by webmail.engr.colostate.edu with HTTP; Wed, 6 Aug 2008 12:59:19 -0600 (MDT) Message-ID: [EMAIL PROTECTED] u Date: Wed, 6 Aug 2008 12:59:19 -0600 (MDT) Subject: test 9 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.7160:2.4.4,1.2.40,4.0.166 definitions=2008-08-06_05:2008-08-05,2008-08-06,2008-08-06 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipsco re=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx e ngine=5.0.0-080509 definitions=main-0808060075 X-UID: 33 Status: RO X-Keywords: Content-Length: 33 Timo Sirainen wrote: On Aug 6, 2008, at 1:57 PM, CJ Keist wrote: My .dovecot.sieve file: require [vacation]; if header :matches subject * { vacation :days 30 :addresses [EMAIL PROTECTED] :subject Automatic response to: ${1} I'm away -- send mail to foo in my absence; } You can't use ${1} since variables extension isn't supported by cmusieve. In my testing I know the sieve plugin is reading my .dovecot.sieve script and creating the .dovecot.sievec, but that is as for as it goes. The .dovecot.lda-dupes file is not being created (or any .dovecot.sieve.err file) and no reply is even being attempted from the logs: Then it means that Dovecot decided it shouldn't reply to the mail. There are several reasons for that listed in http://wiki.dovecot.org/LDA/Sieve (would be nice if it logged the exact reason though - hopefully the Sieve rewrite will do that :) - -- C. J. Keist Email: [EMAIL PROTECTED] UNIX/Network ManagerPhone: 970-491-0630 Engineering Network ServicesFax: 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
[Dovecot] Dovecot auto vacation with sieve doesn't work
Guys, I'm running out of hair to pull out ;). Can anyone out there say that this does work?? To me this is looking like a bug and I'm not sure whether it's the sieve plugin or the dovecot deliver program. I have also had no luck the the reject sending any reply back to the sender. My setup: OS: Solaris 10 sparc platform postfix: 2.5.2 dovecot: 1.1.2 sieve plugin: 1.1.5 I'm going back forth between procmail and sieve and having no luck. procmail will send the reply to the sender but doesn't deliver the message to the recipient. Sieve will deliver the message to the recipient but doesn't send the reply to the sender. Now if I can just combine the two, I'll be in business. Postfix mail command: mailbox_command = /userM/mail-services/dovecot/libexec/dovecot/deliver -d $USER* * Dovecot -n (I've made some changes from my previous posting namely with the master_auth settings) # 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 master: path: /userM/mail-services/dovecot/var/run/dovecot/auth-master mode: 384 user: postfix group: postfix My .dovecot.sieve file: require [vacation]; if header :matches subject * { vacation :days 30 :addresses [EMAIL PROTECTED] :subject Automatic response to: ${1} I'm away -- send mail to foo in my absence; } I made some modifications to the vacation reply base on the following URL: http://ietfreport.isoc.org/idref/draft-ietf-sieve-vacation/ In my testing I know the sieve plugin is reading my .dovecot.sieve script and creating the .dovecot.sievec, but that is as for as it goes. The .dovecot.lda-dupes file is not being created (or any .dovecot.sieve.err file) and no reply is even being attempted from the logs: Aug 6 11:30:51 mail2.engr.colostate.edu dovecot: [ID 107833 mail.info] auth(def ault): new auth connection: pid=27187 Aug 6 11:30:51 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID 197553 mail.i nfo] connect from akron.colostate.edu[129.82.103.160] Aug 6 11:30:51 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID 197553 mail.i nfo] setting up TLS connection from akron.colostate.edu[129.82.103.160] Aug 6 11:30:51 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID 197553 mail.i nfo] Anonymous TLS connection established from akron.colostate.edu[129.82.103.16 0]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits) Aug 6 11:30:52 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID 197553 mail.i nfo] 16E2059984: client=akron.colostate.edu[129.82.103.160] Aug 6 11:30:52 mail2.engr.colostate.edu postfix/cleanup[27192]: [ID 197553 mail .info] 16E2059984: message-id=[EMAIL PROTECTED] .engr.colostate.edu Aug 6 11:30:52 mail2.engr.colostate.edu postfix/smtpd[27187]: [ID 197553 mail.i nfo] disconnect from akron.colostate.edu[129.82.103.160] Aug 6 11:30:52 mail2.engr.colostate.edu postfix/qmgr[18021]: [ID 197553 mail.in fo] 16E2059984: from=[EMAIL PROTECTED], size=1877, nrcpt=1 (queue act ive) Aug 6 11:30:52 mail2.engr.colostate.edu deliver(cjay): [ID 315030 mail.info] Lo ading modules from directory: /userM/mail-services/dovecot/lib/dovecot/lda Aug 6 11:30:52 mail2.engr.colostate.edu deliver(cjay): [ID 619685 mail.info] Mo dule loaded:
Re: [Dovecot] Dovecot auto vacation with sieve doesn't work
On Aug 6, 2008, at 1:57 PM, CJ Keist wrote: My .dovecot.sieve file: require [vacation]; if header :matches subject * { vacation :days 30 :addresses [EMAIL PROTECTED] :subject Automatic response to: ${1} I'm away -- send mail to foo in my absence; } You can't use ${1} since variables extension isn't supported by cmusieve. In my testing I know the sieve plugin is reading my .dovecot.sieve script and creating the .dovecot.sievec, but that is as for as it goes. The .dovecot.lda-dupes file is not being created (or any .dovecot.sieve.err file) and no reply is even being attempted from the logs: Then it means that Dovecot decided it shouldn't reply to the mail. There are several reasons for that listed in http://wiki.dovecot.org/LDA/Sieve (would be nice if it logged the exact reason though - hopefully the Sieve rewrite will do that :) PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Dovecot auto vacation with sieve doesn't work
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo, I removed the ${1} variable but still no luck. I read the reasons why deliver would not send a reply but I don't think any should be true. Below is the header of one of the messages, let me know if you see something that is causing sieve not to send the reply. - From [EMAIL PROTECTED] Wed Aug 06 12:59:28 2008 Return-Path: [EMAIL PROTECTED] X-Original-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Received: from bird.ACNS.ColoState.EDU (bird.acns.colostate.edu [129.82.100.165] ) by mail2.engr.colostate.edu (Postfix) with ESMTPS id 0D01C59984 for [EMAIL PROTECTED]; Wed, 6 Aug 2008 12:59:27 -0600 (MDT) Received: from parker.ACNS.ColoState.EDU (parker.colostate.edu [129.82.103.125]) by bird.ACNS.ColoState.EDU (8.12.11.20060308/8.12.11) with ESMTP id m76I xJDX014096 for [EMAIL PROTECTED]; Wed, 6 Aug 2008 12:59:19 -0600 Received: from goku.engr.colostate.edu (goku.engr.colostate.edu [129.82.224.16]) by parker.ACNS.ColoState.EDU (AIX5.3/8.13.4/8.11.0) with ESMTP id m76IxJ wC909674 for [EMAIL PROTECTED]; Wed, 6 Aug 2008 12:59:19 -0600 Received: from webmail.engr.colostate.edu (sunbeam.engr.colostate.edu [129.82.22 4.8]) by goku.engr.colostate.edu (Postfix) with ESMTP id 23AE126AAF for [EMAIL PROTECTED]; Wed, 6 Aug 2008 12:59:20 -0600 (MDT) Received: from 129.82.224.6 (SquirrelMail authenticated user joeblow) by webmail.engr.colostate.edu with HTTP; Wed, 6 Aug 2008 12:59:19 -0600 (MDT) Message-ID: [EMAIL PROTECTED] u Date: Wed, 6 Aug 2008 12:59:19 -0600 (MDT) Subject: test 9 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.7160:2.4.4,1.2.40,4.0.166 definitions=2008-08-06_05:2008-08-05,2008-08-06,2008-08-06 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipsco re=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx e ngine=5.0.0-080509 definitions=main-0808060075 X-UID: 33 Status: RO X-Keywords: Content-Length: 33 Timo Sirainen wrote: On Aug 6, 2008, at 1:57 PM, CJ Keist wrote: My .dovecot.sieve file: require [vacation]; if header :matches subject * { vacation :days 30 :addresses [EMAIL PROTECTED] :subject Automatic response to: ${1} I'm away -- send mail to foo in my absence; } You can't use ${1} since variables extension isn't supported by cmusieve. In my testing I know the sieve plugin is reading my .dovecot.sieve script and creating the .dovecot.sievec, but that is as for as it goes. The .dovecot.lda-dupes file is not being created (or any .dovecot.sieve.err file) and no reply is even being attempted from the logs: Then it means that Dovecot decided it shouldn't reply to the mail. There are several reasons for that listed in http://wiki.dovecot.org/LDA/Sieve (would be nice if it logged the exact reason though - hopefully the Sieve rewrite will do that :) - -- C. J. Keist Email: [EMAIL PROTECTED] UNIX/Network ManagerPhone: 970-491-0630 Engineering Network ServicesFax: 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 iD8DBQFImfl8A29OFr7C6jcRAsXVAKCJ64/SNiwVO6COtJpE0p53bzQhTACgjDYz Y4zRsKKYCKQEUYXUDvhq18w= =HpD2 -END PGP SIGNATURE-
Re: [Dovecot] Dovecot auto vacation with sieve doesn't work
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Okay, Trying to do some debugging of the sieve code. So I have found that it is failing on sending the reply in the following code area: bc_eval.c Line: 324 /* ok, we're willing to respond to the sender. but is this message to me? that is, is my address in the [Resent]-To, [Resent]-Cc or [Resent]-Bcc fields? */ But I haven't pin-pointed yet why it's not seeing the message as being for me?? CJ Keist wrote: Timo, I removed the ${1} variable but still no luck. I read the reasons why deliver would not send a reply but I don't think any should be true. Below is the header of one of the messages, let me know if you see something that is causing sieve not to send the reply. - From [EMAIL PROTECTED] Wed Aug 06 12:59:28 2008 Return-Path: [EMAIL PROTECTED] X-Original-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Received: from bird.ACNS.ColoState.EDU (bird.acns.colostate.edu [129.82.100.165] ) by mail2.engr.colostate.edu (Postfix) with ESMTPS id 0D01C59984 for [EMAIL PROTECTED]; Wed, 6 Aug 2008 12:59:27 -0600 (MDT) Received: from parker.ACNS.ColoState.EDU (parker.colostate.edu [129.82.103.125]) by bird.ACNS.ColoState.EDU (8.12.11.20060308/8.12.11) with ESMTP id m76I xJDX014096 for [EMAIL PROTECTED]; Wed, 6 Aug 2008 12:59:19 -0600 Received: from goku.engr.colostate.edu (goku.engr.colostate.edu [129.82.224.16]) by parker.ACNS.ColoState.EDU (AIX5.3/8.13.4/8.11.0) with ESMTP id m76IxJ wC909674 for [EMAIL PROTECTED]; Wed, 6 Aug 2008 12:59:19 -0600 Received: from webmail.engr.colostate.edu (sunbeam.engr.colostate.edu [129.82.22 4.8]) by goku.engr.colostate.edu (Postfix) with ESMTP id 23AE126AAF for [EMAIL PROTECTED]; Wed, 6 Aug 2008 12:59:20 -0600 (MDT) Received: from 129.82.224.6 (SquirrelMail authenticated user joeblow) by webmail.engr.colostate.edu with HTTP; Wed, 6 Aug 2008 12:59:19 -0600 (MDT) Message-ID: [EMAIL PROTECTED] u Date: Wed, 6 Aug 2008 12:59:19 -0600 (MDT) Subject: test 9 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.7160:2.4.4,1.2.40,4.0.166 definitions=2008-08-06_05:2008-08-05,2008-08-06,2008-08-06 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipsco re=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx e ngine=5.0.0-080509 definitions=main-0808060075 X-UID: 33 Status: RO X-Keywords: Content-Length: 33 Timo Sirainen wrote: On Aug 6, 2008, at 1:57 PM, CJ Keist wrote: My .dovecot.sieve file: require [vacation]; if header :matches subject * { vacation :days 30 :addresses [EMAIL PROTECTED] :subject Automatic response to: ${1} I'm away -- send mail to foo in my absence; } You can't use ${1} since variables extension isn't supported by cmusieve. In my testing I know the sieve plugin is reading my .dovecot.sieve script and creating the .dovecot.sievec, but that is as for as it goes. The .dovecot.lda-dupes file is not being created (or any .dovecot.sieve.err file) and no reply is even being attempted from the logs: Then it means that Dovecot decided it shouldn't reply to the mail. There are several reasons for that listed in http://wiki.dovecot.org/LDA/Sieve (would be nice if it logged the exact reason though - hopefully the Sieve rewrite will do that :) - -- C. J. Keist Email: [EMAIL PROTECTED] UNIX/Network ManagerPhone: 970-491-0630 Engineering Network ServicesFax: 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 iD8DBQFImi3AA29OFr7C6jcRAqOuAJ9N5dVnDxA7PU5A66i/A4OAgrl04gCeLCKj cA/+AxmAB7I+vDtj7tqhl1A= =Whfo -END PGP SIGNATURE-