[Dovecot] sieve vacation error
Hello everybody,
First, I want to thank the development team for the quality and the stability of dovecot. It's now running without problem since two years on my debian box.
Next, I'd like you help me to solve the problem I have with vacation/sieve script. My configuration is debian lenny, with standard dovecot packages (1.0). I have setup the sieve plugin, using roundcube on another machine, and filter is working fine. fileinto is working, as well as forward and discard. However, vacation is not working at all, and I have no error message. The mails sent to the account marked as vacation are received, but the auto answer process is not working.
Here the successful logs from the vacation reject script, that I temporary use:
Sep 23 17:32:41 mail deliver(some.user): Loading modules from directory: /usr/lib/dovecot/modules/lda Sep 23 17:32:41 mail deliver(some.user): Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so Sep 23 17:32:41 mail deliver(some.user): maildir: data=/home//some.user/Maildir Sep 23 17:32:41 mail deliver(some.user): maildir: root=/home//some.user/Maildir, index=/home//some.user/Maildir, control=, inbox= Sep 23 17:32:41 mail deliver(some.user): cmusieve: Using sieve path: /home//some.user/sieve/dovecot.sieve Sep 23 17:32:41 mail deliver(some.user): cmusieve: Executing script /home//some.user/sieve/dovecot.sievec Sep 23 17:32:41 mail deliver(some.user): msgid=<72817c95458dbded987b82ec644f7dce@red2.co.uk>: rejectedReturn-Path: <andre.rodier@red2.co.uk>
Here the headers of an email received, and supposed to be auto answered.
X-Original-To: some.user@red2.co.uk Delivered-To: some.user@localhost Received: from webmail.red2.co.uk (webmail.red2.co.uk [84.45.46.48]) by mail.red2.co.uk (Postfix) with ESMTP id 0D1607E418D for <some.user@red2.co.uk>; Wed, 23 Sep 2009 17:30:44 +0100 (BST) Received: by webmail.red2.co.uk (Postfix, from userid 33) id 227E67FE5; Wed, 23 Sep 2009 17:16:30 +0100 (BST) To: Some User <some.user@red2.co.uk> Subject: vacation test MIME-Version: 1.0 Date: Wed, 23 Sep 2009 17:16:30 +0100 From: Andre Rodier <andre.rodier@red2.co.uk> Organization: Red2 Message-ID: <854f02eceb84d80d272212de405a1a0e@red2.co.uk> X-Sender: andre.rodier@red2.co.uk User-Agent: RoundCube Webmail/0.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Wed Sep 23 17:30:44 2009 X-DSPAM-Confidence: 0.9989 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4aba4d34317622670999051
Here my questions :
* If the sieve vacation script had to use a counter for limits per
day, where this counter is supposed to be stored ? I cant see any
dovecot file. I have temporary try to use 0777 for
home/sieve/maildir folders, but no file is created at all.
* Is it the same process used to forward, discard and finally vacation ?
* I use virtual file for users on postfix, and I also have a LDAP
server for authentication. Do I have something to configure on
dovecot to be sure that vacation is working with this configuration ?
* As you may have noticed above, mails are redirected to localhost
users. ( c.f X-Original-To: some.user@red2.co.uk and Delivered-To:
some.user@localhost ) Is this can affect the process ? ( Remember
that forward and reject is working ).
* Is there a way to debug the vacation process ?
Thanks for your help.
André Rodier.
Andre Rodier wrote:
- If the sieve vacation script had to use a counter for limits per day, where this counter is supposed to be stored ? I cant see any dovecot file. I have temporary try to use 0777 for home/sieve/maildir folders, but no file is created at all.
You don't have a file called .dovecot.lda-dupes there ?
And Sieve/Dovecot will produce an error file for sieve errors in the same directory where your dovecot.sieve file is located, I forgot the name of that file but it should be obvious.
(To me it sounds like you have a mail setup where the setup for email delivery causes vacation not to work properly, which has nothing to do with Dovecot or Sieve.)
On 9/24/2009 4:14 AM, Andre Rodier wrote:
Hello everybody,
First, I want to thank the development team for the quality and the stability of dovecot. It's now running without problem since two years on my debian box.
Next, I'd like you help me to solve the problem I have with vacation/sieve script. My configuration is debian lenny, with standard dovecot packages (1.0).
Just fyi... you really should consider upgrading to 1.2.x, *especially* if you're going to use sieve. The 1.0.x version has security issues and is soon to be deprecated in dovecot...
--
Best regards,
Charles
On Thu, 2009-09-24 at 09:14 +0100, Andre Rodier wrote:
* I use virtual file for users on postfix, and I also have a LDAP server for authentication. Do I have something to configure on dovecot to be sure that vacation is working with this
configuration ?
deliver wants to create a file to user's home directory. What userdb do you use? Does it return "home" field?
Hello Timo,
Thanks for your answer.
I finally have solved the problem. The users accounts in my postfix LDAP virtual table were mapped as firstname.lastname@localhost, instead of firstname.lastname@domain.com. In this case, deliver was not trying at all to send the vacation message.
I have changed this, and that's now working. Interestingly, forward and reject were working, but not vacation.
Thanks for your help anyway.
André.
Timo Sirainen wrote:
On Thu, 2009-09-24 at 09:14 +0100, Andre Rodier wrote:
* I use virtual file for users on postfix, and I also have a LDAP server for authentication. Do I have something to configure on dovecot to be sure that vacation is working with this
configuration ?
deliver wants to create a file to user's home directory. What userdb do you use? Does it return "home" field?
participants (5)
-
aja-lists
-
Andre Rodier
-
André Rodier
-
Charles Marcus
-
Timo Sirainen