MailScanner 5.0.2 and Ubuntu server 16.04 first attempt

Patrick Goupell patrick at
Wed Jun 15 18:33:22 UTC 2016

This is my first attempt with both ubuntu and mailscanner.

Did a clean install of ubuntu server 16.04

downloaded and ran the mailscanner-5.0.2

Did a basic configuration of MailScanner.

Ran MailScanner --lint

Got the following errors (permissions?).  User is postfix and group is 
mtagroup as set by the install script and configuration settings.  Do I 
need to do anything with apparmor?

patrick at efa1:/etc/apparmor.d/local$ MailScanner --lint
Trying to setlogsock(unix)
Can't call method "close" on an undefined value at 
/usr/sbin/ms-create-locks line 48.
Error: Attempt to create locks in /var/spool/MailScanner/incoming/Locks 

Reading configuration file /etc/MailScanner/MailScanner.conf
Reading configuration file /etc/MailScanner/conf.d/README
Read 501 hostnames from the phishing whitelist
Read 16128 hostnames from the phishing blacklists
Config: calling custom init function SQLWhitelist
Config: calling custom init function MailWatchLogging
Config: calling custom init function SQLBlacklist

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

Your envelope_sender_header in spamassassin.conf is correct.
Cannot create temporary Work Dir /var/spool/MailScanner/incoming/1343. 
Are the permissions and ownership of /var/spool/MailScanner/incoming 
correct? at /usr/share/MailScanner/perl/MailScanner/ line 147.


More information about the MailScanner mailing list