<br><font size=2 face="sans-serif">OK, it seems to be permissions. I did
this :</font>
<br>
<br><font size=2 face="sans-serif">Commented this 2 lines in /etc/clamd.conf
:</font>
<br><font size=2 face="sans-serif">#User clamav</font>
<br><font size=2 face="sans-serif">#AllowSupplementaryGroups yes</font>
<br>
<br><font size=2 face="sans-serif">Restarted Clamd :</font>
<br><font size=2 face="sans-serif">service clamd restart</font>
<br>
<br><font size=2 face="sans-serif">Restarted MailScanner :</font>
<br><font size=2 face="sans-serif">service MailScanner restart</font>
<br>
<br><font size=2 face="sans-serif">... and I have no more errors on received
email!</font>
<br>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">Cordialement/Regards,<br>
Olivier @ Dominux<br>
</font><a href=http://www.dominux.net/><font size=2 face="sans-serif">http://www.dominux.net</font></a>
<br>
<br><tt><font size=2>mailscanner-bounces@lists.mailscanner.info a écrit
sur 14/03/2008 18:30:33 :<br>
<br>
> [image supprimée] </font></tt>
<br><tt><font size=2>> <br>
> RE: ERROR::UNKNOWN CLAMD RETURN</font></tt>
<br><tt><font size=2>> <br>
> Rick Cooper </font></tt>
<br><tt><font size=2>> <br>
> en :</font></tt>
<br><tt><font size=2>> <br>
> 'MailScanner discussion'</font></tt>
<br><tt><font size=2>> <br>
> 14/03/2008 19:05</font></tt>
<br><tt><font size=2>> <br>
> Envoyé par :</font></tt>
<br><tt><font size=2>> <br>
> mailscanner-bounces@lists.mailscanner.info</font></tt>
<br><tt><font size=2>> <br>
> Veuillez répondre à MailScanner discussion</font></tt>
<br><tt><font size=2>> <br>
> First, to make sure it's permissions try running clamd as root <br>
> (remove the user clamav in clamd.conf). I believe it will. I <br>
> remember someone using postfix stating they had to setgid on <br>
> incomming to get clamd to work, and you can always add the clamav
<br>
> user to the postfix group and set "AllowSupplementaryGroups yes"
in <br>
> clamd.conf. I personally think the latter to be the best bet.</font></tt>
<br><tt><font size=2>> </font></tt>
<br><tt><font size=2>> Rick</font></tt>
<br><tt><font size=2>> <br>
> From: mailscanner-bounces@lists.mailscanner.info [<br>
> </font></tt><a href="mailto:mailscanner-bounces@lists.mailscanner.info"><tt><font size=2>mailto:mailscanner-bounces@lists.mailscanner.info</font></tt></a><tt><font size=2>]
On Behalf Of <br>
> Olivier FRANCHET<br>
> Sent: Friday, March 14, 2008 12:22 PM<br>
> To: MailScanner discussion<br>
> Subject: Re: ERROR::UNKNOWN CLAMD RETURN<br>
</font></tt>
<br><tt><font size=2>> <br>
> From my MailScanner.conf : <br>
> <br>
> Run As User = postfix <br>
> Run As Group = postfix <br>
> <br>
> Incoming Work Dir = /var/spool/MailScanner/incoming <br>
> <br>
> Incoming Work User = <br>
> Incoming Work Group = clamav <br>
> Incoming Work Permissions = 0640 <br>
> <br>
> <br>
> and rights from directories : <br>
> <br>
> [root@centos MailScanner]# ll <br>
> total 12 <br>
> drwxrw---- 8 postfix clamav 4096 mar 14 17:17 incoming <br>
> drwx------ 4 postfix postfix 4096 mar 13 16:23 quarantine <br>
> drwx------ 2 postfix postfix 4096 mar 11 23:46 spamassassin <br>
> [root@centos MailScanner]# ll incoming/ <br>
> total 108 <br>
> drwxrwx--- 2 postfix clamav 4096 mar 14 17:11 25035 <br>
> drwxrwx--- 2 postfix clamav 4096 mar 14 16:41 25496 <br>
> drwxrwx--- 2 postfix clamav 4096 mar 14 17:05 25657 <br>
> drwxrwx--- 2 postfix clamav 4096 mar 14 17:13 25811 <br>
> drwxrwx--- 2 postfix clamav 4096 mar 14 17:17 26252 <br>
> -rw-rw---- 1 postfix postfix 81920 mar 14 17:17 SpamAssassin.cache.db
<br>
> drwxrw---- 2 postfix postfix 4096 mar 14 17:17 SpamAssassin-Temp
<br>
> <br>
> Cordialement/Regards,<br>
> Olivier @ Dominux<br>
> </font></tt><a href=http://www.dominux.net/><tt><font size=2>http://www.dominux.net</font></tt></a><tt><font size=2>
<br>
> <br>
> mailscanner-bounces@lists.mailscanner.info a écrit sur 14/03/2008
12:58:09 :<br>
> <br>
> > [image supprimée] <br>
> > <br>
> > Re: ERROR::UNKNOWN CLAMD RETURN <br>
> > <br>
> > Glenn Steen <br>
> > <br>
> > en : <br>
> > <br>
> > MailScanner discussion <br>
> > <br>
> > 14/03/2008 13:00 <br>
> > <br>
> > Envoyé par : <br>
> > <br>
> > mailscanner-bounces@lists.mailscanner.info <br>
> > <br>
> > Veuillez répondre à MailScanner discussion <br>
> > <br>
> > On 14/03/2008, Olivier FRANCHET <O.FRANCHET@dominux.net>
wrote:<br>
> > ><br>
> > > Thank's for your help. Below my Incoming Work Dir :<br>
> > ><br>
> > > Incoming Work Dir = /var/spool/MailScanner/incoming<br>
> > ><br>
> > (snip)<br>
> > What permissions have you on that, what are your Run As<br>
> > User/Group/Permissions settings... And are you by any chance
trying to<br>
> > get PF/Clamd(/MailWatch) working? If so, extra attention must
be given<br>
> > to group memberships and permissions, since you would need the
group<br>
> > clamd is tunning as to be able to access the work directories
(and<br>
> > your apache user for the quarantine)...<br>
> > I've seen some advice somewhere for clamd that would be thoroughly<br>
> > unsuitable for Postfix... Can't really remember where though:-)<br>
> > <br>
> > Cheers<br>
> > -- <br>
> > -- Glenn<br>
> > email: glenn < dot > steen < at > gmail < dot
> com<br>
> > work: glenn < dot > steen < at > ap1 < dot >
se<br>
> > -- <br>
> > MailScanner mailing list<br>
> > mailscanner@lists.mailscanner.info<br>
> > </font></tt><a href=http://lists.mailscanner.info/mailman/listinfo/mailscanner><tt><font size=2>http://lists.mailscanner.info/mailman/listinfo/mailscanner</font></tt></a><tt><font size=2><br>
> > <br>
> > Before posting, read </font></tt><a href=http://wiki.mailscanner.info/posting><tt><font size=2>http://wiki.mailscanner.info/posting</font></tt></a><tt><font size=2><br>
> > <br>
> > Support MailScanner development - buy the book off the website!
<br>
> > <br>
> > -- <br>
> > This message has been scanned for viruses and<br>
> > dangerous content by MailScanner, and is<br>
> > believed to be clean.<br>
> > <br>
> <br>
> -- <br>
> This message has been scanned for viruses and <br>
> dangerous content by MailScanner, and is <br>
> believed to be clean. <br>
> -- <br>
> This message has been scanned for viruses and <br>
> dangerous content by MailScanner, and is <br>
> believed to be clean. </font></tt>
<br><tt><font size=2>> <br>
> -- <br>
> This message has been scanned for viruses and <br>
> dangerous content by MailScanner, and is <br>
> believed to be clean. <br>
> -- <br>
> This message has been scanned for viruses and <br>
> dangerous content by MailScanner, and is <br>
> believed to be clean. -- <br>
> MailScanner mailing list<br>
> mailscanner@lists.mailscanner.info<br>
> </font></tt><a href=http://lists.mailscanner.info/mailman/listinfo/mailscanner><tt><font size=2>http://lists.mailscanner.info/mailman/listinfo/mailscanner</font></tt></a><tt><font size=2><br>
> <br>
> Before posting, read </font></tt><a href=http://wiki.mailscanner.info/posting><tt><font size=2>http://wiki.mailscanner.info/posting</font></tt></a><tt><font size=2><br>
> <br>
> Support MailScanner development - buy the book off the website! <br>
</font></tt><br />--
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.