Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Jan 2004 17:44:44 +0000
From:      Jon Mercer <jon.mercer@achean.com>
To:        Greg Bernard <bsd@todoo.biz>
Cc:        Free BSD Questions list <freebsd-questions@freebsd.org>
Subject:   Re: Clamd & sendmail ??
Message-ID:  <1073065484.786.11.camel@menelaus.office.achean.com>
In-Reply-To: <BC1B5A67.22C7C%bsd@todoo.biz>
References:  <BC1B5A67.22C7C%bsd@todoo.biz>

next in thread | previous in thread | raw e-mail | index | archive | help
I had this problem and traced it down to the fact that the default
location where clamav puts its socket is wrong. After editing
/usr/local/etc/clamav.conf so that LocalSocket looked like:

# Path to the local socket. The daemon doesn't change the mode of the
# created file (portability reasons). You may want to create it in a
directory
# which is only accessible for a user running daemon.
LocalSocket /var/run/clamav/clamd.sock

And the permissions on that directory are sorted (eg. clamav:clamav) it
all worked out.

Additionally, the logfile holds a wealth of info about what is going on.

Hope this helps,

Jon Mercer


On Fri, 2004-01-02 at 16:27, Greg Bernard wrote:
> Hello, 
> 
> I am trying to have sendmail used clamd in order to filter incoming mail for
> viruses on my mail server.
> 
> I have configured clamav following the instruction found here :
> http://linux-sxs.org/administration/clamav-milter.html
>
> I have modified my settings in order to have sendmail parsed these messages
> with smthg like this added in my .mc file :
> 
> 
> dnl ## milter clamav
> INPUT_MAIL_FILTER(`clmilter',`S=local:/var/clamav/clmilter.sock, F=, T=S:4m;
> R:4m')dnl
> define(`confINPUT_MAIL_FILTERS', `clmilter')
> 
> 
> When I start sendmail and tries to send a test mail containing a virus
> signature, I have a "send: Broken pipe" message...
> 
> 
> Has anyone got a working way to use clam as a filter for incoming mail with
> sendmail... ?? 
> 
> 
> Thanks. 
> 
> 
> ________________________________________________
> «?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§
> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
> Gregober ---> PGP ID --> 0x1BA3C2FD
> omni_osx_ml @at@ todoo.biz
> ________________________________________________
> «?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§
> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
> 
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
-- 
+----------------------------------------------------------------+
|         ___                  ___                               |
|        /   |                |  /                               |
|       / /| |                / /                                |
|      / / | |     _____     / /      ____      ____     ___     |
|     / /__| |    / ___ \   / /__    / __ \    / _  |   |  /__   |
|    / ____  |   / /  /_/  / ___ \  / /_/ /   / / | |   / ___ \  |
|   / /    | |  / /   __  / /   \ \ | ___/__ / /  / /  / /   \ \ |
|  / /     | |  | |__/ / / /    / / | \__/ / | |_| |  / /    / / |
| /__\    /___\ \_____/ /__|   /__| \_____/  \__/|_| /__|   /__| |
|                                                                |
|                         www.achean.com                         |
|                         ==============                         |
| Jon Mercer                               jon.mercer@achean.com |
|                                                                |
| Mobile                                            07973 256496 |
|                                                                |
| Tel.                                              0117 9561211 |
|                                                                |
| Fax                                               0117 9565637 |
+----------------------------------------------------------------+ 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1073065484.786.11.camel>