Bad hostname:
Check the hostname listed in "Received by: " which is the hostname field in the messages
table in the DB and see if it corresponds to the host name where the message should be stored and also make sure you can resolve that host name.
The "Received by: " hostname comes from mailscanner which gets the server's hostname at startup so if you change your machine's hostmane you'll have to restart malscanner for it to take effect.
MailScanner Spool folders permissions:
Check the users you are using for the quarantine folder in your MalScanner.conf.
Quarantine user should not be root.
Quarantine User = postfixAnd check the permissions of your spool folders:
Quarantine Group = celeryd
Quarantine Permissions = 0660
Quarantine Whole Message = yes
Quarantine Whole Messages As Queue Files = no
/var/spool/
drwxr-xr-x 5 postfix postfix 4096 Aug 21 03:04 MailScanner
/var/spool/MailScannerAlso, your webserver's user should have access to the quarantine folder, you can add it to the celeryd group in this case.
drwxr-xr-x 10 postfix postfix 4096 Sep 24 19:26 incoming
drwxr-xr-x 10 postfix celeryd 4096 Sep 24 00:00 quarantine
MailScanner Quick.Peek:
check the path for the Quick.Peek executable:
which Quick.Peekand make sure it is correct in the Baruwa's settings.py file.
/usr/sbin/Quick.Peek
Also, in settings.py check the provided path for the MalSacnner.conf file.
No comments:
Post a Comment