Hi all,
i just installed MailScanner-4.60.8-1.rpm.tar.gz on centos 5 with sendmail 8.13.8.
Whenever I send emails, I get bellow error.
Jun 21 15:33:01 mail MailScanner[3657]: New Batch: Scanning 1 messages, 767 bytes Jun 21 15:33:02 mail MailScanner[3657]: Virus and Content Scanning: Starting Jun 21 15:33:02 mail MailScanner[3657]: ERROR: Unable to create temporary directory Jun 21 15:33:02 mail MailScanner[3657]: Uninfected: Delivered 1 messages Jun 21 15:33:03 mail sendmail[3694]: l5LA2wY5003682: to=test@mail.csbsl.com, ctladdr=root@mail.csbsl.com (0/0), delay=00:00:05, xdelay=00:00:00, mailer=local, pri=120305, dsn=2.0.0, stat=Sent
WHY IS THAT?
Then, I disabled Selinux as follows.
setenfoce 0
Then, Checked again and no such error was given. Worked properly.
I do not want to leave Selinux disable. So could you pls help me to solve thsi issue ?
On Thu, 2007-06-21 at 15:34 +0530, Indunil Jayasooriya wrote:
Hi all,
i just installed MailScanner-4.60.8-1.rpm.tar.gz on centos 5 with sendmail 8.13.8.
Whenever I send emails, I get bellow error.
Jun 21 15:33:01 mail MailScanner[3657]: New Batch: Scanning 1 messages, 767 bytes Jun 21 15:33:02 mail MailScanner[3657]: Virus and Content Scanning: Starting Jun 21 15:33:02 mail MailScanner[3657]: ERROR: Unable to create temporary directory Jun 21 15:33:02 mail MailScanner[3657]: Uninfected: Delivered 1 messages Jun 21 15:33:03 mail sendmail[3694]: l5LA2wY5003682: to=test@mail.csbsl.com, ctladdr=root@mail.csbsl.com (0/0), delay=00:00:05, xdelay=00:00:00, mailer=local, pri=120305, dsn= 2.0.0, stat=Sent
WHY IS THAT?
Then, I disabled Selinux as follows.
setenfoce 0
Then, Checked again and no such error was given. Worked properly.
I do not want to leave Selinux disable. So could you pls help me to solve thsi issue ?
---- sounds like a permissions error on /var/spool/MailScanner or /var/spool/MailScanner/incoming
I use postfix and the user must be able to write to those directories (in your case, whatever user sendmail runs as...something like smmsp)...
# ls -l /var/spool/MailScanner/ total 8 drwx------ 7 postfix root 4096 Jun 21 09:18 incoming drwx------ 4 postfix postfix 4096 Jun 14 10:23 quarantine
Your questions might be better directed to MailScanner list