Assuming your clamd process is running as clamav:clamav from the clamd.conf file of course..<br><br clear="all"><br>-- <br>Martin Hepworth<br>Oxford, UK<br>
<br><br><div class="gmail_quote">On 14 December 2010 16:08, Glenn Steen <span dir="ltr"><<a href="mailto:glenn.steen@gmail.com">glenn.steen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
(Sorry for the top post... couldn't be helped:-)<br>
<br>
Right... Could you try the following:<br>
edit mailScanner.conf and set:<br>
Incoming Work User = postfix<br>
Incoming Work Group = clamav<br>
Incoming Work Permissions = 0660<br>
and of course set virus scanner to clamd... Then do<br>
chown -R postfix.clamav /var/spool/MailScanner/incoming<br>
chmod o+rx /var/spool/MailScanner<br>
then restart MailScanner and see what happens... If you want to check<br>
things manually, you need check that both postfix _and_ clamav<br>
users/groups can access the created directories fully.<br>
<br>
Cheers!<br>
--<br>
<font color="#888888">-- Glenn<br>
</font><div><div></div><div class="h5"><br>
On 14 December 2010 15:23, Ante Gulam <<a href="mailto:ante.gulam@ri-ing.hr">ante.gulam@ri-ing.hr</a>> wrote:<br>
> Hi,<br>
><br>
> Here are the outputs: (i've modified this all while trying to set clamd to<br>
> work but after fail<br>
><br>
> most things reconfigured to default so many values are default)...<br>
><br>
> ----------------------------<br>
><br>
> root@mailfilter:/etc/MailScanner# grep "Incoming Work"<br>
> etc/MailScanner/MailScanner.conf<br>
><br>
><br>
><br>
> # temporary files created by MailScanner, please see the "Incoming Work"<br>
><br>
> Incoming Work Dir = /var/spool/MailScanner/incoming<br>
><br>
> # Incoming Work Dir Settings<br>
><br>
> # and "Incoming Work Group"<br>
><br>
> #Incoming Work Group = clamav<br>
><br>
> #Incoming Work Permissions = 0640<br>
><br>
> Incoming Work User =<br>
><br>
> Incoming Work Group =<br>
><br>
> # Incoming Work Group = clamav<br>
><br>
> #Incoming Work Permissions = 0640<br>
><br>
> Incoming Work Permissions = 0600<br>
><br>
> # *Note: read the comments above the "Incoming Work Group"<br>
> setting*,<br>
><br>
> Hide Incoming Work Dir = yes<br>
><br>
> Hide Incoming Work Dir in Notices = no<br>
><br>
> ------------------------------<br>
><br>
> i.e. i've tried work user and group set to clamav.. also as postfix..<br>
> (clamav is in postfix group)..<br>
><br>
> also uncommented 0640 perms. etc. etc. as i've said clam then is not<br>
> reporting any error (lstat()) but mail stops flowing.<br>
><br>
> -------------------------------<br>
><br>
> root@mailfilter:/etc/MailScanner# ls -la /var/spool/MailScanner<br>
><br>
> total 24<br>
><br>
> drwxrwx--- 6 postfix postfix 4096 2010-12-02 20:14 .<br>
><br>
> drwxr-xr-x 12 root root 4096 2010-12-02 20:12 ..<br>
><br>
> drwxr-xr-x 2 postfix postfix 4096 2009-02-17 23:53 archive<br>
><br>
> drwxr-xr-x 23 postfix clamav 4096 2010-12-14 14:34 incoming<br>
><br>
> drwxr-xr-x 10 postfix postfix 4096 2010-12-14 10:26 quarantine<br>
><br>
> drwxr-xr-x 2 postfix postfix 4096 2010-12-01 11:50 spamassassin<br>
><br>
> also as i remember i added +rx to group and all for these, thinking i'll<br>
> make it over and get clam working... also changing groups and owners didn't<br>
> help.<br>
><br>
> ----------<br>
><br>
> ls –ld<br>
><br>
> drwxrwxrwt 7 root root 4096 2010-12-14 14:34 /tmp<br>
><br>
> ------<br>
><br>
> 777 here..<br>
><br>
> If you have some idea that might help...<br>
><br>
> I've just tested my mail with spam test mails and SA works really fine. I've<br>
> also tested clam by sending that test email with the EICAR anti-virus test<br>
> file. It passed my mailscanner and i've recieved it on exchange.. so<br>
> obviously there is no scanning done but i get msgs like<br>
><br>
> Dec 14 14:34:39 mailfilter MailScanner[4652]: Virus Scanning: Clamd found 1<br>
> infections<br>
><br>
> Dec 14 14:34:39 mailfilter MailScanner[4652]: Virus Scanning: Found 1<br>
> viruses<br>
><br>
> Dec 14 14:34:39 mailfilter MailScanner[4652]: Requeue: 5D925688F8.1D075 to<br>
> 1FBCF6CDD5<br>
><br>
> In mail.log.<br>
><br>
><br>
><br>
> Regards,<br>
><br>
> Ante<br>
><br>
</div></div><div><div></div><div class="h5">> --<br>
> MailScanner mailing list<br>
> <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
> <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
><br>
> Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
><br>
> Support MailScanner development - buy the book off the website!<br>
><br>
><br>
<br>
<br>
<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>
<a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
<br>
Support MailScanner development - buy the book off the website!<br>
</div></div></blockquote></div><br>