[Dovecot] Problems with dovecot/sieve and vacation
Hello,
First of all, initial data:
# dovecot --version 1.0.rc15
# dovecot -n # /etc/dovecot.conf protocols: imaps pop3s disable_plaintext_auth: yes login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login login_max_processes_count: 256 login_max_connections: 512 verbose_proctitle: yes first_valid_uid: 200 last_valid_uid: 200 first_valid_gid: 200 last_valid_gid: 200 mail_location: maildir:%h/Maildir maildir_copy_with_hardlinks: yes umask: 7 mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %u auth default: mechanisms: login plain user: nobody passdb: driver: ldap args: /etc/dovecot-ldap.conf userdb: driver: ldap args: /etc/dovecot-ldap.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail
I am trying to get a vacation autoresponder to work, but I was not able to. Everything else is working fine. Spam scripts work, forward scripts work, ... but vacation does not work.
I have tried different configurations, simple:
require "vacation"; vacation "I am currently testing the vacation autoresponder.";
And a little more complex:
require ["fileinto", "vacation"]; ## Move spam to spam folder if exists "X-Spam-Flag" { fileinto "spam.incoming"; # Stop here so that we do not reply on spams stop; } vacation # Reply at most once a day to a same sender :days 1 :subject "Out of office reply test" # List of recipient addresses which are included in the auto replying. # If a mail's recipient is not on this list, no vacation reply is sent for it. :addresses ["iaslanidis@flumotion.com"] "I'm testing the vacation autoresponder.";
The script gets compiled as I have checked the dates and the .dovecot.lda-dupes gets created; however, there is no autoreply message. Additionally, I noticed that my recipient e-mail address gets added to .dovecot.lda-dupes:
# cat .dovecot.lda-dupes � �H+�� �,tԾD+���iaslanidis@flumotion.com
And, I also noticed that, if I delete this file and I send an e-mail to that address, I receive the e-mail duplicated, but only the first time, before .dovecot.lda-dupes gets created.
I checked the mail headers of the e-mail upon reception and they seem fine:
Return-Path: aslanidis@gmail.com X-Original-To: iaslanidis@flumotion.com Delivered-To: iaslanidis@flumotion.com Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.232]) by mail.fluendo.com (Postfix) with ESMTP id E5777250133 for iaslanidis@flumotion.com; Fri, 18 Jul 2008 17:48:30 +0200 (CEST) Received: by wr-out-0506.google.com with SMTP id c49so243003wra.19 for iaslanidis@flumotion.com; Fri, 18 Jul 2008 08:48:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=iMPULXt7n6+6MVu47vQWBga4lMRSIYkfGnO59XcugXQ=; b=bLLBZZxblyF2LFTPMXPgVesAM/Ep/P5GwgN7aaGjd7JFVpXBBNU7Mq4OaeNbFZRzIN
jk+wgDl3uvAg3GkhOso7+kxAI+SOe/u8nDBzzCp5muKieMC5xe84gJOh0+bviaaoahDf vxKWX9e/BTvBkq1AOTOfTnlHRONQ00aoNza44= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=PgczmkJcZnKNF2sIhkrPgtbt9OJaNjYVXeJ5498WjvodyiY97ZQEpTFjXoFrM3RWGI
EsRDyre253LVRbBJIZses3nbJLWGCQ9aebPnJQMQr6I1dnNL8AIqB6oMjIDp43Yjlj30 muP/LU0PigmTrnsy9+k9kWEy0MRG+ehBBUgn0= Received: by 10.90.101.17 with SMTP id y17mr289500agb.72.1216396109274; Fri, 18 Jul 2008 08:48:29 -0700 (PDT) Received: by 10.90.99.17 with HTTP; Fri, 18 Jul 2008 08:48:29 -0700 (PDT) Message-ID: ea440b1d0807180848l106e0f08pace1ab165d143ee2@mail.gmail.com Date: Fri, 18 Jul 2008 17:48:29 +0200 From: "Ioannis Aslanidis" aslanidis@gmail.com To: iaslanidis@flumotion.com Subject: Test 12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: ClamAV using ClamSMTP
-- Ioannis Aslanidis
I would really like to have this solved as soon as possible, so any help is greatly welcome. If you require any further information, please, do not hesitate to contact me.
Thanks in advance for your prompt reply.
Regards,
Ioannis
Thank you for the reply. Because of the fact that this is a production server, I would like to be 100% sure that upgrading sieve will fix this issue. Could you confirm this?
Regards,
Ioannis
On Fri, 18 Jul 2008 13:06:04 -0400, Charles Marcus CMarcus@Media-Brokers.com wrote:
On 7/18/2008, Ioannis Aslanidis (iaslanidis@flumotion.com) wrote:
# dovecot --version 1.0.rc15
Upgrade... this is very old...
There are lots of reasons to upgrade, but sieve stuff has changed a LOT sinc rc15...
--
Best regards,
Charles
On 7/18/2008, iaslanidis@flumotion.com (iaslanidis@flumotion.com) wrote:
Thank you for the reply. Because of the fact that this is a production server, I would like to be 100% sure that upgrading sieve will fix this issue. Could you confirm this?
Because its a production server, you should be most concerned about upgrading... you are using a VERY EARLY RELEASE CANDIDATE version (there were more than 30 (thats THIRTY) RC's of the 1.0 series) of an OLDER RELEASE version (dovecot is currently at 1.1.1 - lots of reasons to upgrade to the 1.1.x series)...
Hopefully you understand that most people don't have time to go back and read all of the release notes of all of the 40+ releases since yours was released to see if your particular problem was fixed.
--
Best regards,
Charles
iaslanidis@flumotion.com wrote:
Thank you for the reply. Because of the fact that this is a production server, I would like to be 100% sure that upgrading sieve will fix this issue. Could you confirm this?
Regards,
Ioannis
Not sure. Vacation code is not changed since... first release sieve plugin.
Vacation code calls 2 functions: first marks dupes (it seems working) , then, if it success second function is called which actualy sends vacation message. This action (success or failure) is loged in log file. try add sendmail_path variable in dovecot.conf
- wthat is in your log files?
- the only reason I can guess about failure in second function is sendmail binary. default value of "sendmail_path" (hardcoded) is /usr/lib/sendmail. You can verify this: "strings /path/to/dovecot/deliver | grep sendmail" If default value is incorrect
e.g.:
protocol lda { sendmail_path = /usr/sbin/sendmail .... }
..anyway I recommend upgrade to 1.0 release at less.
Uldis
participants (4)
-
Charles Marcus
-
iaslanidis@flumotion.com
-
Ioannis Aslanidis
-
Uldis Pakuls