<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,</p>
<p>I agree with you. I have also never seen this happen with
MailScanner. I think I now have to direct my research to Postfix.
I've never used MySQL to authenticate users and domains.This was
the first time I set up Postfix with MySQL and Postfixadmin
following this tutorial:
<a class="moz-txt-link-freetext" href="https://www.exratione.com/2016/05/a-mailserver-on-ubuntu-16-04-postfix-dovecot-mysql/">https://www.exratione.com/2016/05/a-mailserver-on-ubuntu-16-04-postfix-dovecot-mysql/</a>
. The issue can be here.<br>
Searching on Google I found many different tutorials but I would
be grateful if you could indicate me a tutorial tested for the
installation of Postfix + MySQL + postfixadmin for Ubuntu or
Debian.</p>
<p>Nilton Godoi</p>
<div class="moz-signature">
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<title>HGnet - A solução em TI.</title>
<font color="#808080"><font face="Times New Roman, serif"><font
size="2"><small><big style="font-weight: bold;"><big><big><small><span
style="color: rgb(35, 67, 105);"></span></small></big></big></big></small></font></font></font>
<table style="text-align: left; width: 334px; height: 120px;">
<tbody>
<tr>
<td>
<div style="text-align: center;"><span style="font-family:
Times New Roman,serif;"><span style="text-decoration:
underline;"><a href="www.hgnet.com.br"><img
style="border: 0px solid ; width: 100px; height:
58px;" alt=""
src="cid:part1.AA14EC02.8A1F2ACB@hgnet.com.br"></a></span></span><br>
</div>
<font color="#808080"><font face="Times New Roman, serif"><font
size="2"><small> </small></font></font></font>
<div style="text-align: center; color: rgb(42, 80, 126);"><font
face="Times New Roman, serif"><font size="2"><small><big
style="font-weight: bold;"><big><big><small>A
Solução em TI</small></big></big></big></small></font></font></div>
</td>
<td>
<div style="text-align: center;"><big style="color:
rgb(41, 78, 123);"><font style="color: rgb(49, 93,
147);"><font face="Times New Roman, serif"><b><br>
<small>Nilton
Godoi</small></b></font></font></big><br>
<font color="#808080"><font face="Times New Roman,
serif"> <font size="2"><small><small>Fones:
 +55 11 3582-2746  3582-2756</small></small></font></font></font><br>
<font color="#808080"><font face="Times New Roman,
serif"><font size="2"><small><small>
Celular: +55 11 Â 98191-0001<br>
</small></small></font></font></font><font
size="+1" color="#808080"><font face="Times New Roman,
serif">
<a class="moz-txt-link-abbreviated" href="http://www.hgnet.com.br">www.hgnet.com.br</a></font></font><font color="#808080"><font
face="Times New Roman, serif"><font size="2"><small><small><br>
</small></small></font></font></font></div>
<font color="#808080"><font face="Times New Roman, serif"><font
size="2"><small> <big style="font-weight: bold;"><big><big><small><span
style="color: rgb(35, 67, 105);"></span></small></big></big></big></small></font></font></font></td>
</tr>
</tbody>
</table>
<br>
<font color="#808080"><font face="Times New Roman, serif"><font
size="2"><small><big style="font-weight: bold;"><big><big><small><span
style="color: rgb(35, 67, 105);"></span></small></big></big></big></small></font></font></font>
</div>
<div class="moz-cite-prefix">Em 16/3/2018 15:12, Mark Sapiro
escreveu:<br>
</div>
<blockquote type="cite"
cite="mid:9534d2d2-cdf8-a656-c0d3-b313661bd69b@msapiro.net">
<pre wrap="">On 03/16/2018 10:13 AM, <a class="moz-txt-link-abbreviated" href="mailto:nilton@hgnet.com.br">nilton@hgnet.com.br</a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
I have seen that MailScanner does not receive or recognize only the
rules for local domains with the expression "To:" and so it does not
follow the rule. I've also seen that even for local domains for the
expression "From:" the rule is followed.
</pre>
</blockquote>
<pre wrap="">
I do not see this issue with MailScanner-5.0.7-2.
</pre>
<blockquote type="cite">
<pre wrap="">Looking at the header of a message sent from a user to itself, the To:
field appears empty, different from the From: field:
Return-Path: <a class="moz-txt-link-rfc2396E" href="mailto:nilton@domain1.com.br"><nilton@domain1.com.br></a>
Delivered-To: <a class="moz-txt-link-abbreviated" href="mailto:nilton@domain1.com.br">nilton@domain1.com.br</a>
X-Spam-Status: No
*X-HGnet-MailScanner-To:
X-HGnet-MailScanner-From:* <a class="moz-txt-link-abbreviated" href="mailto:nilton@domain1.com.br">nilton@domain1.com.br</a>
</pre>
</blockquote>
<pre wrap="">
Nor do I see a missing To: for a message just like this if I set
Add Envelope To Header = Yes
</pre>
<blockquote type="cite">
<pre wrap="">The question is: Could the Postfix be creating a header with information
not recognized by MailScanner? Why the MailScanner does not recognize
only the local domains in "To:" rule, but recognize "From:" rule. My
search is currently focused on this issue.
</pre>
</blockquote>
<pre wrap="">
Look at the message for the headers
X-Original-To:
Delivered-To:
I think the Delivered-To: address will be the one MailScanner checks for
To: in rules.
</pre>
</blockquote>
<br>
<br />--
<br />Esta mensagem foi verificada pelo sistema de antivírus e
<br /> acredita-se estar livre de perigo.
</body>
</html>