![]() |
Errors after following The Perfect SpamSnake (Ubuntu 8.04)
I followed The Perfect SpamSnake - Ubuntu 8.04 LTS
But after chapter 8 I wanted to test the Postfix and tailed the log file I get this output Jun 1 14:00:22 mussorubuntu MailScanner[7707]: Read 817 hostnames from the phishing whitelist Jun 1 14:00:22 mussorubuntu MailScanner[7707]: Read 310 hostnames from the phishing blacklist Jun 1 14:00:22 mussorubuntu MailScanner[7707]: SpamAssassin temporary working directory is /tmp Jun 1 14:00:22 mussorubuntu MailScanner[7707]: Using SpamAssassin results cache Jun 1 14:00:23 mussorubuntu MailScanner[7707]: Could not create SpamAssassin cache database /var/spool/MailScanner/incoming/SpamAssassin.cache.db Jun 1 14:00:23 mussorubuntu MailScanner[7707]: Enabling SpamAssassin auto-whitelist functionality... Jun 1 14:00:26 mussorubuntu MailScanner[7707]: /var/spool/mqueue is not owned by user 108 ! Jun 1 14:00:26 mussorubuntu MailScanner[7713]: MailScanner E-Mail Virus Scanner version 4.68.8 starting... Jun 1 14:00:26 mussorubuntu MailScanner[7713]: Could not read directory /var/spool/MailScanner/incoming Jun 1 14:00:26 mussorubuntu MailScanner[7713]: Error in configuration file line 166, directory /var/spool/MailScanner/incoming for incomingworkdir does not exist (or is not readable) Jun 1 14:00:27 mussorubuntu MailScanner[7713]: Could not read directory /var/lock/subsys/MailScanner Jun 1 14:00:27 mussorubuntu MailScanner[7713]: Error in configuration file line 2559, directory /var/lock/subsys/MailScanner for lockfiledir does not exist (or is not readable) Jun 1 14:00:27 mussorubuntu MailScanner[7713]: Could not read directory /var/spool/mqueue Jun 1 14:00:27 mussorubuntu MailScanner[7713]: Error in configuration file line 156, directory /var/spool/mqueue for outqueuedir does not exist (or is not readable) Jun 1 14:00:28 mussorubuntu MailScanner[7713]: Could not read directory /var/spool/MailScanner/quarantine Jun 1 14:00:28 mussorubuntu MailScanner[7713]: Error in configuration file line 170, directory /var/spool/MailScanner/quarantine for quarantinedir does not exist (or is not readable) Anybody have any idea what I need to do tho solve this. I followed avery step on the How-to so strange. I have updated to Ubuntu 8.04 eventhough my signature says different (need to update this too) thx Harry |
Try this
Hi hvrossum,
I'm happy to know that someone else is trying to install The SpamSnake. About your problem, what do you have as your Run As User and Group in MailScanner.conf? Rocky |
Hi Rocky,
I tried the chown commands I get two error messages chown -R postfix:www-data /var/lock/subsys/MailScanner chown: cannot access `/var/lock/subsys/MailScanner': No such file or directory (I changed the capital letters of MailScanner to small, that did work) chown -R postfix:www-data /var/run/MailScanner chown: cannot access `/var/run/MailScanner': No such file or directory (Which is correct because does not exist) When I restart I get the following error root@mussorubuntu:/home/harry# /etc/init.d/mailscanner restart * Restarting mail spam/virus scanner MailScanner Could not read directory /var/lock/subsys/MailScanner at /usr/share/MailScanner//MailScanner/Config.pm line 2488 Error in configuration file line 2559, directory /var/lock/subsys/MailScanner for lockfiledir does not exist (or is not readable) at /usr/share/MailScanner//MailScanner/Config.pm line 2812 The list of errors gets smaller :) Jun 1 17:13:40 mussorubuntu MailScanner[11167]: SpamAssassin temporary working directory is /var/spool/MailScanner/incoming/SpamAssassin-Temp Jun 1 17:13:40 mussorubuntu MailScanner[11167]: Using SpamAssassin results cache Jun 1 17:13:40 mussorubuntu MailScanner[11167]: Connected to SpamAssassin cache database Jun 1 17:13:40 mussorubuntu MailScanner[11167]: Enabling SpamAssassin auto-whitelist functionality... Jun 1 17:13:44 mussorubuntu MailScanner[11167]: /var/spool/mqueue is not owned by user 108 ! Jun 1 17:13:44 mussorubuntu MailScanner[11172]: MailScanner E-Mail Virus Scanner version 4.68.8 starting... Jun 1 17:13:44 mussorubuntu MailScanner[11172]: Could not read directory /var/lock/subsys/MailScanner Jun 1 17:13:45 mussorubuntu MailScanner[11172]: Error in configuration file line 2559, directory /var/lock/subsys/MailScanner for lockfiledir does not exist (or is not readable) Thanks so far I Have Postfix As User and Group in MailScanner.conf Harry |
Harry,
Try this: 9.17 Fix for Ubuntu 8.04 (kept removing directories upon reboot) Edit /etc/rc.local and add the following before the exit line: Code:
mkdir /var/run/MailScanner |
Hi Rocky,
I tried your steps, rebooted and this is what I get on messages in my mail.log file Jun 1 17:33:26 mussorubuntu MailScanner[7369]: SpamAssassin temporary working directory is /var/spool/MailScanner/incoming/SpamAssassin-Temp Jun 1 17:33:26 mussorubuntu MailScanner[7369]: Using SpamAssassin results cache Jun 1 17:33:26 mussorubuntu MailScanner[7369]: Connected to SpamAssassin cache database Jun 1 17:33:26 mussorubuntu MailScanner[7369]: Enabling SpamAssassin auto-whitelist functionality... Jun 1 17:33:29 mussorubuntu MailScanner[7369]: /var/spool/mqueue is not owned by user 108 ! Jun 1 17:33:30 mussorubuntu MailScanner[7390]: MailScanner E-Mail Virus Scanner version 4.68.8 starting... Jun 1 17:33:30 mussorubuntu MailScanner[7390]: Could not read directory /var/lock/subsys/MailScanner Jun 1 17:33:30 mussorubuntu MailScanner[7390]: Error in configuration file line 2559, directory /var/lock/subsys/MailScanner for lockfiledir does not exist (or is not readable) |
Harry,
Did you comment out the following in /etc/rc2.d/S20mailscanner? Code:
#check_dir /var/spool/MailScanner ${user:-mail} ${group:-mail}Rocky |
I did, but I cannot find the file in this directory anymore.
|
Have you deleted the file by accident?
The content of my /etc/rc2.d/S20mailscanner file looks like: Code:
|
I found the file expect is called S50mailscanner in /etc/rc2.d
The four lines you mentioned have ben uncommented with a #-sign |
Ok, maybe it's a bit different on the 64-bit system.. Anyway, do you still get errors in your mail.log after rebooting? If so, please post them here. By the way, which user is 108?
|
| All times are GMT +2. The time now is 09:06. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.