Guy wrote: > 2009/3/27 Nigel Kukard <[email protected]>: > >>> I am having the exact same issue on both debian and ubuntu, with both >>> deb/ubuntu amavis and the vanilla one. It always says it failed to parse >>> the queue id. I have tried 2.6.1 and 2.6.2. I am willing to setup a >>> virtual machine for you to try it out if you'd like. >>> >>> >> Try the attached patch? this is against amavis-policyd.pm >> > > I've been running into the same issue although you were looking at it > on another thread. I've tried the patch and now get the following > error: > > Mar 27 11:11:33 gateway amavis[11268]: (11268-01) > (!)policyd/process_policy: Failed to parse in queue id from received > line 'Received: by 10.210.77.2 with SMTP id > z2mr40550eba.44.1238152291514; Fri, 27 \n\tMar 2009 04:11:31 -0700 > (PDT)\n' > > Checked against the content of the mail and it's returning the last > "Received:" header in the file. Assuming it stops at the first one it > finds, it looks like it's checking from the bottom upwards rather than > top down. Not sure if that's expected behaviour or not. I'm assuming > you're looking for the last "Received:" header inserted at the top of > the headers? > Correct, my devel system only had 1 header.
Try the attached. -N
Index: contrib/amavisd-new/amavisd-policyd.pm
===================================================================
--- contrib/amavisd-new/amavisd-policyd.pm (revision 424)
+++ contrib/amavisd-new/amavisd-policyd.pm (working copy)
@@ -139,7 +139,7 @@
do_log(5,"policyd/process_policy: Starting");
# Get message ID
- my $lastReceived = $msginfo->orig_header_fields->{'received'};
+ my (undef,undef,$lastReceived) = $msginfo->get_header_field('received',0);
if (!($lastReceived =~ /with E?SMTPS?A? id ([0-9A-Z]+)/)) {
do_log(-1,"policyd/process_policy: Failed to parse in queue id from received line '$lastReceived'");
return $pbn;
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Users mailing list [email protected] http://lists.policyd.org/mailman/listinfo/users
