Re: ClamAV 0.67, SendMail, FreeBSD 5.2.1-RELEASE-p1

2004-04-25 Thread Jakub Lida
Sorry for bothering, but I assume that I have to recompile 
/usr/src/contrib/sendmail with milter support, don't I? Should I define 
MILTER in conf.h (in sendmail sources)?
Or you don't mention milter support in sendmail because it is compiled 
in by default, hey? ;)

Thanks a lot!

Jakub Lida.

--
/*
*  Jakub Lida
*  E-mail: [EMAIL PROTECTED]
*  IM: [EMAIL PROTECTED], [EMAIL PROTECTED]
*/


signature.asc
Description: OpenPGP digital signature


Re: ClamAV 0.67, SendMail, FreeBSD 5.2.1-RELEASE-p1

2004-04-25 Thread Ed Budd
On Sun, 25 Apr 2004 22:42:27 +0200
Jakub Lida [EMAIL PROTECTED] wrote:

 Sorry for bothering, but I assume that I have to recompile 
 /usr/src/contrib/sendmail with milter support, don't I? Should I
 define MILTER in conf.h (in sendmail sources)?
 Or you don't mention milter support in sendmail because it is compiled
 in by default, hey? ;)
 

Bingo! But just to be sure, type this as root:

sendmail -bt -d0.1

If you see MILTER listed in the compiled with area you're good to
go...at least as far as milter is concerned.

EB
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ClamAV 0.67, SendMail, FreeBSD 5.2.1-RELEASE-p1

2004-03-11 Thread Eduardo Viruena Silva

Hello FreeBSD Gurus!

I have installed FreeBSD 5.2.1-RELEASE and
upgraded it to  FreeBSD 5.2.1-RELEASE-p1.
I also upgraded my ports with cvsup.

I am trying to install ClamAV Milter in my system.

I think I have to do this:

1. Compile the port:
cd /usr/ports/security/clamav
make WITH_MILTER=yes install

there is a problem with this port:
it does not compile, the line 384 of
/usr/ports/security/clamav/work/clamav-0.67/clamav-milter/clamav-milter.c
has a problem, it requires to include
malloc.h which is obsolete and is reduced
to issue a error message saying stdlib.h
must be included instead.
I changed this line to include stdlib.h
and make the port again.  It installed it.
---

2.  Configure clamav.

cd /usr/local/etc
cp clamav.conf.sample clamav.conf

I had to change line describing LocalSocket to:
LocalSocket /var/run/clamav/clamd.sock

and also uncomment line:
StreamSaveToDisk

3. Modify /etc/rc.conf:
clamav_clamd_enable=YES
clamav_clamd_socket=/var/run/clamav/clamd.sock
clamav_freshclam_enable=YES
clamav_milter_enable=YES
clamav_milter_socket=/var/run/clamav/clamd.sock

4. Upgrade virus data files:

 michelle# freshclam

 ClamAV update process started at Thu Mar 11 03:26:31 2004
 Reading CVD header (main.cvd): OK
 Downloading main.cvd [*]
  main.cvd updated (version: 21, sigs: 20094, f-level: 1, builder: tkojm)
 Reading CVD header (daily.cvd): OK
 Downloading daily.cvd [*]
 daily.cvd updated (version: 176, sigs: 338, f-level: 1, builder: ddm)
 Database updated (20432 signatures) from database.clamav.net
 (193.1.219.100).



5. Start clamav:
cd /usr/local/etc/
rc.d/clamav-clamd.sh start

I checked the socked was created:

michelle# ls -la /var/log/clamav
total 38
drwxr-xr-x  2 clamav  clamav512 Mar 10 18:25 .
drwxr-xr-x  3 rootwheel4096 Mar 11 03:05 ..
-rw-r-  1 rootclamav  15231 Mar 11 03:32 clamd.log
-rw-r--r--  1 clamav  clamav  15402 Mar 11 03:03 freshclam.log

so far, so good.

rc.d/clamav-freshclam.sh start
rc.d/clamav-milter.sh start

AND IN THIS POINT I RECEIVED THIS MESSAGE:
Can't talk to clamd server via /var/run/clamav/clamd.sock
Check your entry for LocalSocket in /usr/local/etc/clamav.conf

and the system log /var/log/messages has this message:
Mar 11 03:30:39 Michelle mrspock: rc.d/clamav-milter.sh: WARNING: Stale socket
/var/run/clamav/clamd.sock removed.




-
I cannot continue.
But, if I could, I would do this:


6. Reconfigure sendmail.

