Sounds like postfix could be mangling the data incoming as it should be getting this simple info from your example correctly<div><br></div>One thing to check is to run mailscanner in debug mode against a sample message in the holding queue (su to postfix furst) and see if you get any clues there<div>
<br></div><div>Theres lots of people running ms and postfix together so its not the combination thats unhappy<span></span><br><div><br></div><div>Martin<br><br>On Thursday, 17 May 2012, Marek Šimon  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:arial,helvetica,sans-serif">I descented into Postfix.pm, line 387. MailScanner recognises the Original recipient and stops recognizing other recipients when it finds it. But in my postfix there is no original recipient, the original recipient record is empty. But Mailscanner consider this empty record as valid and there is the whole problem. So I add an &#39;if test&#39; which skips empty records.<div>
Marek</div><div><br><br><hr><div style="font-size:12pt;font-style:normal;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal"><b>Od: </b>&quot;Marek Šimon&quot; &lt;<a href="javascript:_e({}, &#39;cvml&#39;, &#39;marek.simon@casablanca.cz&#39;);" target="_blank">marek.simon@casablanca.cz</a>&gt;<br>
<b>Komu: </b>&quot;MailScanner discussion&quot; &lt;<a href="javascript:_e({}, &#39;cvml&#39;, &#39;mailscanner@lists.mailscanner.info&#39;);" target="_blank">mailscanner@lists.mailscanner.info</a>&gt;<br><b>Odeslané: </b>Čtvrtek, 17. Květen 2012 9:26:58<br>
<b>Předmět: </b>Re: Incorrect logging<br><br><div style="font-size:12pt;font-family:arial,helvetica,sans-serif"><div>Hi</div><div></div>I am refering to envelope address. I send the message by pushing it via nc to the mail server, the message is like this:<div>
<div>        echo &#39;ehlo clienthostname&#39;</div><div></div><div>        echo &#39;mail from:&lt;<a href="javascript:_e({}, &#39;cvml&#39;, &#39;marek.simon@casablanca.cz&#39;);" target="_blank">marek.simon@casablanca.cz</a>&gt;&#39;</div>
<div></div><div>        echo &#39;rcpt to:&lt;<a href="javascript:_e({}, &#39;cvml&#39;, &#39;pletiplot@xyz.cz&#39;);" target="_blank">pletiplot@xyz.cz</a>&gt;&#39;</div><div></div><div>        echo &#39;data&#39;</div><div>
</div><div>        echo &#39;some spam and html fragments to test the antispam procesing&#39;</div><div>        echo &#39;.&#39;</div><div></div><div>        echo quit</div><div>) | nc -t serverhostname 25</div><div><br></div>
<div>The clienthostname and serverhostname are placeholders of course.</div><div>There is &quot;To: envelope address&quot; and &quot;From: the envelope address&quot; and no regular headers as you see (no headers increase the spam score, which is what I wanted). The message is read by the MailScanner but in MailScanner records in mail.log there is empty space where the recipient should be and there is sender address where sender server hostname should be. I debuged the Message.pm and message-&gt;{to} is empty there. I am not a perl guru so I just try to print some values. The To: address is empty in localy generated messages too. I was very upset yesterday while debuging it.</div>
<div><br></div><div>Thanks.</div><div>Marek</div><div><br></div><br><hr><div style="font-size:12pt;font-style:normal;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal"><b>Od: </b>&quot;Glenn Steen&quot; &lt;<a href="javascript:_e({}, &#39;cvml&#39;, &#39;glenn.steen@gmail.com&#39;);" target="_blank">glenn.steen@gmail.com</a>&gt;<br>
<b>Komu: </b>&quot;MailScanner discussion&quot; &lt;<a href="javascript:_e({}, &#39;cvml&#39;, &#39;mailscanner@lists.mailscanner.info&#39;);" target="_blank">mailscanner@lists.mailscanner.info</a>&gt;<br><b>Odeslané: </b>Čtvrtek, 17. Květen 2012 8:55:20<br>
<b>Předmět: </b>Re: Incorrect logging<br><br><p>Are you refering to headers? MS/MW operates on the envelope addresses, not the headers. So it is very likely correct. Quote the details page for a message you perceive as wrong, if still in doubt.</p>

<p>-- <br>
-- Glenn</p>
<div class="gmail_quote">Den 16 maj 2012 20:33 skrev &quot;Marek Šimon&quot; &lt;<a href="javascript:_e({}, &#39;cvml&#39;, &#39;marek.simon@casablanca.cz&#39;);" target="_blank">marek.simon@casablanca.cz</a>&gt;:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div style="font-size:12pt;font-family:arial,helvetica,sans-serif">Hi,<div>I have mailscanner with postfix and mailwatch. There is Mailwatch extension in custom function.  Everything works except mailscanner logs &quot;from&quot; instead of &quot;source reverze address&quot; and nothing instead &quot;To:&quot;. Seems there is something wrong inside the MailScanner or MailWatch.</div>

<div>Marek</div></div></div><br>--<br>
MailScanner mailing list<br>
<a href="javascript:_e({}, &#39;cvml&#39;, &#39;mailscanner@lists.mailscanner.info&#39;);" target="_blank">mailscanner@lists.mailscanner.info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
<br>
Support MailScanner development - buy the book off the website!<br>
<br></blockquote></div>
<br>-- <br>MailScanner mailing list<br><a href="javascript:_e({}, &#39;cvml&#39;, &#39;mailscanner@lists.mailscanner.info&#39;);" target="_blank">mailscanner@lists.mailscanner.info</a><br><a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br><br>Support MailScanner development - buy the book off the website! <br></div><br></div></div>
<br>-- <br>MailScanner mailing list<br><a href="javascript:_e({}, &#39;cvml&#39;, &#39;mailscanner@lists.mailscanner.info&#39;);" target="_blank">mailscanner@lists.mailscanner.info</a><br><a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br><br>Support MailScanner development - buy the book off the website! <br></div><br></div></div>
</div></blockquote></div></div><br><br>-- <br>-- <br>Martin Hepworth<br>Oxford, UK<br>