Postfix 2.3 and MailScanner - SOLVED

Julian Field MailScanner at ecs.soton.ac.uk
Wed Aug 30 12:04:13 IST 2006


Many thanks for that, it will be in the next release.

Holger Gebhard wrote:
> My Problem with Postfix 2.3.x and MailScanner is solved...
>
> I seems that only messages with more than one recipient and messages 
> actions delete and forward are affected.
>
> Here is a little example:
>
> A original message has 11 Recipients and is detected as Spam. The 
> actions are delete and forward to another mailaddress. MailScanner 
> marks the message as deleted and in the next step all the original 
> recipients had to be removed from the envelope header. Here is the 
> bug, MailScanner does not remove all old recipients!
>
> The code for the removement can be found in Postfix.pm -> sub 
> DeleteRecipients:
>
> next unless $message->{metadata}[$linenum] =~ /^[RO]/;
>
> This regular expression remove only recipients starts with "R" or "O" 
> in the header.
> Since Postfix 2.3.x there is a new recipient line that also must be 
> removed.
>
> To remove the new line i changed the regular expression and made a bit 
> more robust...
>
> next unless $message->{metadata}[$linenum] =~ 
> /^[ARO].+@(?:\w|-|\.)+\.\w{2,})/;
>
> Work fine for two days now with no more warnings in log :-)
>
>
> Holger
>
>
> ----- Original Message ----- From: "Holger Gebhard" 
> <holger at gebhardweb.de>
> To: "MailScanner discussion" <mailscanner at lists.mailscanner.info>
> Sent: Thursday, August 24, 2006 3:39 PM
> Subject: Re: Postfix 2.3 and MailScanner
>
>
>> Hi Julian,
>> hi Group,
>>
>> a upgrade to mailscanner version 4.55.10 does not help to solve the
>> problem
>> with postfix 2.3.2, it was a try...
>>
>> I attached some queuefiles which produce the "out-of-order" postfix
>> warning
>> message in log:
>>
>> Directory "incoming" contains messages from postfixqueue before scanning
>> by
>> mailscanner.
>> Directory "archiv" contains messages from mailscanner archiv function.
>> Directory "outgoing" contains messages from postfixqueue after 
>> scanning by
>> mailScanner.
>>
>> Queuefiles from incoming and archiv have the same content, no postfix
>> warning for this files.
>> Queuefiles form outgoing are modified by mailscanner, but only some
>> produce
>> the postfix warning.
>>
>> To see the warning just stop outgoing postfix (split queues) or postfix
>> (hold queue). Then copy a message from outgoing directory to postfix
>> incoming queue directory. Check systemrights for the copied file (for
>> debian
>> set to postfix.root). Next start Postfix and search your logs for the
>> warning.
>>
>> Hope anyone can help to solve the problem...
>>
>>
>> Thanks
>>
>> Holger
>>
>>
>>
>>
>>
>>
>>
>> ----- Original Message ----- From: "Holger Gebhard" 
>> <holger at gebhardweb.de>
>> To: "MailScanner discussion" <mailscanner at lists.mailscanner.info>
>> Sent: Sunday, August 20, 2006 9:06 PM
>> Subject: Re: Postfix 2.3 and MailScanner
>>
>>
>>> I am also running Postfix in Version 2.3.2...
>>>
>>> I forward a copy of all Spammails to a Mailbox (Spam Actions).
>>> Maybe the failure comes from here?
>>>
>>> It seems the failure produced by the DSN Recipient Line in the
>>> Envelope-Header.
>>>
>>> Only a idea...
>>> But what will happen if MailScanner delete all the DSN Header in the
>>> envelope.
>>> When the Message is requeued, postfix might add new headers to the
>>> Queuefile?
>>>
>>>
>>> ----- Original Message ----- From: "Julian Field" 
>>> <mailscanner at ecs.soton.ac.uk>
>>> To: "MailScanner discussion" <mailscanner at lists.mailscanner.info>
>>> Sent: Sunday, August 20, 2006 8:23 PM
>>> Subject: Re: Postfix 2.3 and MailScanner
>>>
>>>
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Can you make sure you are using the latest Postfix?
>>> I am running 2.3.2 and I cannot re-create your symptoms. I have used 
>>> all
>>> the 4 messages you sent me and they all worked fine, bar a warning 
>>> about
>>> timestamps which I always get and is due to the way I am dropping 
>>> things
>>> into its queue directories.
>>>
>>> I can't fix it until I can reproduce it, sorry.
>>>
>>> Holger Gebhard wrote:
>>>> Hi Julian,
>>>>
>>>> the failure happens only with some messages, not all.
>>>> The attached archive contains some example messages.
>>>>
>>>> Thanks for help :-)
>>>>
>>>>
>>>> Holger
>>>>
>>>> ----- Original Message ----- From: "Julian Field"
>>>> <mailscanner at ecs.soton.ac.uk>
>>>> To: "MailScanner discussion" <mailscanner at lists.mailscanner.info>
>>>> Sent: Sunday, August 20, 2006 5:02 PM
>>>> Subject: Re: Postfix 2.3 and MailScanner
>>>>
>>>>
>>>>
>>>>
>>>> * PGP Signed by an unmatched address: 08/20/06 at 16:03:03
>>>> * text/plain body
>>>> * Julian Field <Jules at jules.fm>
>>>> * 0x1415B654(L)
>>>> * PGP Signed by an unmatched address: 08/20/06 at 16:03:03
>>>>
>>>> Does this happen with all messages, or only some?
>>>> Can you isolate a single message that causes this problem for me 
>>>> please?
>>>> I would suggest using "Archive Mail =" to archive all your mail and 
>>>> then
>>>> use the logs to identify a particular message that causes the 
>>>> problem to
>>>> be logged, and one that doesn't cause the problem.
>>>>
>>>> It is essential that you archive as "Raw Queue Files".
>>>>
>>>> If you can then send me one message file that causes the problem, and
>>>> one message that doesn't cause it, I can take a look and fix it.
>>>>
>>>> I haven't played with Postfix 2.3 much yet, so have little 
>>>> experience of
>>>> it. This is clearly another hurdle Wietse has created for my 
>>>> benefit :-)
>>>>
>>>>
>>>> Holger Gebhard wrote:
>>>>> Hi Julian,
>>>>> Hi Group,
>>>>>
>>>>> i run mailscanner with postfix (split queues) for many years with no
>>>>> problems.
>>>>> Currently running mailscanner version 4.52.2.
>>>>>
>>>>> The last week i upgraded postfix from 2.2 to 2.3.
>>>>> After the upgrade i can see some strange warnings from postfix in my
>>>>> mail-logs: "ignoring out-of-order DSN original recipient..."
>>>>>
>>>>> I searched some group and found this threat:
>>>>>
>>>>> http://groups.google.de/group/list.postfix.users/browse_thread/thread/8185dfd727a9c61c/8257ccf669d80019?lnk=st&q=%22out-of-order+dsn+original+recipient%22&rnum=1&hl=de#8257ccf669d80019 
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> The strange is that only some messages are affected by this 
>>>>> failure not
>>>>> all.
>>>>>
>>>>> I tried both postfix implementations (single postfix with hold queue
>>>>> and
>>>>> split queues with two postfix instances) with no success. The warning
>>>>> is
>>>>> still there with some messages.
>>>>>
>>>>> Fortunately the affected messages are still being delivered.
>>>>> But where come this failure from?
>>>>>
>>>>>
>>>>> Holger
>>>>
>>>
>>> - -- Julian Field
>>> www.MailScanner.info
>>> Buy the MailScanner book at www.MailScanner.info/store
>>>
>>> MailScanner customisation, or any advanced system administration help?
>>> Contact me at Jules at MailScanner.biz
>>>
>>> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>>> For all your IT requirements visit www.transtec.co.uk
>>>
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: PGP Desktop 9.5.0 (Build 1112)
>>> Charset: ISO-8859-1
>>>
>>> wj8DBQFE6KiwEfZZRxQVtlQRAt2pAKDSUti8KDrj7mNGGA8MqhFEXIo9hACfV2Le
>>> ui8msutTnYukLNNMyKAvt3U=
>>> =fQhv
>>> -----END PGP SIGNATURE-----
>>>
>>> -- 
>>> This message has been scanned for viruses and
>>> dangerous content by MailScanner, and is
>>> believed to be clean.
>>> For all your IT requirements visit www.transtec.co.uk
>>>
>>> -- 
>>> MailScanner mailing list
>>> mailscanner at lists.mailscanner.info
>>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>>
>>> Before posting, read http://wiki.mailscanner.info/posting
>>>
>>> Support MailScanner development - buy the book off the website!
>>>
>>> -- 
>>> MailScanner mailing list
>>> mailscanner at lists.mailscanner.info
>>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>>
>>> Before posting, read http://wiki.mailscanner.info/posting
>>>
>>> Support MailScanner development - buy the book off the website!
>>
>
>
> -------------------------------------------------------------------------------- 
>
>
>
>> -- 
>> MailScanner mailing list
>> mailscanner at lists.mailscanner.info
>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>
>> Before posting, read http://wiki.mailscanner.info/posting
>>
>> Support MailScanner development - buy the book off the website!
>>
>

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

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit www.transtec.co.uk



More information about the MailScanner mailing list