> > > > I am using postfix.  I continuously get this error in
> > > > /var/log/mail/warnings.
> > > >
> > > > MailScanner[27173]: ERROR: Unable to create temporary directory.
> > > >
> > > > Browsing different newsgroups I am starting to believe that ClamAV is
> > > > causing the problem but I can"t figure out why.  I can"t see any
> > > > permission problems.
> > > >
> > > >
> > > > [root mail]# ls -al /tmp
> > > > total 20
> > > > drwxrwx-wt   4 root    adm      160 May 30 16:12 ./
> > > > drwxr-x--x  24 root    adm     4096 May 29 13:44 ../
> > > > -rw-------   1 postfix postfix   50 May 30 16:12 ClamAVBusy.lock
> > > > -rw-------   1 postfix postfix   57 May 30 16:12 KasperskyBusy.lock
> > > > -rw-r--r--   1 apache  apache     4 May 29 12:44 mod_ldap_cache
> > > > -rw-------   1 postfix postfix   64 May 30 16:12 MS.bayes.rebuild.lock
> > > > 
> > > > 
> > > > [root mail]# ls -al /var/spool/MailScanner/ total 24
> > > > drwxr-xr-x   6 postfix postfix 4096 May 26 15:58 ./
> > > > drwxr-xr-x  17 root    root    4096 May 26 15:52 ../
> > > > drwxr-xr-x  12 postfix postfix 4096 May 30 15:15 incoming/
> > > > drwxr-xr-x   2 postfix postfix 4096 May 29 12:40 quarantine/
> > > > drwx------   2 postfix postfix 4096 May 26 15:53 sa/
> > > > drwxr-xr-x   2 postfix postfix 4096 May 30 16:14 spamassassin/
> > > > 
> > > > 
> > > > [root mail]# ls -al /var/spool/postfix.in/ total 88
> > > > drwxr-xr-x  22 root    root     4096 May 26 15:53 ./
> > > > drwxr-xr-x  17 root    root     4096 May 26 15:52 ../
> > > > drwx------  18 postfix root     4096 Apr 26 18:12 active/
> > > > drwx------  18 postfix root     4096 May 19 12:46 bounce/
> > > > drwx------   2 postfix root     4096 Feb 22 15:52 corrupt/
> > > > drwx------  18 postfix root     4096 May 27 22:39 defer/
> > > > drwx------  18 postfix root     4096 May 27 22:39 deferred/
> > > > drwxr-xr-x   2 root    root     4096 May 19 11:02 dev/
> > > > drwxr-xr-x   2 root    root     4096 Apr 19 16:19 etc/
> > > > drwxr-xr-x   2 root    root     4096 Feb 22 15:52 extern/
> > > > drwx------   5 postfix root     4096 May 27 16:34 flush/
> > > > drwx------   2 postfix root     4096 Feb 22 15:52 hold/
> > > > drwx------  18 postfix root     4096 May 30 16:15 incoming/
> > > > drwxr-xr-x   2 root    root     4096 Apr 19 08:36 lib/
> > > > drwx-wx---   2 postfix postdrop 4096 May 19 17:04 maildrop/
> > > > drwxr-xr-x   2 root    root     4096 May 27 15:55 pid/
> > > > drwxr-xr-x  21 root    root     4096 May 26 14:23 postfix/
> > > > drwx------   2 postfix root     4096 May 30 15:15 private/
> > > > drwx--x---   2 postfix postdrop 4096 May 30 15:15 public/
> > > > drwx------   2 postfix root     4096 May 26 15:53 saved/
> > > > drwx------   2 postfix root     4096 Feb 22 15:52 trace/
> > > > drwxr-xr-x   3 root    root     4096 Apr 19 08:36 var/
> > > > 
> > > > Any help would be appreciated.



 
> > >How about a df ?
> > >
> > >cheers,
> > >G. 




> > [root]# df /tmp
> > Filesystem            Size  Used Avail Use% Mounted on
> > none                  759M   16K  759M   1% /tmp
> > 
> > [root]# df /var/spool/postfix
> > Filesystem            Size  Used Avail Use% Mounted on
> > /dev/hda5              53G  3.1G   48G   7% /
> >
> > [root]# df /var/spool/postfix.in/
> > Filesystem            Size  Used Avail Use% Mounted on
> > /dev/hda5              53G  3.1G   48G   7% /
> > 
> > [root]# df /var/spool/MailScanner/
> > Filesystem            Size  Used Avail Use% Mounted on
> > /dev/hda5              53G  3.1G   48G   7% /
 



> Also, check out the directory used in /etc/clamav.conf:
> 
> TemporaryDirectory /tmp
>
> Here, /tmp is the temp dir used, so the user under which postfix runs 
> should have access to this directory.
> 
> What are the ownership and permissions set on the /var/spool/postfix, 
> /var/spool/MailScanner directories? It is worthwhile to check these 
> directories as well.
> 
> cheers,
> Karthikeyan, S.




The TemporaryDirectory in /etc/clamav.conf is /tmp

[root]# ls -al /var/spool/postfix    
total 84
drwxr-xr-x  21 root    root     4096 May 26 15:23 ./
drwxr-xr-x  17 root    root     4096 May 26 16:52 ../
drwx------  18 postfix root     4096 May 25 14:06 active/
drwx------  18 postfix root     4096 May 25 14:06 bounce/
drwx------   2 postfix root     4096 May 25 14:06 corrupt/
drwx------  12 postfix root     4096 Jun 21 04:20 defer/
drwx------  12 postfix root     4096 Jun 21 04:20 deferred/
drwxr-xr-x   2 root    root     4096 Jun  3 16:10 dev/
drwxr-xr-x   2 root    root     4096 May 26 15:23 etc/
drwxr-xr-x   2 root    root     4096 May 25 14:06 extern/
drwx------   4 postfix root     4096 May 27 11:08 flush/
drwx------   2 postfix root     4096 May 25 14:06 hold/
drwx------  18 postfix root     4096 Jun 21 12:53 incoming/
drwxr-xr-x   2 root    root     4096 May 26 15:23 lib/
drwx-wx---   2 postfix postdrop 4096 Jun 21 12:50 maildrop/
drwxr-xr-x   2 root    root     4096 May 27 16:01 pid/
drwx------   2 postfix root     4096 Jun 21 11:37 private/
drwx--x---   2 postfix postdrop 4096 Jun 21 11:37 public/
drwx------   2 postfix root     4096 May 26 15:23 saved/
drwx------   2 postfix root     4096 May 25 14:06 trace/
drwxr-xr-x   3 root    root     4096 May 26 15:23 var/

ls -al /var/spool/MailScanner is already listed at the top of this message.

Thanks.



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Opencomputing-openprotect mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opencomputing-openprotect

Reply via email to