Nothing shows up in Recent Messages
Posted: 31 May 2019, 13:55
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
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