External Mail Warning

Datasoft-India datasoftindia at gmail.com
Mon Jun 29 07:22:42 UTC 2020

Hi All,

I have configured External Mail Warning in external.message.rules and
put all my domains as
From:   xxxxxxxx.com no
FromOrTo: default yes
initially did not work so followed https://github.com/MailScanner/v5/issues/413
finally I copied MessageBatch.pm and Message.pm from the latest git
and used it and it started working.

However I am facing a peculiar problem.
MailScanner does not insert warning for html mails from gmail.com or
some mails from random sender domains. It sometimes inserts warning
for mails sent out from my own domain to outsiders though my domain is
listed as "From:   xxxxxxxx.com no."
In short it works randomly.
Does it require space or tabs or am I missing something. Whatever be
the case im very surprised html mails from gmail.com or gsuite
originated domains are never tagged.

My system details below.

[root at mx1 rules]# MailScanner -v
Running on
Linux xxxxx.com  3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19
UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
This is CentOS Linux release 7.8.2003 (Core)
This is Perl version 5.016003 (5.16.3)
This is MailScanner version 5.2.1

can someone throw light on this peculiar behaviour.
Thanks & Regards

More information about the MailScanner mailing list