Code: Select all
Dec 7 17:51:26 server MailScanner: MailScanner Email Processor version 5.0.2 starting...
Dec 7 17:51:26 server MailScanner: Reading configuration file /usr/mailscanner/etc/MailScanner.conf
Dec 7 17:51:26 server MailScanner: Reading configuration file /usr/mailscanner/etc/conf.d/README
Dec 7 17:51:26 server MailScanner: Cannot open ruleset file /virus.scanning.rules, No such file or directory
Obviously /virus.scanning.rules isn't the correct path, so I began searching the config files as to what was pointing to that file, and why it was looking in the filesystem root.
I found that the file at
Code: Select all
/usr/mailscanner/etc/MailScanner.conf
Code: Select all
#
# Removing/Logging dangerous or potentially offensive content
# -----------------------------------------------------------
#
# Do you want to scan the messages for potentially dangerous content?
# Setting this to "no" will disable all the content-based checks except
# Virus Scanning, Allow Partial Messages and Allow External Message Bodies.
# This can also be the filename of a ruleset.
Dangerous Content Scanning = %CRDIOERF77A1CVFFA6HLKZNDBJZBBY5ASGK2ISI0FVZKLUNDWC2-dir%/virus.scanning.rules
Code: Select all
Dangerous Content Scanning = %rules-dir%/virus.scanning.rules
I manually edited the
Code: Select all
/usr/mailscanner/etc/MailScanner.conf
Code: Select all
Dangerous Content Scanning = %rules-dir%/virus.scanning.rules
The logs now show as follows, with the error message no longer present. :)
Code: Select all
Dec 7 18:27:53 server MailScanner: MailScanner Email Processor version 5.0.2 starting...
Dec 7 18:27:54 server MailScanner: Reading configuration file /usr/mailscanner/etc/MailScanner.conf
Dec 7 18:27:54 server MailScanner: Reading configuration file /usr/mailscanner/etc/conf.d/README
Dec 7 18:27:54 server MailScanner: Read 868 hostnames from the phishing whitelist
Dec 7 18:27:54 server MailScanner: Read 5807 hostnames from the phishing blacklists
Dec 7 18:27:54 server MailScanner: Config: calling custom init function MailControlLogging
Dec 7 18:27:54 server MailScanner: Using SpamAssassin results cache
Dec 7 18:27:54 server MailScanner: Connected to SpamAssassin cache database
Dec 7 18:27:56 server MailScanner: Using locktype = posix