<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=234392515-20032008><FONT face=Arial
color=#0000ff size=2>First of all sorry for disappearing last week but I got
called away Fri afternoon and had surgery Monday so this is the first I felt up
to trying to type. My personal opinion is that adding the clamav user and
setting the supplementary groups option would have worked. When you setgid on
tha directory it will create and access files with permissions inherited by the
directory group (pretty much same as setuid) so that is why it works now. I
recalled someone stating that is how they got around the issue but the
supplementary groups option would have probably been the one I would have chose.
</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
mailscanner-bounces@lists.mailscanner.info
[mailto:mailscanner-bounces@lists.mailscanner.info] <B>On Behalf Of
</B>Olivier FRANCHET<BR><B>Sent:</B> Saturday, March 15, 2008 1:15
PM<BR><B>To:</B> MailScanner discussion<BR><B>Subject:</B> Re: ERROR::UNKNOWN
CLAMD RETURN<BR></FONT><BR></DIV>
<DIV></DIV><BR><FONT face=sans-serif size=2>OK, I don't know why but I changer
permissions for incoming folder to 640 + setgid and all work fine now! Clamd
is running under clamav user.</FONT> <BR><BR><FONT face=sans-serif size=2>I
don't remember what the permissions on this folder when I installed my email
gateway.</FONT> <BR><BR><FONT face=sans-serif size=2>Thanks all.</FONT>
<BR><BR><FONT face=sans-serif size=2>Cordialement/Regards,<BR>Olivier @
Dominux<BR></FONT><A href="http://www.dominux.net/"><FONT face=sans-serif
size=2>http://www.dominux.net</FONT></A> <BR><BR><TT><FONT
size=2>mailscanner-bounces@lists.mailscanner.info a écrit sur 15/03/2008
17:34:58 :<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>> Glenn Steen </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>> 15/03/2008
17:53</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>> On 15/03/2008, Olivier FRANCHET
<O.FRANCHET@dominux.net> wrote:<BR>> ><BR>> > So, now I did
this :<BR>> ><BR>> > Uncommented this 2 lines in /etc/clamd.conf
;-) :<BR>> ><BR>> > User clamav<BR>> >
AllowSupplementaryGroups yes<BR>> ><BR>> ><BR>> > Set
the setgid for /var/spool/MailScanner/incoming (2660) :<BR>> ><BR>>
> [root@centos MailScanner]# ll<BR>> > total 12<BR>> >
drwxrwS--- 8 postfix clamav 4096 mar 15 16:07 incoming<BR>> >
drwx------ 5 postfix postfix 4096 mar 14 19:13 quarantine<BR>> >
drwx------ 2 postfix postfix 4096 mar 11 23:46 spamassassin<BR>>
><BR>> ><BR>> > Config for incoming in MailScanner.conf
:<BR>> ><BR>> > Incoming Work User =<BR>> > Incoming Work
Group = clamav<BR>> > Incoming Work Permissions = 0640<BR>>
><BR>> ><BR>> > Again the same error! Only work when clamd is
under root !?!<BR>> ><BR>> Did you do as Rick suggested and add in
the clamav user to the postfix group?<BR>> <BR>> For the rest... Do as
Peter suggest and check (by use of su) that both<BR>> postfix and clamav
can access the work directories.<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></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. <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. </BLOCKQUOTE></BODY><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.
</HTML>