Pascal,

quarantined messages don't have a X-Envelope-From header. When I try to
release a message from the quarantine amavis logs:
        Quarantine release $QID: missing X-Envelope-From or Return-Path
But the quarantined message has a Return-Path header.

I've checked the archive of this mailing list. The problem is well
known. But I couldn't find a solution. Either my google-foo is bad or
google itself.

I'm using amavisd-new 2.9.1 (Debian: 1:2.9.1-1).
[...]

Indeed, a bug. Thanks for reporting it.

I wonder how I never noticed it (currently just leaves
sender as <>, which is not too bad, although unintended).

Attached is a patch against 2.10.0-rc1, should also apply to 2.9.1.

  Mark
--- amavisd~	2014-09-29 03:43:43.548538810 +0200
+++ amavisd	2014-09-30 00:48:56.511307354 +0200
@@ -11400,7 +11400,6 @@
         $sender = undef; @recips_all = (); @recips_blocked = (); $qid = undef;
       } elsif ( $bsmtp && /^QUIT$/i) { last;
-      } elsif (!$bsmtp && /^Return-Path:/si) {
       } elsif (!$bsmtp && /^Delivered-To:/si) {
-      } elsif (!$bsmtp && /^X-Envelope-From:[ \t]*(.*)$/si) {
+      } elsif (!$bsmtp && /^(?:Return-Path|X-Envelope-From):[ \t]*(.*)$/si) {
         if (!defined $sender) {
           my(@addr_list) = parse_address_list($1);

Reply via email to