MailScanner --lint %org-name% not importing

Eoin Kim Eoin.Kim at
Sun Jul 24 23:10:28 UTC 2016


I am not sure if it is the desired behaviour but my MailScanner doesn't import my configuration setting.

I made site-specific configuration file inside /etc/MailScanner/conf.d directory and inside that file I set %org-name%. However, when I run MailScanner --lint, I get this error:

sysadmin at$ sudo MailScanner --lint
Trying to setlogsock(unix)

Reading configuration file /etc/MailScanner/MailScanner.conf
Reading configuration file /etc/MailScanner/conf.d/mynetwork.conf
Read 501 hostnames from the phishing whitelist
Read 15359 hostnames from the phishing blacklists
Config: calling custom init function SQLWhitelist
Starting up SQL Whitelist
Read 0 whitelist entries
Config: calling custom init function MailWatchLogging
Started SQL Logging child
Config: calling custom init function SQLBlacklist
Starting up SQL Blacklist
Read 0 blacklist entries

Checking version numbers...
Version number in MailScanner.conf (5.0.2) is correct.

ERROR: The "envelope_sender_header" in your spamassassin.conf
ERROR: is not correct, it should match X-yoursite-MailScanner-From

MailScanner setting GID to  (1001)
MailScanner setting UID to  (106)

Checking for SpamAssassin errors (if you use it)...
Using SpamAssassin results cache
Connected to SpamAssassin cache database
pyzor: check failed: internal error, python traceback seen in response
SpamAssassin reported no errors.
Auto: Found virus scanners: clamd
Connected to Processing Attempts Database
Created Processing Attempts Database successfully
There are 0 messages in the Processing Attempts Database
Using locktype = posix
MailScanner.conf says "Virus Scanners = auto"
Found these virus scanners installed: clamd
Filename Checks: Windows/DOS Executable (1
Other Checks: Found 1 problems
Virus and Content Scanning: Starting
Clamd::INFECTED:: Eicar-Test-Signature :: ./1/
Virus Scanning: Clamd found 2 infections
Infected message 1 came from
Virus Scanning: Found 2 viruses
Virus Scanner test reports:
Clamd said " was infected: Eicar-Test-Signature"

If any of your virus scanners (clamd)
are not listed there, you should check that they are installed correctly
and that MailScanner is finding them correctly via its virus.scanners.conf.
Config: calling custom end function SQLWhitelist
Closing down SQL Whitelist
Config: calling custom end function MailWatchLogging
Config: calling custom end function SQLBlacklist
Closing down SQL Blacklist


So, obviously it reads my site-specific configuration file but it keeps showing that error message regarding envelope_sender_header setting. When I change %org-name% in the /etc/MailScanner/MailScanner.conf file same as my site-specific setting, the error message goes away. I believe this is a bug? Or Am I doing something wrong? Thanks a lot.

Eoin Kim
Systems Administrator

RCS Telecommunications
Level 1, 133 Mary Street
Brisbane, QLD, 4000
Office: 07 3228 0843
Mobile: 0419 726 231
Email: at< at>

[RCST logo drop shadow]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3384 bytes
Desc: image001.jpg
URL: <>

More information about the MailScanner mailing list