Chris,

> I am trying to release a message  as follows:
> request=release
> mail_id=g54s1WjRG5lf
> secret_id=
> quar_type=F
> mail_file=g/spam-g54s1WjRG5lf.gz
> requested_by=<[EMAIL PROTECTED]>
>
> My response is
> setreply=450 4.5.0 Unexpected:%20250%20Ok:%20queued%20as%200D8051E400D
>
> However, the mail is successfully released


From: Mark Martinec <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Thu, 9 Aug 2007 18:41:47 +0200
Message-Id: <[EMAIL PROTECTED]>
Subject: Re: [Mailzu-users] Error when Releasing (NOT in FAQ)

> It looks like its happening in this amavisd subroutine:
> Looks like this regular expression isn't catching the 250 response from the
> server and goes to the default else statement end replying with "450
> 4.5.0Unexpected:".

Right. It is a bug, triggered by those using versions of Postfix
before enhanced status codes were supported (RFC 2034, RFC 3463).

Here is a fix to amavisd-new 2.5.2:

--- amavisd.orig        Wed Jun 27 12:43:00 2007
+++ amavisd     Thu Aug  9 18:36:58 2007
@@ -13285,4 +13285,6 @@
     elsif ($resp =~ /^([1-5]\d\d) ([245]\.\d{1,3}\.\d{1,3})(?: |\z)(.*)\z/s)
       { ($smtp_s,$smtp_es,$msg) = ($1,$2,$3) }
+    elsif ($resp =~ /^(([1-5])\d\d)(?: |\z)(.*)\z/s)
+      { ($smtp_s,$smtp_es,$msg) = ($1, "$2.0.0" ,$3) }
     else
       { ($smtp_s,$smtp_es,$msg) = ('450', '4.5.0', "Unexpected: $resp") }

Please try it out.

  Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to