Re: [Clamav-users] clamav-milter installation question

2008-11-10 Thread Hongwei Li
 martinnitram wrote:
 if you used /etc/rc.d/init.d/clamav-milter to start the milter, at
 around
 line 20, you can see

 ...
 # Local clamav-milter config
 CLAMAV_FLAGS=
 test -f /etc/sysconfig/clamav-milter  . /etc/sysconfig/clamav-milter
 ...

 so the milter config file should be /etc/sysconfig/clamav-milter

 Actually, that config file is for your rc system which starts
 clamav-milter. It appears that you can set the CLAMAV_FLAGS environment
 variable in /etc/sysconfig/clamav-milter. That way, when your system
 starts up, clamav-milter will be called with the arguments you specify
 if you want.
 As an earlier post said, your clamav-milter config file is clamd.conf
 (IIRC).


My installation did not set/create any config file for clamav-milter, but
only for clamav and freshclam. Also, it did not set/create any startup
script or service for it. Maybe I missed something, I don't know. So, I
manually create startup script /etc/rc.d/init.d/clamav-milter for the
service clamav-milter and set the config file clamd.conf for it as:

CLAMAV_FLAGS=-f -c /usr/local/etc/clamd.conf -o
local:/var/run/clamav/clmilter.sock

Then, as long as you config everything correct, it works well.

Thanks for all the help!

Hongwei
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] clamav-milter installation question

2008-11-10 Thread Allen, Geoff
 I don't know what man page you're looking at, but the one I'm looking
 at doesn't use that expression anywhere, and indeed it does tell you
 about clamd.conf.

You are correct. I must have been looking at an outdated one.

 You do need to learn how to use man pages.  Agreed, they tend to
 brevity.
 Even terseness.

Absolutely. I've been using man pages for 20 years and appreciate their
brevity, and I was surprised not to find the information I was looking
for.

Geoff
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] clamav-milter installation question

2008-11-10 Thread aCaB
Allen, Geoff wrote:
 As a new user of ClamAV, this also confused me!
 
 It uses clamd.conf. I couldn't find this documented anywhere. The man
 page simply refers to the config file but never says what file is used
 as the default.

Indeed cofusigng, however a fix is already scheduled for 0.95
https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1194

If you have any suggestions just add them there, thanks.

-aCaB
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] clamav-milter installation question

2008-11-10 Thread martinnitram

FYI: the init script also included at source tarball as
clamav-$version/contrib/init/


Hongwei Li wrote:
 
 My installation did not set/create any config file for clamav-milter, but
 only for clamav and freshclam. Also, it did not set/create any startup
 script or service for it. Maybe I missed something, I don't know. So, I
 manually create startup script /etc/rc.d/init.d/clamav-milter for the
 service clamav-milter and set the config file clamd.conf for it as:
 
 CLAMAV_FLAGS=-f -c /usr/local/etc/clamd.conf -o
 local:/var/run/clamav/clmilter.sock
 
 Then, as long as you config everything correct, it works well.
 
 Thanks for all the help!
 
 Hongwei
 ___
 Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
 http://www.clamav.net/support/ml
 
 

-- 
View this message in context: 
http://www.nabble.com/clamav-milter-installation-question-tp20371122p20432400.html
Sent from the clamav-users mailing list archive at Nabble.com.

___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] clamav-milter installation question

2008-11-09 Thread martinnitram

if you used /etc/rc.d/init.d/clamav-milter to start the milter, at around
line 20, you can see

...
# Local clamav-milter config
CLAMAV_FLAGS=
test -f /etc/sysconfig/clamav-milter  . /etc/sysconfig/clamav-milter
...

so the milter config file should be /etc/sysconfig/clamav-milter

hope helpful.


Hongwei Li wrote:
 
 
 One question: I could not find config file for clamav-milter. I see only:
 # ls -l /usr/local/etc/
 total 20
 -rw-r--r-- 1 root root 11474 2008-11-06 14:14 clamd.conf
 -rw-r--r-- 1 root root  5137 2008-11-06 11:52 freshclam.conf
 
 Should there be a config file for clamav-milter? If yes, where is it? If
 no, how to configure it?
 
 

-- 
View this message in context: 
http://www.nabble.com/clamav-milter-installation-question-tp20371122p20413751.html
Sent from the clamav-users mailing list archive at Nabble.com.

