Problem with Postfix and 4.76.1[67] - was Re: Found nn messages in the processing-messages database

Julian Field MailScanner at ecs.soton.ac.uk
Fri Apr 24 09:42:25 IST 2009



On 23/04/2009 22:07, Mark Sapiro wrote:
> Mark Sapiro wrote:
>
>    
>> I then tried installing MailScanner 4.76.17-1, but that seems to have
>> some other problem in that it is not picking up new messages from
>> Postfix at all. Postfix receives messages and puts them in the Hold
>> queue, and they just stay there. MailScanner doesn't pick them up and
>> doesn't log anything.
>>      
>
> I don't know enough about the whole process to come up with a patch,
> but it looks like there are two issues with Postfix.pm
>
> in sub new,
>
>    $this->{HDFileRegexp} = '^([\\dA-F]+)$';
>
> doesn't allow for the leading 'P'.
>
> in sub HDFileName
>
>      $id =~ s/\.[^.]+$//;
>
> needs I think to be something like
>
>      $id =~ s/P([^.]+)\.[^.]+$/\1/;
>
> Either that, or just add the 'P' to the beginning of the entropy
> fragment (after the '.') instead of to the beginning of the id.
>
> I think I'll try this latter change:
>
>          my $id = 'P' . $idtemp . '.' . PostfixKey($file);
>
> becomes instead
>
>          my $id = $idtemp . '.' . 'P' . PostfixKey($file);
>    
Damn, knew I would screw it up somewhere. Good thing it was a beta. I 
have gone for adding it in the middle as per your 2nd suggestion.

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list