MailScanner rules problem

Mark Sapiro mark at
Fri Mar 16 18:12:20 UTC 2018

On 03/16/2018 10:13 AM, nilton at wrote:
> 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.

I do not see this issue with MailScanner-5.0.7-2.

> 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: <nilton at>
> Delivered-To: nilton at
> X-Spam-Status: No
> *X-HGnet-MailScanner-To:
> X-HGnet-MailScanner-From:* nilton at

Nor do I see a missing To: for a message just like this if I set

Add Envelope To Header = Yes

> 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.

Look at the message for the headers


I think the Delivered-To: address will be the one MailScanner checks for
To: in rules.

Mark Sapiro <mark at>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the MailScanner mailing list