[Dovecot] dovecot-lda cvs

Timo Sirainen tss at iki.fi
Thu Oct 27 17:18:57 EEST 2005


On Thu, 2005-10-27 at 15:47 +0200, Rene Luria wrote:
> I am using dovecot-lda from cvs (checked out on september the 21st) and
> dovecot 1.0alpha2 (not yet upgraded ok).
> 
> I have a strange feeling about "redirect" feature.

Thanks, others had told about this before but I since it worked with
simple tests I thought the bug was somewhere else than dovecot-lda
itself.

> How can I deal with this ? Is there some nice hotfix that would prevent
> a few (like 100'000) users to kill me ?

This should work:

RCS file: /var/lib/cvs/dovecot-lda/src/mail-send.c,v
retrieving revision 1.6
diff -u -r1.6 mail-send.c
--- mail-send.c	14 Oct 2005 20:26:41 -0000	1.6
+++ mail-send.c	27 Oct 2005 14:17:26 -0000
@@ -138,12 +138,12 @@
     size_t size;
     int ret;
 
+    return_path = mail_get_first_header(mail, "Return-Path");
+
     input = mail_get_stream(mail, NULL, NULL);
     if (input == NULL)
 	    return -1;
 
-    return_path = mail_get_first_header(mail, "Return-Path");
-
     smbuf[0] = "sendmail";
     smbuf[1] = "-i";		/* ignore dots */
     if (return_path && *return_path) {

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20051027/1f4ef174/attachment.pgp


More information about the dovecot mailing list