___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] clamav-milter installation question

2008-11-09 Thread Nathan Brink
martinnitram wrote:
 if you used /etc/rc.d/init.d/clamav-milter to start the milter, at around
 line 20, you can see

 ...
 # Local clamav-milter config
 CLAMAV_FLAGS=
 test -f /etc/sysconfig/clamav-milter  . /etc/sysconfig/clamav-milter
 ...

 so the milter config file should be /etc/sysconfig/clamav-milter
   
Actually, that config file is for your rc system which starts
clamav-milter. It appears that you can set the CLAMAV_FLAGS environment
variable in /etc/sysconfig/clamav-milter. That way, when your system
starts up, clamav-milter will be called with the arguments you specify
if you want.
As an earlier post said, your clamav-milter config file is clamd.conf
(IIRC).




signature.asc
Description: OpenPGP digital signature
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Re: [Clamav-users] clamav-milter installation question

2008-11-09 Thread Dennis Peterson
martinnitram wrote:
 if you used /etc/rc.d/init.d/clamav-milter to start the milter, at around
 line 20, you can see
 
 ...
 # Local clamav-milter config
 CLAMAV_FLAGS=
 test -f /etc/sysconfig/clamav-milter  . /etc/sysconfig/clamav-milter
 ...
 
 so the milter config file should be /etc/sysconfig/clamav-milter
 
 hope helpful.

Nope - you don't source the config file. That is a parameter file for 
the rc startup process. See the httpd file in that same directory (if 
installed) - no way is that a conf file for Apache.

dp
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] clamav-milter installation question

2008-11-08 Thread G.W. Haywood
Hi there,

On Sat, 8 Nov 2008 Allen, Geoff wrote:

  Hongwei Li wrote:
  One question: I could not find config file for clamav-milter.
  [snip]
  Should there be a config file for clamav-milter? If yes, where is it?
  If no, how to configure it?

 As a new user of ClamAV, this also confused me!

 It uses clamd.conf. I couldn't find this documented anywhere. The man
 page simply refers to the config file but never says what file is used
 as the default.

I don't know what man page you're looking at, but the one I'm looking
at doesn't use that expression anywhere, and indeed it does tell you
about clamd.conf.

You do need to learn how to use man pages.  Agreed, they tend to brevity.
Even terseness.

After installing ClamAV, the man pages are also installed.  For example
to see the man pages for clamd or clamav-milter, type

man clamd

or

man clamav-milter

If you look near the bottom you'll see a 'see also' section, that's where
it generally tells you what else you might need to read.  They are man
pages too.  (All man pages follow pretty much the same format, the
standard has been fairly well developed over the past 35 years... :)

In general man pages have the information that you need, but you have to
read carefully.  Some man pages are better than others of course, but the
ClamAV pages are pretty good.  At the bottom of the clamd man page
you'll see that the first item in the 'see also' list is clamd.conf(5).
In the clamav-milter page it's (coincidentally) the 5th item in the list.
The '5' in parentheses after clamd.conf tells you what section of the manual
the man page is stored.  You can omit it under certain (most) circumstances
but you can type

man 5 clamd.conf

to make sure you have the right page.  Look at the title at the top of the
man page, you'll see the section number there, too.  Try typing

man man

for more information about man.  Learn about it.  It's a great tool.

--

73,
Ged.
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] clamav-milter installation question

2008-11-07 Thread Nigel Horne
Hongwei Li wrote:
 Hi,

 I try to install clamav-0.94.1 on my FCC9 Linux system. After
 uncompressing the package, I did the following:

 # CD /usr/local/src/clamav-0.94.1
 # ./configure
   
You need to run ./configure --enable-milter.
For further information see .../clamav-milter/INSTALL.

 Hongwei Li

   
-Nigel

-- 
Nigel Horne, [EMAIL PROTECTED]
Director of Product Management (ClamAV), Sourcefire, http://www.sourcefire.com
+44 1226 241048 or +1 706 705 4022 FAX: +44 870 705 9334

Come to Las Vegas to see the latest in Sourcefire and open source innovation.
Register at www.bossconference.com by November 30th to save $200!

___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] clamav-milter installation question

