<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000'>Empty sender is fine, empty reciever makes no sence. It is postfix&nbsp;2.9.1-2~bpo60+1 from debian squeeze-backport version. Seems it moves reciver from O to R record. If still not enough info, I can send the whole config. I fix it that empty R record is ignored.<div><br><div>Marek Šimon<br><br><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>Od: </b>"Glenn Steen" &lt;glenn.steen@gmail.com&gt;<br><b>Komu: </b>"MailScanner discussion" &lt;mailscanner@lists.mailscanner.info&gt;<br><b>Odeslané: </b>Čtvrtek, 17. Květen 2012 23:44:55<br><b>Předmět: </b>Re: Incorrect logging<br><br><p>... But empty records should be fine (empty sender == MAILER-DAEMON...), so that'd be a non-fix. Question is why your PF is inserting an empty record there...? What version of PF? Built or packaged?</p>
<p>Cheers<br>
-- <br>
-- Glenn (who is enjoying Prague, for the weekend, a lot less, after the bad loss in the Hockey wcc... Sweden 3, Check rep. 4)</p>
<div class="gmail_quote">Den 17 maj 2012 14:07 skrev "Marek Šimon" &lt;<a href="mailto:marek.simon@casablanca.cz" 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">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 'if test' 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>"Marek Šimon" &lt;<a href="mailto:marek.simon@casablanca.cz" target="_blank">marek.simon@casablanca.cz</a>&gt;<br>
<b>Komu: </b>"MailScanner discussion" &lt;<a href="mailto:mailscanner@lists.mailscanner.info" 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>
&nbsp; &nbsp; &nbsp; &nbsp; echo 'ehlo clienthostname'</div><div></div><div>&nbsp; &nbsp; &nbsp; &nbsp; echo 'mail from:&lt;<a href="mailto:marek.simon@casablanca.cz" target="_blank">marek.simon@casablanca.cz</a>&gt;'</div><div></div><div>&nbsp; &nbsp; &nbsp; &nbsp; echo 'rcpt to:&lt;<a href="mailto:pletiplot@xyz.cz" target="_blank">pletiplot@xyz.cz</a>&gt;'</div>
<div></div><div>&nbsp; &nbsp; &nbsp; &nbsp; echo 'data'</div><div></div><div>&nbsp; &nbsp; &nbsp; &nbsp; echo 'some spam and html fragments to test the antispam procesing'</div><div>&nbsp; &nbsp; &nbsp; &nbsp; echo '.'</div><div></div><div>&nbsp; &nbsp; &nbsp; &nbsp; 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 "To: envelope address" and "From: the envelope address" 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>"Glenn Steen" &lt;<a href="mailto:glenn.steen@gmail.com" target="_blank">glenn.steen@gmail.com</a>&gt;<br>
<b>Komu: </b>"MailScanner discussion" &lt;<a href="mailto:mailscanner@lists.mailscanner.info" 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 "Marek Šimon" &lt;<a href="mailto:marek.simon@casablanca.cz" 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. &nbsp;Everything works except mailscanner logs "from" instead of "source reverze address" and nothing instead "To:". Seems there is something wrong inside the MailScanner or MailWatch.</div>

<div>Marek</div></div></div><br>--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" 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="mailto:mailscanner@lists.mailscanner.info" 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="mailto:mailscanner@lists.mailscanner.info" 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><br>--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" 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>mailscanner@lists.mailscanner.info<br>http://lists.mailscanner.info/mailman/listinfo/mailscanner<br><br>Before posting, read http://wiki.mailscanner.info/posting<br><br>Support MailScanner development - buy the book off the website! <br></div><br></div></div></div></body></html>