[Dovecot] Dovecot auto vacation with sieve doesn't work

CJ Keist cj.keist at colostate.edu
Thu Aug 7 23:58:39 EEST 2008


-----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 "cjay at engr2.colostate.edu" with what
it is getting as the real domain "engr.colostate.edu".  Didn't match so
it was setting the address as "cjay at unspecified-domain" 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 joeblow at engr.colostate.edu  Wed Aug 06 12:59:28 2008
>> Return-Path: <joeblow at engr.colostate.edu>
>> X-Original-To: cjay at engr2.colostate.edu
>> Delivered-To: cjay at engr2.colostate.edu
>> 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 <cjay at engr2.colostate.edu>; 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 <cjay at engr2.colostate.edu>; 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 <cjay at engr2.colostate.edu>; 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 <cjay at engr2.colostate.edu>; 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:
>> <2f64022f4ceed4e5efb42612caa75139.squirrel at webmail.engr.colostate.ed
>> u>
>> Date: Wed, 6 Aug 2008 12:59:19 -0600 (MDT)
>> Subject: test 9
>> From: joeblow at engr.colostate.edu
>> To: cjay at engr2.colostate.edu
>> 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-0805090000 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 "cj.keist at colostate.edu"
>>>>       :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: cj.keist at 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

iD8DBQFIm2H/A29OFr7C6jcRAv2IAJ9oZw0P5fQ5CopvnVzofJDx5nYYbACbBMmg
raUNt/MZyA5f45CQ63hLU2k=
=gfKM
-----END PGP SIGNATURE-----


More information about the dovecot mailing list