2008-11-07 Thread Hongwei Li
Thanks a lot!
After running ./configure --enable-milter, clamav-milter is installed and
I can start it and it is working.

One question: I could not find config file for clamav-milter. I see only:
# ls -l /usr/local/etc/
total 20
-rw-r--r-- 1 root root 11474 2008-11-06 14:14 clamd.conf
-rw-r--r-- 1 root root  5137 2008-11-06 11:52 freshclam.conf

Should there be a config file for clamav-milter? If yes, where is it? If
no, how to configure it?

Thanks again!

Hongwei

 ./configure --help

 Is always your friend when building packages from source :)

 -Message d'origine-
 De : [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] De la part de Hongwei Li
 Envoyé : 6 novembre 2008 16:40
 À : clamav-users@lists.clamav.net
 Objet : [Clamav-users] clamav-milter installation question

 Hi,

 I try to install clamav-0.94.1 on my FCC9 Linux system. After
 uncompressing the package, I did the following:

 # CD /usr/local/src/clamav-0.94.1
 # ./configure
 # make
 # make install

 It looks okay, no error. Then, I edit the config files:
  /USR/local/etc/calmed.conf and freshclam.conf
 comment out the line
 Example

 After that, I can run freshclam and clamd without error.  Then, I want to
 install and config clamav-milter, but could not make it working.

 In the folder /usr/local/src/clamav-0.94.1/clamav-milter
 there are 4 files:
 clamav-milter.c  INSTALL  Makefile  Makefile.am  Makefile.in

 Do I need to compile clamav-milter specifically for my system? I thought
 that it is included in the make command for clamav, but it seems not.
 The INSTALL file lists several different compile commands for different
 system. For the Fedora Linux, what command should I run to compile
 clamav-milter? Any other things should be done (I already edited
 sendmail.mc to set clamav-milter)?

 Can somebody tell me the steps to make clamav-milter working?
 I appreciate all the help!

 Hongwei Li

 ___
 Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
 http://www.clamav.net/support/ml


 ___
 Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
 http://www.clamav.net/support/ml


___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] clamav-milter installation question

2008-11-07 Thread Allen, Geoff
 One question: I could not find config file for clamav-milter. I see
 only:
 # ls -l /usr/local/etc/
 total 20
 -rw-r--r-- 1 root root 11474 2008-11-06 14:14 clamd.conf
 -rw-r--r-- 1 root root  5137 2008-11-06 11:52 freshclam.conf
 
 Should there be a config file for clamav-milter? If yes, where is it?
 If
 no, how to configure it?

As a new user of ClamAV, this also confused me!

It uses clamd.conf. I couldn't find this documented anywhere. The man
page simply refers to the config file but never says what file is used
as the default.

Geoff
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


[Clamav-users] clamav-milter installation question

2008-11-06 Thread Hongwei Li
Hi,

I try to install clamav-0.94.1 on my FCC9 Linux system. After
uncompressing the package, I did the following:

# CD /usr/local/src/clamav-0.94.1
# ./configure
# make
# make install

It looks okay, no error. Then, I edit the config files:
 /USR/local/etc/calmed.conf and freshclam.conf
comment out the line
Example

After that, I can run freshclam and clamd without error.  Then, I want to
install and config clamav-milter, but could not make it working.

In the folder /usr/local/src/clamav-0.94.1/clamav-milter
there are 4 files:
clamav-milter.c  INSTALL  Makefile  Makefile.am  Makefile.in

Do I need to compile clamav-milter specifically for my system? I thought
that it is included in the make command for clamav, but it seems not.
The INSTALL file lists several different compile commands for different
system. For the Fedora Linux, what command should I run to compile
clamav-milter? Any other things should be done (I already edited
sendmail.mc to set clamav-milter)?

Can somebody tell me the steps to make clamav-milter working?
I appreciate all the help!

Hongwei Li

___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] clamav-milter installation question

2008-11-06 Thread Philippe Ratté
./configure --help 

Is always your friend when building packages from source :)

-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Hongwei Li
Envoyé : 6 novembre 2008 16:40
À : clamav-users@lists.clamav.net
Objet : [Clamav-users] clamav-milter installation question

Hi,

I try to install clamav-0.94.1 on my FCC9 Linux system. After
uncompressing the package, I did the following:

