Hi there,
I am trying to setup a new MailScanner server, and i seem to be having an issue. Nothing shows up in the Recent Messages section.
Here is the output of: MailScanner --lint:
Trying to setlogsock(unix)
Could not read directory /var/spool/MailScanner/incoming at /usr/share/MailScanner//MailScanner/Config.pm line 2488
Error in configuration file line 167, directory /var/spool/MailScanner/incoming for incomingworkdir does not exist (or is not readable) at /usr/share/MailScanner//MailScanner/Config.pm line 2812
Could not read directory /var/spool/MailScanner/quarantine at /usr/share/MailScanner//MailScanner/Config.pm line 2488
Error in configuration file line 171, directory /var/spool/MailScanner/quarantine for quarantinedir does not exist (or is not readable) at /usr/share/MailScanner//MailScanner/Config.pm line 2812
Read 817 hostnames from the phishing whitelist
Read 5141 hostnames from the phishing blacklist
Config: calling custom init function SQLBlacklist
Starting up SQL Blacklist
Read 5 blacklist entries
Config: calling custom init function MailWatchLogging
Started SQL Logging child
Config: calling custom init function SQLWhitelist
Starting up SQL Whitelist
Read 1 whitelist entries
Checking version numbers...
Version number in MailScanner.conf (4.68.8) is correct.
ERROR: The "envelope_sender_header" in your spam.assassin.prefs.conf
ERROR: is not correct, it should match X-MGH-MailScanner-From
Could not test file ownership abilities on /var/lock/subsys/MailScanner/MailScanner.ownertest.12467, please delete the file at /usr/share/MailScanner//MailScanner/WorkArea.pm line 87
Incoming Work Dir does not exist at /usr/share/MailScanner//MailScanner/WorkArea.pm line 135
I am thinking it is a permission issue? i checked the permissions on the incoming and quarantine folders.
Incoming
drwxrwx--- 10 postfix postfix 4096 2019-05-31 08:48 .
drwxrwx--- 6 postfix postfix 4096 2012-11-16 15:00 ..
drwx------ 2 postfix www-data 4096 2019-05-31 08:48 12298
drwxrwx--- 2 postfix postfix 4096 2012-11-19 15:45 5042
drwxrwx--- 2 postfix postfix 4096 2019-05-30 10:15 5061
drwxrwx--- 2 postfix postfix 4096 2019-05-27 09:40 5065
drwxrwx--- 2 postfix postfix 4096 2019-05-27 09:58 5094
drwxrwx--- 2 postfix postfix 4096 2019-05-30 11:09 7166
drwx------ 2 postfix postfix 4096 2019-05-30 11:44 8019
-rwxrwx--- 1 postfix postfix 5120 2012-11-16 16:02 SpamAssassin.cache.db
drwxrwx--- 2 postfix postfix 4096 2019-05-31 08:48 SpamAssassin-Temp
Quarantine
drwxrwx--- 2 postfix postfix 4096 2008-05-08 18:30 .
drwxrwx--- 6 postfix postfix 4096 2012-11-16 15:00 ..
So what am i missing here? both the user and group to be used are set to postfix in my confg file.
Please help.
Thank you
Nothing shows up in Recent Messages
Re: Nothing shows up in Recent Messages
the output of:
Sudo MailScanner --lint
Trying to setlogsock(unix)
Read 817 hostnames from the phishing whitelist
Read 5141 hostnames from the phishing blacklist
Config: calling custom init function SQLBlacklist
Starting up SQL Blacklist
Read 5 blacklist entries
Config: calling custom init function MailWatchLogging
Started SQL Logging child
Config: calling custom init function SQLWhitelist
Starting up SQL Whitelist
Read 1 whitelist entries
Checking version numbers...
Version number in MailScanner.conf (4.68.8) is correct.
ERROR: The "envelope_sender_header" in your spam.assassin.prefs.conf
ERROR: is not correct, it should match X-MGH-MailScanner-From
MailScanner setting GID to (33)
MailScanner setting UID to (109)
Checking for SpamAssassin errors (if you use it)...
SpamAssassin temporary working directory is /var/spool/MailScanner/incoming/SpamAssassin-Temp
SpamAssassin temp dir = /var/spool/MailScanner/incoming/SpamAssassin-Temp
Using SpamAssassin results cache
Connected to SpamAssassin cache database
SpamAssassin reported no errors.
ClamAV scanner using unrar command /usr/bin/unrar
Using locktype = posix
MailScanner.conf says "Virus Scanners = clamav"
Found these virus scanners installed: clamd
===========================================================================
Virus and Content Scanning: Starting
WARNING: Ignoring deprecated option --unzip
WARNING: Ignoring deprecated option --jar
WARNING: Ignoring deprecated option --tar
WARNING: Ignoring deprecated option --tgz
WARNING: Ignoring deprecated option --deb
WARNING: Ignoring deprecated option --max-ratio
WARNING: Ignoring deprecated option --unrar
./1/eicar.com: Eicar-Test-Signature FOUND
./1.message: Eicar-Test-Signature FOUND
Virus Scanning: ClamAV found 2 infections
Infected message 1.message came from
Infected message 1 came from 10.1.1.1
Virus Scanning: Found 2 viruses
Filename Checks: (1 eicar.com)
Other Checks: Found 1 problems
===========================================================================
Virus Scanner test reports:
ClamAV said "eicar.com contains 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 SQLBlacklist
Closing down by-domain spam blacklist
Config: calling custom end function MailWatchLogging
Config: calling custom end function SQLWhitelist
Closing down by-domain spam whitelist
commit ineffective with AutoCommit enabled at /etc/MailScanner/CustomFunctions/MailWatch.pm line 93, <CLIENT> line 1.
Sudo MailScanner --lint
Trying to setlogsock(unix)
Read 817 hostnames from the phishing whitelist
Read 5141 hostnames from the phishing blacklist
Config: calling custom init function SQLBlacklist
Starting up SQL Blacklist
Read 5 blacklist entries
Config: calling custom init function MailWatchLogging
Started SQL Logging child
Config: calling custom init function SQLWhitelist
Starting up SQL Whitelist
Read 1 whitelist entries
Checking version numbers...
Version number in MailScanner.conf (4.68.8) is correct.
ERROR: The "envelope_sender_header" in your spam.assassin.prefs.conf
ERROR: is not correct, it should match X-MGH-MailScanner-From
MailScanner setting GID to (33)
MailScanner setting UID to (109)
Checking for SpamAssassin errors (if you use it)...
SpamAssassin temporary working directory is /var/spool/MailScanner/incoming/SpamAssassin-Temp
SpamAssassin temp dir = /var/spool/MailScanner/incoming/SpamAssassin-Temp
Using SpamAssassin results cache
Connected to SpamAssassin cache database
SpamAssassin reported no errors.
ClamAV scanner using unrar command /usr/bin/unrar
Using locktype = posix
MailScanner.conf says "Virus Scanners = clamav"
Found these virus scanners installed: clamd
===========================================================================
Virus and Content Scanning: Starting
WARNING: Ignoring deprecated option --unzip
WARNING: Ignoring deprecated option --jar
WARNING: Ignoring deprecated option --tar
WARNING: Ignoring deprecated option --tgz
WARNING: Ignoring deprecated option --deb
WARNING: Ignoring deprecated option --max-ratio
WARNING: Ignoring deprecated option --unrar
./1/eicar.com: Eicar-Test-Signature FOUND
./1.message: Eicar-Test-Signature FOUND
Virus Scanning: ClamAV found 2 infections
Infected message 1.message came from
Infected message 1 came from 10.1.1.1
Virus Scanning: Found 2 viruses
Filename Checks: (1 eicar.com)
Other Checks: Found 1 problems
===========================================================================
Virus Scanner test reports:
ClamAV said "eicar.com contains 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 SQLBlacklist
Closing down by-domain spam blacklist
Config: calling custom end function MailWatchLogging
Config: calling custom end function SQLWhitelist
Closing down by-domain spam whitelist
commit ineffective with AutoCommit enabled at /etc/MailScanner/CustomFunctions/MailWatch.pm line 93, <CLIENT> line 1.
Re: Nothing shows up in Recent Messages
This forum is for questions about our MailScanner Front-End for WHM/cPanel. You might want to try the
MailScanner mailing list
MailScanner mailing list