PDA

View Full Version : SpamSnake's MailScanner


cjc81
31st January 2009, 13:24
I'm getting this error showing up in the log file.

MailScanner[16143]: /var/spool/MailScanner/incoming/16143/./ECD0128618F00.B8381/msg-16143-2.html: Unable to create temporary directory

The following is output of ls -al /var/spool/MailScanner

root@notgamble:/var/spool/MailScanner# ls -al
total 8
drwxr-x--- 6 postfix www-data 71 Jan 28 15:24 .
drwxrwxrwx 6 root root 71 Jan 28 15:23 ..
drwxr-x--- 2 postfix www-data 6 May 1 2007 archive
drwxrwxrwx 15 postfix www-data 4096 Jan 31 19:20 incoming
drwxr-x--- 2 postfix www-data 6 May 1 2007 quarantine
drwxr-xr-x 2 postfix www-data 6 Jan 28 15:24 spamassassin


Any idea?

falko
1st February 2009, 14:26
What are the outputs of ls -la /var/spool/MailScanner/incoming/ and df -h?

cjc81
2nd February 2009, 08:35
Here it is.

root@notgamble:/var/spool# ls -la /var/spool/MailScanner/incoming/
total 72
drwxrwxrwx 20 postfix www-data 4096 Feb 2 14:32 .
drwxrwxrwx 6 postfix www-data 71 Jan 28 15:24 ..
drwxrwxrwx 2 postfix www-data 6 Jan 31 19:20 1063
drwxrwxrwx 2 postfix www-data 6 Jan 31 18:33 14305
drwxrwxrwx 2 postfix www-data 6 Jan 31 18:35 14821
drwxrwxrwx 2 postfix www-data 6 Jan 31 18:36 14866
drwxrwxrwx 2 postfix www-data 6 Jan 31 18:36 14902
drwxrwxrwx 2 postfix www-data 6 Jan 31 18:37 14949
drwxrwxrwx 2 postfix www-data 6 Jan 31 18:46 15021
drwx------ 2 postfix www-data 6 Feb 2 11:46 1507
drwxrwxrwx 2 postfix www-data 6 Jan 31 18:48 15566
drwxrwxrwx 2 postfix www-data 6 Jan 31 18:49 15711
drwxrwxrwx 2 postfix www-data 6 Jan 31 18:51 15800
drwxrwxrwx 2 postfix www-data 6 Jan 31 18:51 15873
drwxrwxrwx 3 postfix www-data 65 Jan 31 18:59 15925
drwxrwxrwx 2 postfix www-data 6 Jan 31 19:06 16143
drwx------ 2 postfix www-data 6 Feb 2 11:47 1668
drwx------ 3 postfix www-data 65 Feb 2 14:32 1762
drwxrwxrwx 2 postfix www-data 6 Jan 31 19:35 2260
drwx------ 4 postfix www-data 124 Feb 2 11:39 28416
-rwxrwxrwx 1 postfix www-data 64512 Feb 2 14:32 SpamAssassin.cache.db


root@notgamble:/var/spool# df -h
Filesystem Size Used Avail Use% Mounted on
simfs 7.7G 4.1G 3.7G 53% /
tmpfs 3.5G 48K 3.5G 1% /var/run
tmpfs 3.5G 4.0K 3.5G 1% /var/lock
tmpfs 3.5G 0 3.5G 0% /dev/shm
tmpfs 3.5G 48K 3.5G 1% /var/run
tmpfs 3.5G 4.0K 3.5G 1% /var/lock


Seems like mailscanner is creating the directories without giving itself enough permissions to read it.

falko
3rd February 2009, 20:20
What's the output of ls -la /var/spool/MailScanner/incoming/16143/./ECD0128618F00.B8381/?

cjc81
3rd February 2009, 21:47
Here it is.


jason@notgamble:/var/spool/MailScanner/incoming$ sudo ls -la 19349
total 8
drwx------ 2 postfix www-data 6 Feb 4 03:29 .
drwxrwxrwx 21 postfix www-data 4096 Feb 4 03:29 ..
jason@notgamble:/var/spool/MailScanner/incoming$

Rocky
4th February 2009, 18:10
This is what I have on those folders:


drwxr-x--- 6 postfix www-data 4096 2008-04-25 11:41 .
drwxr-xr-x 8 root root 4096 2008-10-08 13:38 ..
drwxr-x--- 2 postfix www-data 4096 2008-04-04 22:00 archive
drwxr-x--- 38 postfix clamav 4096 2009-02-04 10:52 incoming
drwxr-x--- 10 postfix www-data 4096 2009-02-04 00:01 quarantine
drwxr-x--- 2 postfix www-data 4096 2008-04-25 11:41 spamassassin

Have you finished the complete setup? If not, what step are you on?

Rocky

cjc81
5th February 2009, 07:36
This is what I have on those folders:


drwxr-x--- 6 postfix www-data 4096 2008-04-25 11:41 .
drwxr-xr-x 8 root root 4096 2008-10-08 13:38 ..
drwxr-x--- 2 postfix www-data 4096 2008-04-04 22:00 archive
drwxr-x--- 38 postfix clamav 4096 2009-02-04 10:52 incoming
drwxr-x--- 10 postfix www-data 4096 2009-02-04 00:01 quarantine
drwxr-x--- 2 postfix www-data 4096 2008-04-25 11:41 spamassassin

Have you finished the complete setup? If not, what step are you on?

Rocky
Yes, i've completed the setup.