# CD /usr/local/src/clamav-0.94.1
# ./configure
# make
# make install

It looks okay, no error. Then, I edit the config files:
 /USR/local/etc/calmed.conf and freshclam.conf
comment out the line
Example

After that, I can run freshclam and clamd without error.  Then, I want to
install and config clamav-milter, but could not make it working.

In the folder /usr/local/src/clamav-0.94.1/clamav-milter
there are 4 files:
clamav-milter.c  INSTALL  Makefile  Makefile.am  Makefile.in

Do I need to compile clamav-milter specifically for my system? I thought
that it is included in the make command for clamav, but it seems not.
The INSTALL file lists several different compile commands for different
system. For the Fedora Linux, what command should I run to compile
clamav-milter? Any other things should be done (I already edited
sendmail.mc to set clamav-milter)?

Can somebody tell me the steps to make clamav-milter working?
I appreciate all the help!

Hongwei Li

___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


[Clamav-users] Clamav-milter installation

2006-12-14 Thread Arthur Sherman
Hi Blues,

I need your help with clamav-milter configuration.

OS=CentOS-4.4, MTA=Sendmail-8.13, ClamAV=0.88.7

4 packages installed:
clamd-0.88.7-1.el4.rf
clamav-0.88.7-1.el4.rf
clamav-milter-0.88.7-1.el4.rf
clamav-db-0.88.7-1.el4.rf

It says in docs that the milter can work with libclam, which is present in
the system: /usr/lib/libclamav.so.1.0.19
It also says that clamd could be spared then.

How do I make it work this way?
Couldn't figure out in docs.

Right now there are 2 services -- clamav-milter  clamd -- on.
If I turn clamd off, I get an error from freshclam regarding it.

The whole purpose of disabling clamd is: a) save some resources, b) less
services in the system, i.e. less possible troubles. :)



Best,

--
Arthur Sherman

+972-52-4878851
CPTeam 

___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


RE: [Clamav-users] clamav-milter installation

2004-10-12 Thread Evan Pierce
Thanks Evan.

I completely missed that option when first installing. Late night and all
...

I have done just as you state, and ClamAV went in just fine. I did have some
trouble with the milter though, when I restarted Sendmail. To mine
inexperienced eyes, it looked like some kind of syntax error, something
about it expecting a '=' in one of the milter lines in the sendmail.cf.

Also, it (sendmail) didn't seem to know what a 'clmilter' or, when I
substitued that for 'clamav', was. Sorry, don't have the exact error message
to hand now. These errors were more than likely caused by something else I'd
forgotten to do, or didn't realise I needed to.

However, being very eager (read 'impatient') by now to get ClamAV actually
scanning something, I looked through the Third Party Software list for an
alternative approach, and tried ClamAssassin.

It worked like a charm. So the milter option is on the back-burner so to
speak for the time being.

By the way, version 1.2.2 of ClamAssassin is out now :

http://drivel.com/clamassassin/

Thanks again Evan for your time and information.

Regards,

Pete.


Pete

You did rebuild your sendmail.cf file from a mc file with the milter
configuration included?

