Permissions to use Clamd with Postfix?

Paul Hutchings paul.hutchings at mira.co.uk
Tue May 8 16:00:46 IST 2007


Ok so two answers two methods.  Who's right? :-)

Paul Hutchings
Network Administrator, MIRA Ltd.
Tel: 44 (0)24 7635 5378
Fax: 44 (0)24 7635 8378
mailto:paul.hutchings at mira.co.uk

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Daniel Maher
Sent: 08 May 2007 15:15
To: MailScanner discussion
Subject: RE: Permissions to use Clamd with Postfix?

________________________________________
From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Paul Hutchings
Sent: May 8, 2007 10:05 AM
To: MailScanner discussion
Subject: Permissions to use Clamd with Postfix?

As subject really, I'm a little confused.  I'm running MailScanner with Postfix and would like to be able to use ClamD simply as I presume it's going to be faster than Clamscan.

My "run as" user/group is Postfix.  The permissions on /var/incoming/mail are postfix.postfix. 

What do I need to do to make MailScanner work with Clamd as at the moment when I try it I simply get an "/var/spool/MailScanner/incoming/14276/.: lstat() failed. ERROR" or similar.

Clamd is likely running as user "clamav", which doesn't have read permissions for the incoming directory.
________________________________________


The solution is twofold:
1. Change your "run as" options to use to "postfix.clamav"
2. Change the ownership of incoming to postfix.clamav, and give it group read perms

I had to setgid the incoming directory in order to make sure that the runtime dirs under incoming actually had their ownership set properly, but ymmv.

Cheers!

--
  _
 °v°  Daniel Maher
/(_)\ Administrateur Système Unix
 ^ ^  Unix System Administrator
 
"How can a man choose between Fresh and Fly?  And believe me, there IS a difference." - Crack Stuntman, 2007.
-- 
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 

-- 
MIRA Ltd.

Watling Street, Nuneaton, Warwickshire, CV10 0TU, England.

Registered in England No. 402570
VAT Registration  GB 114 5409 96

The contents of this e-mail are confidential and are solely for the use of the intended recipient.
If you receive this e-mail in error, please delete it and notify us either by e-mail, telephone or fax.
You should not copy, forward or otherwise disclose the content of the e-mail as this is prohibited.




More information about the MailScanner mailing list