Ioannis Aslanidis
2008-Jul-18 15:57 UTC
[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 at 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 at 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 at gmail.com>
X-Original-To: iaslanidis at flumotion.com
Delivered-To: iaslanidis at 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 at 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 at 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/BTvBkq1AOTOfTnlHRONQ00aoNza44DomainKey-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+ehBBUgn0Received: 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 at
mail.gmail.com>
Date: Fri, 18 Jul 2008 17:48:29 +0200
From: "Ioannis Aslanidis" <aslanidis at gmail.com>
To: iaslanidis at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iaslanidis.vcf
Type: text/x-vcard
Size: 372 bytes
Desc: not available
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20080718/ff796200/attachment-0002.vcf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20080718/ff796200/attachment-0002.bin>
On 7/18/2008, Ioannis Aslanidis (iaslanidis at flumotion.com) wrote:> # dovecot --version > 1.0.rc15Upgrade... this is very old... There are lots of reasons to upgrade, but sieve stuff has changed a LOT sinc rc15... -- Best regards, Charles
iaslanidis at flumotion.com
2008-Jul-18 19:12 UTC
[Dovecot] Problems with dovecot/sieve and vacation
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 at Media-Brokers.com> wrote:> On 7/18/2008, Ioannis Aslanidis (iaslanidis at 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
iaslanidis at 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. 1. wthat is in your log files? 2. 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 try add sendmail_path variable in dovecot.conf e.g.: ----- protocol lda { sendmail_path = /usr/sbin/sendmail .... } ----- ..anyway I recommend upgrade to 1.0 release at less. Uldis
iaslanidis at flumotion.com
2008-Jul-19 00:04 UTC
[Dovecot] Problems with dovecot/sieve and vacation
Hello, Thank you for the reply. I will plan to do the upgrade some time soon, that is not questionable. Now back to this, I checked the following: # strings /usr/libexec/dovecot/deliver | grep sendmail /usr/lib/sendmail So, if I understand correctly, this is fine. What I have in maillog is the following: 614u19e82aed7fe5a435 at mail.gmail.com> for <iaslanidis at flumotion.com> ORCPT=rfc822;iaslanidis at flumotion.com Jul 19 01:58:56 se01 spampd[9143]: clean message <ea440b1d0807181658s458ba614u19e82aed7fe5a435 at mail.gmail.com> (0.28/3.50) from <aslanidis at gmail.com> for <iaslanidis at flumotion.com> ORCPT=rfc822;iaslanidis at flumotion.com in 0.04s, 1926 bytes. Jul 19 01:58:56 se01 clamsmtpd: 10C4A0: from=aslanidis at gmail.com, to=iaslanidis at flumotion.com, status=CLEAN Jul 19 01:58:56 se01 postfix/smtp[15494]: AC414250084: to=<iaslanidis at flumotion.com>, relay=127.0.0.1[127.0.0.1]:10025, delay=0.86, delays=0.55/0.01/0.06/0.24, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 253AE250133) Jul 19 01:58:56 se01 deliver(iaslanidis at flumotion.com): execv(/usr/lib/sendmail) failed: Permission denied Jul 19 01:58:56 se01 deliver(iaslanidis at flumotion.com): Sendmail process terminated abnormally, exit status 89 Jul 19 01:58:56 se01 deliver(iaslanidis at flumotion.com): sieve runtime error: Vacation: Error sending mail Jul 19 01:58:57 se01 deliver(iaslanidis at flumotion.com): msgid=<ea440b1d0807181658s458ba614u19e82aed7fe5a435 at mail.gmail.com>: saved mail to INBOX Jul 19 01:58:57 se01 deliver(iaslanidis at flumotion.com): msgid=<ea440b1d0807181658s458ba614u19e82aed7fe5a435 at mail.gmail.com>: saved mail to INBOX Jul 19 01:58:57 se01 postfix/pipe[15529]: 253AE250133: to=<iaslanidis at flumotion.com>, relay=dovecot, delay=1.5, delays=0.24/0.01/0/1.2, dsn=2.0.0, status=sent (delivered via dovecot service) For what I see here, this could be a SELinux permission problem, am I right? Regards, Ioannis On Sat, 19 Jul 2008 02:35:11 +0300, Uldis Pakuls <neko at it4u.lv> wrote:> 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. > 1. wthat is in your log files? > 2. 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 > try add sendmail_path variable in dovecot.conf