Here is my sendmail.mc file
---Star sendmail.mc ---
include(`../m4/cf.m4')
VERSIONID(`default setup for Slackware Linux')dnl
OSTYPE(`linux')dnl
dnl# These settings help protect against people verifying email addresses
dnl# at your site in order to send you email that you probably don't want:
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
dnl# Uncomment the line below to send outgoing mail through an external
server:
dnl define(`SMART_HOST',`mailserver.example.com')
dnl# No timeout for ident:
define(`confTO_IDENT', `0')dnl
dnl# Enable the line below to use smrsh to restrict what sendmail can run:
dnl FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
dnl# See the README in /usr/share/sendmail/cf for a ton of information on
dnl# how these options work:
FEATURE(`use_cw_file')dnl
FEATURE(`use_ct_file')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(`access_db', `hash -TTMPF /etc/mail/access')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`local_procmail',`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`always_add_domain')dnl
FEATURE(`redirect')dnl
INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clmilter.sock,F=,
T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS', `clmilter')
dnl# Turn this feature on if you don't always have DNS, or enjoy junk mail:
dnl FEATURE(`accept_unresolvable_domains')dnl
EXPOSED_USER(`root')dnl
dnl# Also accept mail for localhost.localdomain:
LOCAL_DOMAIN(`localhost.localdomain')dnl
MAILER(local)dnl
MAILER(smtp)dnl
--- End sendmail.mc ---


Evan

___
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


RE: [Clamav-users] clamav-milter installation

2004-10-12 Thread Pete
On Tue, 12 Oct 2004, Evan Pierce wrote:
Pete
You did rebuild your sendmail.cf file from a mc file with the milter
configuration included?
Here is my sendmail.mc file
---Star sendmail.mc ---
include(`../m4/cf.m4')
VERSIONID(`default setup for Slackware Linux')dnl
OSTYPE(`linux')dnl
dnl# These settings help protect against people verifying email addresses
dnl# at your site in order to send you email that you probably don't want:
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
dnl# Uncomment the line below to send outgoing mail through an external
server:
dnl define(`SMART_HOST',`mailserver.example.com')
dnl# No timeout for ident:
define(`confTO_IDENT', `0')dnl
dnl# Enable the line below to use smrsh to restrict what sendmail can run:
dnl FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
dnl# See the README in /usr/share/sendmail/cf for a ton of information on
dnl# how these options work:
FEATURE(`use_cw_file')dnl
FEATURE(`use_ct_file')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(`access_db', `hash -TTMPF /etc/mail/access')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`local_procmail',`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`always_add_domain')dnl
FEATURE(`redirect')dnl
INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clmilter.sock,F=,
T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS', `clmilter')
dnl# Turn this feature on if you don't always have DNS, or enjoy junk mail:
dnl FEATURE(`accept_unresolvable_domains')dnl
EXPOSED_USER(`root')dnl
dnl# Also accept mail for localhost.localdomain:
LOCAL_DOMAIN(`localhost.localdomain')dnl
MAILER(local)dnl
MAILER(smtp)dnl
--- End sendmail.mc ---
Evan, yes, I did rebuild it. It got quite 'automatic' as I'd done it so many 
times. :)

I'm looking at your sendmail.mc and thinking that my milter lines might've 
looked different slightly. I'm sure there is no need for a \ if a line 
continues to another line in sendmail.mc, because it just carries on until 
it reaches 'dnl', right ?

Thanks for providing your sendmail.mc. I was going to provide my milter 
section, but I've just looked and I've deleted it, not simply commented it 
out, doh !

Anyway, I'll have a go with your milter lines, exactly as you have them, and 
record any errors, if any.

Thanks again for your time.
Regards,
Pete.
___
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


RE: [Clamav-users] clamav-milter installation

2004-10-11 Thread Evan Pierce
Pete

Build your clamav from source using

configure --enable-milter
make
make install

And then configure Sendmail correctly for your milter and it all works fine
- I have this successfully running on Slack 10 and sendmail 8.13.1


If you have any questions ust shout.
Evan

___
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


RE: [Clamav-users] clamav-milter installation

2004-10-11 Thread Pete
On Mon, 11 Oct 2004, Evan Pierce wrote:
Pete
Build your clamav from source using
configure --enable-milter
make
make install
And then configure Sendmail correctly for your milter and it all works fine
- I have this successfully running on Slack 10 and sendmail 8.13.1
If you have any questions ust shout.
Evan
Thanks Evan.
I completely missed that option when first installing. Late night and all 
...

I have done just as you state, and ClamAV went in just fine. I did have some 
trouble with the milter though, when I restarted Sendmail. To mine 
inexperienced eyes, it looked like some kind of syntax error, something 
about it expecting a '=' in one of the milter lines in the sendmail.cf.

Also, it (sendmail) didn't seem to know what a 'clmilter' or, when I 
substitued that for 'clamav', was. Sorry, don't have the exact error message 
to hand now. These errors were more than likely caused by something else I'd 
forgotten to do, or didn't realise I needed to.

However, being very eager (read 'impatient') by now to get ClamAV actually 
scanning something, I looked through the Third Party Software list for an 
alternative approach, and tried ClamAssassin.

It worked like a charm. So the milter option is on the back-burner so to 
speak for the time being.

By the way, version 1.2.2 of ClamAssassin is out now :
http://drivel.com/clamassassin/
Thanks again Evan for your time and information.
Regards,
Pete.
___
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


[Clamav-users] clamav-milter installation

2004-10-08 Thread Pete
Hello all,

I have Sendmail 8-13-1 running on Slackware 10. I've installed ClamAV
0.80rc3 via a slackware package : clamav-0.80rc3-i686-1jto.tgz

I got this package from here :

http://webpages.charter.net/jay_scott_raymond/linux/slackages/slack100.html


It went in ok, and I've edited my clamd.conf the little bit I had to.

I've since realised that I might need 'clamav-milter' to get sendmail to
'converse' with clamAV. The trouble is, the package I've installed didn't
have clamav-milter with it. At least, as far as I can see.

I have two main questions if I may :

1) Without this 'clamav-milter', the running clamd process won't touch any
email at all will it ?

2) If the above is correct, should I just remove this package and build it
normally, including any clamav-milter options that may be present ?

When I originally installed it, I simply used :

# installpkg clamav-0.80rc3-i686-1jto.tgz


I have followed links to other pages, like the following :

http://bilbos-stekkie.com/clamav/,

It looks helpful, but the packages there have an older version of Sendmail
than I have. I'd like to get my mail scanned using my version of Sendmail.

(BTW, I've checked my version of Sendmail's docs, and it *does* have milter
support built in.)

Thanks for your time and any information you might have.

Regards,

Pete.
___
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


Re: [Clamav-users] clamav-milter installation

2004-10-08 Thread Ken Jones
Pete,

In order to work with sendmail, you will seen to rebuild your sendmail.cf
file. Also, in addition to having sendmail compiled with milter support,
you will need the lib files for the sendmail milter. You can get these by
getting the 13.1 code and building / installing juse the milter from the
source.

As for the cf file, you need to add (and correct) the following line to
your sendmail.mc file.
INPUT_MAIL_FILTER(`clmilter', `S=local:/var/run/clamd/clmilter.sock, F=,
T=S:4m;R:4m')

You will need to change the location of the sock file to match your system.
I would just grab the source clamav from the nightly cvs and go from there.

Good luck

- Ken

 Hello all,

 I have Sendmail 8-13-1 running on Slackware 10. I've installed ClamAV
 0.80rc3 via a slackware package : clamav-0.80rc3-i686-1jto.tgz

 I got this package from here :

 http://webpages.charter.net/jay_scott_raymond/linux/slackages/slack100.html


 It went in ok, and I've edited my clamd.conf the little bit I had to.

 I've since realised that I might need 'clamav-milter' to get sendmail to
 'converse' with clamAV. The trouble is, the package I've installed didn't
 have clamav-milter with it. At least, as far as I can see.

 I have two main questions if I may :

 1) Without this 'clamav-milter', the running clamd process won't touch any
 email at all will it ?

 2) If the above is correct, should I just remove this package and build it
 normally, including any clamav-milter options that may be present ?

 When I originally installed it, I simply used :

 # installpkg clamav-0.80rc3-i686-1jto.tgz


 I have followed links to other pages, like the following :

 http://bilbos-stekkie.com/clamav/,

 It looks helpful, but the packages there have an older version of Sendmail
 than I have. I'd like to get my mail scanned using my version of Sendmail.

 (BTW, I've checked my version of Sendmail's docs, and it *does* have
 milter
 support built in.)

 Thanks for your time and any information you might have.

 Regards,

 Pete.
 ___
 http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users




-- 
Ken Jones
[EMAIL PROTECTED]
(630) 548-1627 (Home)
(630) 263-3574 (Cell)
https://www.kenandlori.com

Y! : [EMAIL PROTECTED]
MSN: [EMAIL PROTECTED]
AIM: ptownjones
ICQ: 9807841


___
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


Re: [Clamav-users] clamav-milter installation

2004-10-08 Thread Pete
On Fri, 8 Oct 2004 09:06:40 -0500 (CDT), you wrote:

Pete,

In order to work with sendmail, you will seen to rebuild your sendmail.cf
file. Also, in addition to having sendmail compiled with milter support,
you will need the lib files for the sendmail milter. You can get these by
getting the 13.1 code and building / installing juse the milter from the
source.

As for the cf file, you need to add (and correct) the following line to
your sendmail.mc file.
INPUT_MAIL_FILTER(`clmilter', `S=local:/var/run/clamd/clmilter.sock, F=,
T=S:4m;R:4m')

You will need to change the location of the sock file to match your system.
I would just grab the source clamav from the nightly cvs and go from there.

Good luck

- Ken

Hi Ken,

First of all, thanks for the speedy reply.

I have visited the 'libmilter' directory in my sendmail 13.1 directory, and
built/installed the libs. Hopefully. I didn't get any error messages. :/

I'd already got those 'milter-lines' in my sendmail.mc file, but just
commented out, as I'd had a go earlier, but failed.

I think things are definitely moving in the right direction, although I
could be wrong. I am confused though as to where to describe the path of the
'clmilter.sock'.

I looked in my /etc/clamd.conf file, and found the local socket was :

/tmp/clamd

There is no /var/run/clamd directory on my box. Do I have to make it
myself ?

I added the '/tmp/clamd' in to the line instead of the /var/run ... but got
this error :

451 4.0.0 /etc/mail/sendmail.cf: line 1679: Xclmilter: local socket name
/tmp/clamd unsafe: World writable directory

Hey, at least it's not the same error as before. :)

I think perhaps I'm in over my head here. :/ I'm not used to using CVS, so I
don't know what else to do.

Thanks for your input anyway. I'll keep bashing away.

Regards,

Pete.
___
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


Re: [Clamav-users] clamav-milter installation

2004-10-08 Thread Ken Jones
Pete,

First:

http://www.clamav.net/snapshot/clamav-devel-latest.tar.gz

This is where you can get the nightly CVS snapshot.
as for the error: 451 4.0.0 /etc/mail/sendmail.cf: line 1679: Xclmilter:
local socket name /tmp/clamd unsafe: World writable directory

it means the permissions on the directory /tmp/clamd allow anyone write
permissions.

Here are the permissions on my box:
/var/run: drwxr-xr-x  15 root root 4096 Oct  5 13:17 run
/var/run/clamd: drwxr-xr-x  2 clamav clamav 4096 Oct  5 08:02 clamd

Note the clamd directory is owned by the user that all my clamav products
run as and only that user has write permission in that directory.

- Ken

 On Fri, 8 Oct 2004 09:06:40 -0500 (CDT), you wrote:

Pete,

In order to work with sendmail, you will seen to rebuild your sendmail.cf
file. Also, in addition to having sendmail compiled with milter support,
you will need the lib files for the sendmail milter. You can get these by
getting the 13.1 code and building / installing juse the milter from the
source.

As for the cf file, you need to add (and correct) the following line to
your sendmail.mc file.
INPUT_MAIL_FILTER(`clmilter', `S=local:/var/run/clamd/clmilter.sock, F=,
T=S:4m;R:4m')

You will need to change the location of the sock file to match your
 system.
I would just grab the source clamav from the nightly cvs and go from
 there.

Good luck

- Ken

 Hi Ken,

 First of all, thanks for the speedy reply.

 I have visited the 'libmilter' directory in my sendmail 13.1 directory,
 and
 built/installed the libs. Hopefully. I didn't get any error messages. :/

 I'd already got those 'milter-lines' in my sendmail.mc file, but just
 commented out, as I'd had a go earlier, but failed.

 I think things are definitely moving in the right direction, although I
 could be wrong. I am confused though as to where to describe the path of
 the
 'clmilter.sock'.

 I looked in my /etc/clamd.conf file, and found the local socket was :

 /tmp/clamd

 There is no /var/run/clamd directory on my box. Do I have to make it
 myself ?

 I added the '/tmp/clamd' in to the line instead of the /var/run ... but
 got
 this error :

 451 4.0.0 /etc/mail/sendmail.cf: line 1679: Xclmilter: local socket name
 /tmp/clamd unsafe: World writable directory

 Hey, at least it's not the same error as before. :)

 I think perhaps I'm in over my head here. :/ I'm not used to using CVS, so
 I
 don't know what else to do.

 Thanks for your input anyway. I'll keep bashing away.

 Regards,

 Pete.
 ___
 http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users




-- 
Ken Jones
[EMAIL PROTECTED]
(630) 548-1627 (Home)
(630) 263-3574 (Cell)
https://www.kenandlori.com

Y! : [EMAIL PROTECTED]
MSN: [EMAIL PROTECTED]
AIM: ptownjones
ICQ: 9807841


___
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


Re: [Clamav-users] clamav-milter installation

2004-10-08 Thread Mikel Bauer
The socket that you need to connect to is the clamav-milter help prog
socket, not the main clamd socket.  /tmp/clamd is more than likely the
clamd daemon socket.  You cannot use the sendmail milter filters
without using the clamav-milter helper program.   It's possible that
you will need to get ahold of a none slackware package and install
manually.  There should be a helper programs directory that comes with
either the clamav packaged binaries, or there should be support in the
cvs to build them.

The reason for the errors that you are recieving about unsafe socket,
is that sendmail is quite picky about it's security.  I'd suggest
specifying a directory other than /tmp for the clamd sockets (when you
get the milter helper program working).

-Mikel Bauer-


On Fri, 8 Oct 2004 10:06:39 -0500 (CDT), Ken Jones [EMAIL PROTECTED] wrote:
 Pete,
 
 First:
 
 http://www.clamav.net/snapshot/clamav-devel-latest.tar.gz
 
 This is where you can get the nightly CVS snapshot.
 as for the error: 451 4.0.0 /etc/mail/sendmail.cf: line 1679: Xclmilter:
 local socket name /tmp/clamd unsafe: World writable directory
 
 it means the permissions on the directory /tmp/clamd allow anyone write
 permissions.
 
 Here are the permissions on my box:
 /var/run: drwxr-xr-x  15 root root 4096 Oct  5 13:17 run
 /var/run/clamd: drwxr-xr-x  2 clamav clamav 4096 Oct  5 08:02 clamd
 
 Note the clamd directory is owned by the user that all my clamav products
 run as and only that user has write permission in that directory.
 
 - Ken
 
 
 
  On Fri, 8 Oct 2004 09:06:40 -0500 (CDT), you wrote:
 
 Pete,
 
 In order to work with sendmail, you will seen to rebuild your sendmail.cf
 file. Also, in addition to having sendmail compiled with milter support,
 you will need the lib files for the sendmail milter. You can get these by
 getting the 13.1 code and building / installing juse the milter from the
 source.
 
 As for the cf file, you need to add (and correct) the following line to
 your sendmail.mc file.
 INPUT_MAIL_FILTER(`clmilter', `S=local:/var/run/clamd/clmilter.sock, F=,
 T=S:4m;R:4m')
 
 You will need to change the location of the sock file to match your
  system.
 I would just grab the source clamav from the nightly cvs and go from
  there.
 
 Good luck
 
 - Ken
 
  Hi Ken,
 
  First of all, thanks for the speedy reply.
 
  I have visited the 'libmilter' directory in my sendmail 13.1 directory,
  and
  built/installed the libs. Hopefully. I didn't get any error messages. :/
 
  I'd already got those 'milter-lines' in my sendmail.mc file, but just
  commented out, as I'd had a go earlier, but failed.
 
  I think things are definitely moving in the right direction, although I
  could be wrong. I am confused though as to where to describe the path of
  the
  'clmilter.sock'.
 
  I looked in my /etc/clamd.conf file, and found the local socket was :
 
  /tmp/clamd
 
  There is no /var/run/clamd directory on my box. Do I have to make it
  myself ?
 
  I added the '/tmp/clamd' in to the line instead of the /var/run ... but
  got
  this error :
 
  451 4.0.0 /etc/mail/sendmail.cf: line 1679: Xclmilter: local socket name
  /tmp/clamd unsafe: World writable directory
 
  Hey, at least it's not the same error as before. :)
 
  I think perhaps I'm in over my head here. :/ I'm not used to using CVS, so
  I
  don't know what else to do.
 
  Thanks for your input anyway. I'll keep bashing away.
 
  Regards,
 
  Pete.
  ___
  http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
 
 
 
 
 --
 Ken Jones
 [EMAIL PROTECTED]
 (630) 548-1627 (Home)
 (630) 263-3574 (Cell)
 https://www.kenandlori.com
 
 Y! : [EMAIL PROTECTED]
 MSN: [EMAIL PROTECTED]
 AIM: ptownjones
 ICQ: 9807841
 
 
 
 
 ___
 http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users

___
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users