[Dovecot] dovecot sieve sends vacation messages with null envelope sender

Josef Liška jl at chl.cz
Tue Aug 12 14:32:14 EEST 2008


I am using this simple sieve script to do "vacation":

require ["fileinto", "vacation"];
if exists "X-Spam-Flag" {
  stop;
}
vacation
  :days 1
  :subject "Out of office reply"
  :addresses ["<email address hidden>", "<email address hidden>" ]
"I am on vacation until 2008-08-07.
If you have something urgent, please contact: Jan Novak <email address 
hidden>
";

I use sql lookups for users and passwords. For some reason the default 
location ~/.dovecot-sieve did not work for some reason. However I prefer 
to put sieve scripts to /var/lib/sieve and when I added additional field 
to lookup with this location it started to work.

But it sends vacation messages with null envelope sender, which is in my 
opinion undesirable, because many vacation messages are caught in spam 
filters.

I think there could be same sender on envelope.
In dovecot-sieve/src/sieve-cmu.c around line 380 is a call to 
smtp_client_open(src->addr, NULL, &f);
NULL could be replaced with src->fromaddr

Maybe some more patching may be necesary. I found similar patch for 
cyrus-imapd at
http://oss.digirati.com.br/mail/cyrus.html 
<http://oss.digirati.com.br/mail/cyrus.html>

My current system:
1)  Ubuntu 8.04.1

jl at mail:~$ dovecot --version
1.0.15

It is a backported package from ubuntu intrepid ibex. However the same 
applies for dovecot 1.0.10 which is in ubuntu 8.04.


Summary:
I expect messages sent by vacation recipe should have envelope from same 
as user's e-mail address. This is then writen to Return-Path: header by 
receiving MTA

NULL envelope from is used, resulting (in my case) to Return-Path: <> 
rewriten by postfix to Return-Path: <MAILER-DAEMON> by receiving MTA

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot-sieve-nullsender.patch
Type: text/x-patch
Size: 483 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20080812/c02ced64/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jl.vcf
Type: text/x-vcard
Size: 387 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20080812/c02ced64/attachment.vcf 


More information about the dovecot mailing list