View Single Post
  #4  
Old 11th June 2008, 10:16
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 More issues..

Jun 11 14:58:05 mcp-spam1 MailScanner: Cannot write pid file /var/run/MailScanner/MailScanner.pid, No such file or directory
Jun 11 14:58:05 mcp-spam1 MailScanner: MailScanner setting GID to postfix (117)
Jun 11 14:58:05 mcp-spam1 MailScanner: MailScanner setting UID to postfix (109)
Jun 11 14:58:06 mcp-spam1 MailScanner: Cannot write pid file /var/run/MailScanner/MailScanner.pid, No such file or directory
Jun 11 14:58:07 mcp-spam1 MailScanner[4862]: MailScanner E-Mail Virus Scanner version 4.68.8 starting...
Jun 11 14:58:07 mcp-spam1 postfix/master[4933]: daemon started -- version 2.5.1, configuration /etc/postfix
Jun 11 14:58:07 mcp-spam1 MailScanner[4862]: Could not read directory /var/lock/subsys/MailScanner
Jun 11 14:58:07 mcp-spam1 /usr/sbin/cron[4994]: (CRON) INFO (pidfile fd = 3)
Jun 11 14:58:07 mcp-spam1 /usr/sbin/cron[4995]: (CRON) STARTUP (fork ok)
Jun 11 14:58:07 mcp-spam1 MailScanner[4862]: Error in configuration file line 2559, directory /var/lock/subsys/MailScanner for lockfiledir does not exist (or is not readable)
Jun 11 14:58:07 mcp-spam1 /usr/sbin/cron[4995]: (CRON) INFO (Running @reboot jobs)
Jun 11 14:58:07 mcp-spam1 MailScanner[4862]: Syntax error in line 1777, value "" for spamblacklist is not one of allowed values "yes","no"
Jun 11 14:58:08 mcp-spam1 MailScanner[4862]: Syntax error in line 1770, value "" for spamwhitelist is not one of allowed values "yes","no"

Jun 11 14:58:08 mcp-spam1 MailScanner[4862]: Read 817 hostnames from the phishing whitelist
Jun 11 14:58:08 mcp-spam1 MailScanner[4862]: Read 5141 hostnames from the phishing blacklist
Jun 11 14:58:09 mcp-spam1 MailScanner[4862]: Config: calling custom init function MailWatchLogging
Jun 11 14:58:09 mcp-spam1 postfix/master[4933]: terminating on signal 15
Jun 11 14:58:09 mcp-spam1 MailScanner[4862]: Started SQL Logging child
Jun 11 14:58:09 mcp-spam1 postfix/master[5122]: daemon started -- version 2.5.1, configuration /etc/postfix
Jun 11 14:58:13 mcp-spam1 MailScanner: MailScanner setting GID to postfix (117)
Jun 11 14:58:13 mcp-spam1 MailScanner: MailScanner setting UID to postfix (109)
Jun 11 14:58:14 mcp-spam1 MailScanner[5153]: MailScanner E-Mail Virus Scanner version 4.68.8 starting...
Jun 11 14:58:15 mcp-spam1 MailScanner[5153]: Syntax error in line 1777, value "" for spamblacklist is not one of allowed values "yes","no"
Jun 11 14:58:15 mcp-spam1 MailScanner[5153]: Syntax error in line 1770, value "" for spamwhitelist is not one of allowed values "yes","no"

Jun 11 14:58:15 mcp-spam1 MailScanner[5153]: Read 817 hostnames from the phishing whitelist
Jun 11 14:58:16 mcp-spam1 MailScanner[5153]: Read 5141 hostnames from the phishing blacklist
Jun 11 14:58:16 mcp-spam1 MailScanner[5153]: Config: calling custom init function MailWatchLogging
Jun 11 14:58:16 mcp-spam1 MailScanner[5153]: Started SQL Logging child
Jun 11 14:58:16 mcp-spam1 MailScanner[5153]: SpamAssassin temporary working directory is /var/spool/MailScanner/incoming/SpamAssassin-Temp
Jun 11 14:58:17 mcp-spam1 MailScanner[5153]: Using SpamAssassin results cache
Jun 11 14:58:18 mcp-spam1 MailScanner[5153]: Connected to SpamAssassin cache database
Jun 11 14:58:18 mcp-spam1 MailScanner[5153]: Enabling SpamAssassin auto-whitelist functionality...
Jun 11 14:58:25 mcp-spam1 MailScanner[5153]: ClamAV scanner using unrar command /usr/bin/unrar
Jun 11 14:58:25 mcp-spam1 MailScanner[5153]: Using locktype = flock

It seems to be mostly working other than these couple issues.

/var/run/MailScanner appears to have the correct perms as set in the tutorial.

root@mcp-spam1:/var/run# ll
total 44
drwxr-xr-x 14 root root 520 2008-06-11 14:58 ./
drwxr-xr-x 15 root root 4096 2008-06-09 12:32 ../
srw-rw-rw- 1 root root 0 2008-06-11 14:57 acpid.socket=
drwxr-xr-x 2 root root 40 2008-06-11 14:58 apache2/
-rw-r--r-- 1 root root 5 2008-06-11 14:58 apache2.pid
-rw-r--r-- 1 root root 5 2008-06-11 14:58 atd.pid
drwxr-xr-x 3 root root 60 2008-06-11 14:57 bind/
drwxr-xr-x 2 clamav clamav 100 2008-06-11 14:58 clamav/
-rw-r--r-- 1 root root 5 2008-06-11 14:58 crond.pid
---------- 1 root root 0 2008-06-11 14:58 crond.reboot
drwxr-xr-x 2 dcc dcc 40 2008-06-11 14:58 dcc/
-rw-r--r-- 1 root root 5 2008-06-11 14:57 dhclient.eth0.pid
drwxr-xr-x 2 klog klog 100 2008-06-11 14:57 klogd/
drwxr-xr-x 2 postfix www-data 60 2008-06-11 14:58 MailScanner/
-rw-r--r-- 1 root root 421 2008-06-11 14:57 motd
drwxr-xr-x 2 mysql root 80 2008-06-11 14:57 mysqld/
drwxr-xr-x 2 root root 60 2008-06-11 14:57 network/
-rw-r--r-- 1 root root 4 2008-06-11 14:57 ntpd.pid
drwxrwxr-x 2 root utmp 40 2008-06-11 14:57 screen/
-rw-r--r-- 1 root root 2 2008-06-11 14:57 sendsigs.omit
drwxr-xr-x 2 root root 40 2008-06-11 14:57 sendsigs.omit.d/
drwxr-xr-x 2 root root 40 2008-06-11 14:57 sshd/
-rw-r--r-- 1 root root 5 2008-06-11 14:57 sshd.pid
drwx------ 3 root george 60 2008-06-11 14:58 sudo/
-rw-r--r-- 1 root root 5 2008-06-11 14:57 syslogd.pid
-rw-rw-r-- 1 root utmp 3456 2008-06-11 14:58 utmp
root@mcp-spam1:/var/run#

MailScanner.pid is owned by postfix : postfix so would it be safe to assume that it can write to it? Could it be the file perm 0600?

root@mcp-spam1:/var/run/MailScanner# ll
total 4
drwxr-xr-x 2 postfix www-data 60 2008-06-11 14:58 ./
drwxr-xr-x 14 root root 520 2008-06-11 14:58 ../
-rw------- 1 postfix postfix 5 2008-06-11 14:58 MailScanner.pid
root@mcp-spam1:/var/run/MailScanner#

Any hints on finding the issue for the spamlists?
Reply With Quote