dovecot sieve sends vacation messages with null envelope sender

Bug #253121 reported by Josef Liška
2
Affects Status Importance Assigned to Milestone
dovecot (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

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

My system:
1)
Description: Ubuntu 8.04.1
Release: 8.04

2) dovecot-common:
  Installed: 1:1.0.10-1ubuntu5.1
  Candidate: 1:1.0.10-1ubuntu5.1
  Version table:
 *** 1:1.0.10-1ubuntu5.1 0
        500 http://de.archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     1:1.0.10-1ubuntu5 0
        500 http://de.archive.ubuntu.com hardy/main Packages

3) 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

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

Revision history for this message
Josef Liška (jl-chl) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

If possible can you send this patch to dovecot itself and see what they have to say about it. I ask this because we wont have to maintain this patch from release to release.

Thanks
chuck

Changed in dovecot:
status: New → Incomplete
Revision history for this message
Josef Liška (jl-chl) wrote :

I have sent it to dovecot mailing list. http://dovecot.org/pipermail/dovecot/2008-August/032815.html

Revision history for this message
Chuck Short (zulcss) wrote :

According to upstream this is the intended behavior so we are not going to add this patch.

Thanks
chuck

Changed in dovecot:
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.