View Single Post
  #1  
Old 9th June 2008, 18:02
Kamian Kamian is offline
Junior Member
 
Join Date: Jun 2008
Location: Perth, Western Australia
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Default SpamSnake Issues

Hi, I haven't made my way through the whole setup yet as I am trying to ensure its working step by step. I believe I have Postfix setup correctly, at the moment it is collecting mail, but its not being relayed through, but was before I started on Mailscanner.

With MailScanner, I have gone through the entire setup for this but I am getting the following error when I try to start MailScanner.

root@mcp-spam1:/var/spool/MailScanner# /etc/init.d/mailscanner start
Could not read directory /var/spool/MailScanner/incoming at /usr/share/MailScanner//MailScanner/Config.pm line 2488
Error in configuration file line 166, 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 170, directory /var/spool/MailScanner/quarantine for quarantinedir does not exist (or is not readable) at /usr/share/MailScanner//MailScanner/Config.pm line 2812
root@mcp-spam1:/var/spool/MailScanner#

The directory listings with permissions etc are as belows;

root@mcp-spam1:/var/spool/MailScanner# ls -aFl
total 24
drwxr-x--- 6 mail mail 4096 2008-06-09 16:26 ./
drwxr-xr-x 6 root root 4096 2008-06-09 16:14 ../
drwxr-x--- 2 postfix postfix 4096 2008-04-05 10:00 archive/
drwxr-x--- 2 postfix postfix 4096 2008-04-05 10:00 incoming/
drwxr-x--- 2 postfix postfix 4096 2008-04-05 10:00 quarantine/
drwxr-x--- 2 postfix postfix 4096 2008-06-09 16:26 spamassassin/
root@mcp-spam1:/var/spool/MailScanner#

In my /etc/MailScanner/MailScanner.conf file it is set to run both user and group as postfix

In my /var/log/syslog this keeps repeating over and over.

Jun 9 22:53:58 mcp-spam1 MailScanner: Process did not exit cleanly, returned 1 with signal 0
Jun 9 22:53:58 mcp-spam1 MailScanner[6155]: MailScanner E-Mail Virus Scanner version 4.68.8 starting...
Jun 9 22:53:59 mcp-spam1 MailScanner[6155]: Could not read directory /var/spool/MailScanner/incoming
Jun 9 22:53:59 mcp-spam1 MailScanner[6155]: Error in configuration file line 166, directory /var/spool/MailScanner/incoming for incomingworkdir does not exist (or is not readable)
Jun 9 22:53:59 mcp-spam1 MailScanner[6155]: Could not read directory /var/spool/MailScanner/quarantine
Jun 9 22:53:59 mcp-spam1 MailScanner[6155]: Error in configuration file line 170, directory /var/spool/MailScanner/quarantine for quarantinedir does not exist (or is not readable)
Jun 9 22:54:00 mcp-spam1 MailScanner[6155]: Read 817 hostnames from the phishing whitelist
Jun 9 22:54:00 mcp-spam1 MailScanner[6155]: Read 5141 hostnames from the phishing blacklist
Jun 9 22:54:00 mcp-spam1 MailScanner[6155]: SpamAssassin temporary working directory is /tmp
Jun 9 22:54:01 mcp-spam1 MailScanner[6155]: Using SpamAssassin results cache
Jun 9 22:54:01 mcp-spam1 MailScanner[6155]: Could not create SpamAssassin cache database /var/spool/MailScanner/incoming/SpamAssassin.cache.db
Jun 9 22:54:01 mcp-spam1 MailScanner[6155]: Enabling SpamAssassin auto-whitelist functionality...
Jun 9 22:54:11 mcp-spam1 MailScanner[6155]: ClamAV scanner using unrar command /usr/bin/unrar
Jun 9 22:54:11 mcp-spam1 MailScanner[6155]: Incoming Work Dir does not exist
Jun 9 22:54:11 mcp-spam1 MailScanner: Process did not exit cleanly, returned 1 with signal 0

/var/log/mail.log constantly repeats the following

Jun 9 22:55:16 mcp-spam1 MailScanner[6175]: Could not create SpamAssassin cache database /var/spool/MailScanner/incoming/SpamAssassin.cache.db
Jun 9 22:55:17 mcp-spam1 MailScanner[6175]: Enabling SpamAssassin auto-whitelist functionality...
Jun 9 22:55:23 mcp-spam1 MailScanner[6175]: ClamAV scanner using unrar command /usr/bin/unrar
Jun 9 22:55:23 mcp-spam1 MailScanner[6175]: Incoming Work Dir does not exist
Jun 9 22:55:24 mcp-spam1 MailScanner[6177]: MailScanner E-Mail Virus Scanner version 4.68.8 starting...
Jun 9 22:55:24 mcp-spam1 MailScanner[6177]: Could not read directory /var/spool/MailScanner/incoming
Jun 9 22:55:24 mcp-spam1 MailScanner[6177]: Error in configuration file line 166, directory /var/spool/MailScanner/incoming for incomingworkdir does not exist (or is not readable)
Jun 9 22:55:24 mcp-spam1 MailScanner[6177]: Could not read directory /var/spool/MailScanner/quarantine
Jun 9 22:55:25 mcp-spam1 MailScanner[6177]: Error in configuration file line 170, directory /var/spool/MailScanner/quarantine for quarantinedir does not exist (or is not readable)
Jun 9 22:55:25 mcp-spam1 MailScanner[6177]: Read 817 hostnames from the phishing whitelist
Jun 9 22:55:25 mcp-spam1 MailScanner[6177]: Read 5141 hostnames from the phishing blacklist
Jun 9 22:55:25 mcp-spam1 MailScanner[6177]: SpamAssassin temporary working directory is /tmp
Jun 9 22:55:26 mcp-spam1 MailScanner[6177]: Using SpamAssassin results cache
Jun 9 22:55:26 mcp-spam1 MailScanner[6177]: Could not create SpamAssassin cache database /var/spool/MailScanner/incoming/SpamAssassin.cache.db
Jun 9 22:55:26 mcp-spam1 MailScanner[6177]: Enabling SpamAssassin auto-whitelist functionality...

I have so far done the following in trying to solve this issue;
1. Disabled app-armour as suggested at start of tutorial (well I did this but will mention it)
2. Rebooted several times.
3. Tried different users and different permissions.
4. Added the suggested additions to /etc/rc.local however the directories were not being removed beforehand anyway, but have added as well as the chown +r ...
5. Compared to a known working spam solution against their /etc/MailScanner/MailScanner.conf file and they have the same setup and config options, but a working system (Ubuntu 6.06 LTS)
6. Checked file settings via Webmin


What I am mainly confused about is; the config file is saying for MailScanner to run as postfix, and the file/group perms are set to postfix, yet it cannot see that it exists still. Mailscanner is running on my box, but it exits as you can see from the above log files.

I am unsure what to do next to troubleshoot or progress. I'm sure its something extremely small and simply that I am missing, so any suggestion will be welcome!
Reply With Quote
Sponsored Links