According to
/usr/ports/security/clamav/work/clamav-0.67/clamav-milter/INSTALL

I have to modify my /etc/mail/freebsd.mc file.
I have to include these lines: [I'm also running spammassassin]


INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass-milter.sock, F=, 
T=C:15m;S:4m;R:4m;E:10m')
define(`confMILTER_LOG_LEVEL', 7)

INPUT_MAIL_FILTER(`clamav',`S=local:/var/run/clamav/clamd.sock, F=, T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS',`spamassassin,clamav')


Then I remake my sendmail.cf file:
make
make install

This also have a problem, it includes a lot
of blank lines in sendmail.cf [approx. in
lines 61-90], and sendmail complains about it.
I erased them.  Sendmail did not complain anymore.


7. Restart sendmail.

cd /etc/mail
make restart




bu..

Can any body help me?

Is there something else I have to do?
Please answer to my address, I am not
subscribed in the list.

Thanks in advance.

Eduardo.



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ClamAV 0.67, SendMail, FreeBSD 5.2.1-RELEASE-p1

2004-03-11 Thread Ed Budd
On Thu, 11 Mar 2004 03:52:18 -0600 (CST)
Eduardo Viruena Silva [EMAIL PROTECTED] wrote:

 
 Hello FreeBSD Gurus!
 
 I have installed FreeBSD 5.2.1-RELEASE and
 upgraded it to  FreeBSD 5.2.1-RELEASE-p1.
 I also upgraded my ports with cvsup.
 
 I am trying to install ClamAV Milter in my system.
 
 I think I have to do this:
 
 1. Compile the port:
   cd /usr/ports/security/clamav
   make WITH_MILTER=yes install
   
   there is a problem with this port:
   it does not compile, the line 384 of
   /usr/ports/security/clamav/work/clamav-0.67/clamav-milter/clama
   v-milter.c has a problem, it requires to include
   malloc.h which is obsolete and is reduced
   to issue a error message saying stdlib.h
   must be included instead.
   I changed this line to include stdlib.h
   and make the port again.  It installed it.
 ---
 


Don't know why you'd have to do this. I've got similar combo
(FBSD 5.2.1,sendmail, clamav, clamav-milter) to you and never had to do
anything like this. Maybe you cvsup'ed at a bad time or your ports tree
needs cleaning/updating??.



 2.  Configure clamav.
 
   cd /usr/local/etc
   cp clamav.conf.sample clamav.conf
 
 I had to change line describing LocalSocket to:
   LocalSocket /var/run/clamav/clamd.sock
 
 and also uncomment line:
   StreamSaveToDisk
 
 3. Modify /etc/rc.conf:
   clamav_clamd_enable=YES
   clamav_clamd_socket=/var/run/clamav/clamd.sock
   clamav_freshclam_enable=YES
   clamav_milter_enable=YES
   clamav_milter_socket=/var/run/clamav/clamd.sock



This is the same as mine except I don't include the socket path in
rc.conf. I don't think you need to unless you're putting it in a
non-default location (which yours is). Also, you've got two entries here
for the same socket file. I don't think this is correct. On
my system, clamav-milter uses/var/run/clamav/clmilter.sock and it's
created via the sendmail config - not through rc.conf. Try taking that
last line out and trying again.



 4. Upgrade virus data files:
 
  michelle# freshclam
 
  ClamAV update process started at Thu Mar 11 03:26:31 2004
  Reading CVD header (main.cvd): OK
  Downloading main.cvd [*]
   main.cvd updated (version: 21, sigs: 20094, f-level: 1, builder:
   tkojm)
  Reading CVD header (daily.cvd): OK
  Downloading daily.cvd [*]
  daily.cvd updated (version: 176, sigs: 338, f-level: 1, builder: ddm)
  Database updated (20432 signatures) from database.clamav.net
  (193.1.219.100).
 
 
 
 5. Start clamav:
   cd /usr/local/etc/
   rc.d/clamav-clamd.sh start
 
 I checked the socked was created:
 
 michelle# ls -la /var/log/clamav
 total 38
 drwxr-xr-x  2 clamav  clamav512 Mar 10 18:25 .
 drwxr-xr-x  3 rootwheel4096 Mar 11 03:05 ..
 -rw-r-  1 rootclamav  15231 Mar 11 03:32 clamd.log
 -rw-r--r--  1 clamav  clamav  15402 Mar 11 03:03 freshclam.log
 
 so far, so good.
 
   rc.d/clamav-freshclam.sh start
   rc.d/clamav-milter.sh start
 
 AND IN THIS POINT I RECEIVED THIS MESSAGE:
   Can't talk to clamd server via /var/run/clamav/clamd.sock
   Check your entry for LocalSocket in /usr/local/etc/clamav.conf
 
 and the system log /var/log/messages has this message:
 Mar 11 03:30:39 Michelle mrspock: rc.d/clamav-milter.sh: WARNING:
 Stale socket/var/run/clamav/clamd.sock removed.



See comments on rc.conf entries above...

 
 
 
 
 -
 I cannot continue.
 But, if I could, I would do this:
 
 
 6. Reconfigure sendmail.
 
 According to
 /usr/ports/security/clamav/work/clamav-0.67/clamav-milter/INSTALL
 
 I have to modify my /etc/mail/freebsd.mc file.
 I have to include these lines: [I'm also running spammassassin]
 
 
 INPUT_MAIL_FILTER(`spamassassin',
 `S=local:/var/run/spamass-milter.sock, F=, T=C:15m;S:4m;R:4m;E:10m')
 define(`confMILTER_LOG_LEVEL', 7)
 
 INPUT_MAIL_FILTER(`clamav',`S=local:/var/run/clamav/clamd.sock, F=,
 T=S:4m;R:4m')dnl
 define(`confINPUT_MAIL_FILTERS',`spamassassin,clamav')
 
 Then I remake my sendmail.cf file:
   make
   make install
 
 This also have a problem, it includes a lot
 of blank lines in sendmail.cf [approx. in
 lines 61-90], and sendmail complains about it.
 I erased them.  Sendmail did not complain anymore.



First, I would take the advice of the sendmail developers and DO NOT
manually edit anything in sendmail.cf. Use only the relevant .mc files.
Did you by chance already make some changes directly to sendmail.cf
BEFORE this problem occurred? If not, you need to look carefully at your
freebsd.mc (or whatever you're using to build sendmail.cf on your
system) and figure out what's generating the garbage sendmail is
complaining about. BTW it would help if you specified the actual
complaint sendmail is making...


 
 7. Restart sendmail.
 
   cd /etc/mail
   make restart
 
 
 
 
 bu..
 
 Can any body help me?
 
 Is there something else I have to do?
 Please answer 

Re: ClamAV 0.67, SendMail, FreeBSD 5.2.1-RELEASE-p1

2004-03-11 Thread Jonathan T. Sage


Ed Budd wrote:
On Thu, 11 Mar 2004 03:52:18 -0600 (CST)
Eduardo Viruena Silva [EMAIL PROTECTED] wrote:
1. Compile the port:
cd /usr/ports/security/clamav
make WITH_MILTER=yes install

there is a problem with this port:
it does not compile, the line 384 of
/usr/ports/security/clamav/work/clamav-0.67/clamav-milter/clama
v-milter.c has a problem, it requires to include
malloc.h which is obsolete and is reduced
to issue a error message saying stdlib.h
must be included instead.
I changed this line to include stdlib.h
and make the port again.  It installed it.
   ---
Don't know why you'd have to do this. I've got similar combo
(FBSD 5.2.1,sendmail, clamav, clamav-milter) to you and never had to do
anything like this. Maybe you cvsup'ed at a bad time or your ports tree
needs cleaning/updating??.


I can verify this as happening.  Tried 2 nights ago, however 
clamav-devel works fine. (-current)


3. Modify /etc/rc.conf:
clamav_clamd_enable=YES
clamav_clamd_socket=/var/run/clamav/clamd.sock
clamav_freshclam_enable=YES
clamav_milter_enable=YES
clamav_milter_socket=/var/run/clamav/clamd.sock


This is the same as mine except I don't include the socket path in
rc.conf. I don't think you need to unless you're putting it in a
non-default location (which yours is). Also, you've got two entries here
for the same socket file. I don't think this is correct. On
my system, clamav-milter uses/var/run/clamav/clmilter.sock and it's
created via the sendmail config - not through rc.conf. Try taking that
last line out and trying again.
bingo.  clamd and clamav-milter do NOT use the same socket. 
clamav-milter needs to make it's own which sendmail talks to, then it in 
turn talks to clamd.




INPUT_MAIL_FILTER(`spamassassin',
`S=local:/var/run/spamass-milter.sock, F=, T=C:15m;S:4m;R:4m;E:10m')
define(`confMILTER_LOG_LEVEL', 7)
INPUT_MAIL_FILTER(`clamav',`S=local:/var/run/clamav/clamd.sock, F=,
T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS',`spamassassin,clamav')
you're gonna run into trouble here mostly because you are trying to 
connect to the clamd socket when you *should* be connecting to the 
clamav-milter socket.  (two different sockets, per above)

hope this helps, let me know if ya need any more pointers.

FWIW - set both these up 2 days ago, and damn are they cool :)

~j

--
Yesterday upon the stair I saw a man
who wasn't there, he wasn't there
again today, oh how i wish he'd go away
Rev. Jonathan T. Sage
Lighting / Set Designer
Professional Web Design
[HTTP://theatre.msu.edu]
[EMAIL PROTECTED]
[See Headers for Contact Info]


pgp0.pgp
Description: PGP signature


Re: ClamAV 0.67, SendMail, FreeBSD 5.2.1-RELEASE-p1

2004-03-11 Thread Eduardo Viruena Silva
On Thu, 11 Mar 2004, Jonathan T. Sage wrote:



 Ed Budd wrote:
  On Thu, 11 Mar 2004 03:52:18 -0600 (CST)
  Eduardo Viruena Silva [EMAIL PROTECTED] wrote:
 
 1. Compile the port:
 cd /usr/ports/security/clamav
 make WITH_MILTER=yes install
 
 there is a problem with this port:
 it does not compile, the line 384 of
 /usr/ports/security/clamav/work/clamav-0.67/clamav-milter/clama
 v-milter.c has a problem, it requires to include
 malloc.h which is obsolete and is reduced
 to issue a error message saying stdlib.h
 must be included instead.
 I changed this line to include stdlib.h
 and make the port again.  It installed it.
 ---
 
  Don't know why you'd have to do this. I've got similar combo
  (FBSD 5.2.1,sendmail, clamav, clamav-milter) to you and never had to do
  anything like this. Maybe you cvsup'ed at a bad time or your ports tree
  needs cleaning/updating??.


 I can verify this as happening.  Tried 2 nights ago, however
 clamav-devel works fine. (-current)

Thanks Jonathan.
My ports are ok, Ed.



 3. Modify /etc/rc.conf:
 clamav_clamd_enable=YES
 clamav_clamd_socket=/var/run/clamav/clamd.sock
 clamav_freshclam_enable=YES
 clamav_milter_enable=YES
 clamav_milter_socket=/var/run/clamav/clamd.sock
 
 
 
 
  This is the same as mine except I don't include the socket path in
  rc.conf. I don't think you need to unless you're putting it in a
  non-default location (which yours is). Also, you've got two entries here
  for the same socket file. I don't think this is correct. On
  my system, clamav-milter uses/var/run/clamav/clmilter.sock and it's
  created via the sendmail config - not through rc.conf. Try taking that
  last line out and trying again.
 

 bingo.  clamd and clamav-milter do NOT use the same socket.
 clamav-milter needs to make it's own which sendmail talks to, then it in
 turn talks to clamd.


Thanks again, Jonathan  Ed.
That explains the problem.
It works fine, now.



 

 
 INPUT_MAIL_FILTER(`spamassassin',
 `S=local:/var/run/spamass-milter.sock, F=, T=C:15m;S:4m;R:4m;E:10m')
 define(`confMILTER_LOG_LEVEL', 7)
 
 INPUT_MAIL_FILTER(`clamav',`S=local:/var/run/clamav/clamd.sock, F=,
 T=S:4m;R:4m')dnl
 define(`confINPUT_MAIL_FILTERS',`spamassassin,clamav')
 

 you're gonna run into trouble here mostly because you are trying to
 connect to the clamd socket when you *should* be connecting to the
 clamav-milter socket.  (two different sockets, per above)


 hope this helps, let me know if ya need any more pointers.

 FWIW - set both these up 2 days ago, and damn are they cool :)


Yes, spamassassin has no mercy, Thanks to all gods!
and now clamav is filtering all the windows fauna.

Thank you guys!


 ~j


 --
 Yesterday upon the stair I saw a man
 who wasn't there, he wasn't there
 again today, oh how i wish he'd go away

 Rev. Jonathan T. Sage
 Lighting / Set Designer
 Professional Web Design

 [HTTP://theatre.msu.edu]
 [EMAIL PROTECTED]
 [See Headers for Contact Info]


- __ _
*   /   /###\   / \   __
 /\  /\ *  /  ./ \ * \__|_/  |  |
/  \/  \   |   b#|   *_ |   __   |  |  __
=.. \  \ \_\#/   / \|  /  \  |  | /\_\/
=  \_|* \___\###/   *\_/\_/\__/\__\/_/\__/
 =   \__/   _
  | |
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]