Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: users

clamav-milter

 

 

ClamAV users RSS feed   Index | Next | Previous | View Threaded


jerryfer at mail

Apr 17, 2008, 9:03 AM

Post #1 of 7 (889 views)
Permalink
clamav-milter

I have a Clamav-milter problem. Can anyone help?

Problem: clamav-milter loads and immediately terminates

Hardware: Computer processor is AMD, sata raid 1

software: NetBSD 4.0 (I386 platform)
NetBSD mail 4.0 NetBSD 4.0 (GENERIC) #0: Sun Dec 16 00:20:10 PST 2007
builds [at] wb3:/home/builds/ab/netbsd-4-0-RELEASE/i386/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386

Clamd and freshclam are both working
clamscan and clamdscan both work

Only the milter is failing

compile parameters:

CPPFLAGS=-I/usr/pkg/include
LDFLAGS=-L/usr/pkg/lib
CFLAGS="-liconv"
export CPPFLAGS LDFLAGS
./configure --prefix=/usr/pkg --enable-milter --disable-pthreads CC=/usr/bin/gcc
make
make install

compiles without errors
I have also tried this without the "--disable-pthreads" with the same result.

# gcc -v
Using built-in specs.
Target: i386--netbsdelf
Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc4/configure --enable-long-long --disable-multilib --enable-threads --disable-symvers --build=i386-unknown-netbsdelf4.99.3 --host=i386--netbsdelf --target=i386--netbsdelf
Thread model: posix
gcc version 4.1.2 20061021 prerelease (NetBSD nb3 20061125)


tail of clamd.log
Thu Apr 17 10:40:23 2008 -> ELF support enabled.
Thu Apr 17 10:40:23 2008 -> Mail files support enabled.
Thu Apr 17 10:40:23 2008 -> OLE2 support enabled.
Thu Apr 17 10:40:23 2008 -> PDF support disabled.
Thu Apr 17 10:40:23 2008 -> HTML support enabled.
Thu Apr 17 10:40:23 2008 -> Self checking every 1800 seconds.
Thu Apr 17 10:40:23 2008 -> Set stacksize to 2162688
Thu Apr 17 10:40:50 2008 -> ClamAV-milter started at Thu Apr 17 10:40:50 2008
Thu Apr 17 10:40:50 2008 -> Starting ClamAV version 0.93, clamav-milter version 0.93
_res is not supported for multi-threaded programs.

regards,

Jerry Ferguson
systems administrator
B&B Appliance Co
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


jerryfer at mail

Apr 17, 2008, 8:51 AM

Post #2 of 7 (827 views)
Permalink
clamav-milter [In reply to]

I have a Clamav-milter problem. Can anyone help?

Problem: clamav-milter loads and immediately terminates

Hardware: Computer processor is AMD, sata raid 1

software: NetBSD 4.0 (I386 platform)
NetBSD mail 4.0 NetBSD 4.0 (GENERIC) #0: Sun Dec 16 00:20:10 PST 2007
builds [at] wb3:/home/builds/ab/netbsd-4-0-RELEASE/i386/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386

Clamd and freshclam are both working
clamscan and clamdscan both work

Only the milter is failing

compile parameters:

CPPFLAGS=-I/usr/pkg/include
LDFLAGS=-L/usr/pkg/lib
CFLAGS="-liconv"
export CPPFLAGS LDFLAGS
./configure --prefix=/usr/pkg --enable-milter --disable-pthreads CC=/usr/bin/gcc
make
make install

compiles without errors
I have also tried this without the "--disable-pthreads" with the same result.

# gcc -v
Using built-in specs.
Target: i386--netbsdelf
Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc4/configure --enable-long-long --disable-multilib --enable-threads --disable-symvers --build=i386-unknown-netbsdelf4.99.3 --host=i386--netbsdelf --target=i386--netbsdelf
Thread model: posix
gcc version 4.1.2 20061021 prerelease (NetBSD nb3 20061125)


tail of clamd.log
Thu Apr 17 10:40:23 2008 -> ELF support enabled.
Thu Apr 17 10:40:23 2008 -> Mail files support enabled.
Thu Apr 17 10:40:23 2008 -> OLE2 support enabled.
Thu Apr 17 10:40:23 2008 -> PDF support disabled.
Thu Apr 17 10:40:23 2008 -> HTML support enabled.
Thu Apr 17 10:40:23 2008 -> Self checking every 1800 seconds.
Thu Apr 17 10:40:23 2008 -> Set stacksize to 2162688
Thu Apr 17 10:40:50 2008 -> ClamAV-milter started at Thu Apr 17 10:40:50 2008
Thu Apr 17 10:40:50 2008 -> Starting ClamAV version 0.93, clamav-milter version 0.93
_res is not supported for multi-threaded programs.

regards,

Jerry Ferguson
systems administrator
B&B Appliance Co
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


tlyons at ivenue

Apr 17, 2008, 9:18 AM

Post #3 of 7 (846 views)
Permalink
Re: clamav-milter [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Apr 17, 2008 at 12:03:42PM -0400, Jerry Ferguson wrote:

>Problem: clamav-milter loads and immediately terminates

You gave lots of good build information, but didn't say how you were
calling the milter itself. To give you something to compare to, here's
how I call it on mine:

# ps aux | grep clamav-milter | grep -v grep

clamav 686 0.0 0.2 49760 1112 ? Ssl Apr13 0:27 clamav-milter --config-file=/etc/clamd.conf --max-children=20 --force-scan --quiet --external -ol local:/var/lib/clamav/clamav-milter.socket

One really important thing is that the directory where it should write
the socket must be writable by the user you're telling it to run as. If
I had to lay money down, I would say that's what is wrong in your case.
- --
Regards... Todd
We should not be building surveillance technology into standards.
Law enforcement was not supposed to be easy. Where it is easy,
it's called a police state. -- Jeff Schiller on NANOG
Linux kernel 2.6.22-14-generic 5 users, load average: 0.29, 0.14, 0.11
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIB3hiY2VBGxIDMLwRAgXeAJsHRaXob09z6JWXwxi107wImckpKwCfVHoI
TZi4q/ZMyWZ1jr0tCLDTfUg=
=8Pxv
-----END PGP SIGNATURE-----
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


jerryfer at mail

Apr 17, 2008, 12:07 PM

Post #4 of 7 (843 views)
Permalink
clamav-milter [In reply to]

>>Problem: clamav-milter loads and immediately terminates

>You gave lots of good build information, but didn't say how you were
>calling the milter itself. To give you something to compare to, here's
>how I call it on mine:

># ps aux | grep clamav-milter | grep -v grep

>clamav 686 0.0 0.2 49760 1112 ? Ssl Apr13 0:27 clamav-milter --config-file=/etc/clamd.conf --max-children=20 --force-scan --quiet --external -ol local:/var/lib/clamav/clamav-milter.socket

>One really important thing is that the directory where it should write
>the socket must be writable by the user you're telling it to run as. If
>I had to lay money down, I would say that's what is wrong in your case.


my startup command is:
mail# /usr/pkg/sbin/clamav-milter --external --max-children=10 \
--pidfile=/var/run/clamav/clamav-milter.pid \
--quarantine-dir=/var/run/clamav/quarantine local:/var/lib/clamav/clamav.sock

mail# ps -ax | grep clam
636 ? IWs 0:00.01 /usr/pkg/bin/freshclam -d -c2
671 ? IWsa 0:03.88 /usr/pkg/sbin/spamass-milter -u clamav -p /var/run/spamass.sock -f
19645 ? Ssa 0:04.46 /usr/pkg/sbin/clamd

the clamav.sock file is created but the clamav-milter has terminated.

I am calling it from sendmail - also calling spamass-milter which is working

from clamd.log:
Thu Apr 17 14:44:03 2008 -> Starting ClamAV version 0.93, clamav-milter version 0.93
_res is not supported for multi-threaded programs.

What does the "_res is not supported" mean?

>Regards... Todd

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


sm at resistor

Apr 17, 2008, 12:23 PM

Post #5 of 7 (850 views)
Permalink
Re: clamav-milter [In reply to]

At 09:03 17-04-2008, Jerry Ferguson wrote:
>I have a Clamav-milter problem. Can anyone help?
>
>Problem: clamav-milter loads and immediately terminates
>
>Hardware: Computer processor is AMD, sata raid 1
>
>software: NetBSD 4.0 (I386 platform)

[snip]

>_res is not supported for multi-threaded programs.

That's why the process exits. Multi-thread programs such as milters
should not access _res like that if you have BIND9 libs.

Are you using the version in pkgsrc? it contains the required patch.

Regards,
-sm

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


jerryfer at mail

Apr 17, 2008, 12:41 PM

Post #6 of 7 (846 views)
Permalink
clamav-milter [In reply to]

At 09:03 17-04-2008, Jerry Ferguson wrote:
>>I have a Clamav-milter problem. Can anyone help?
>>
>>Problem: clamav-milter loads and immediately terminates
>>
>>Hardware: Computer processor is AMD, sata raid 1
>>
>>software: NetBSD 4.0 (I386 platform)

[snip]

>>_res is not supported for multi-threaded programs.

>That's why the process exits. Multi-thread programs such as milters
>should not access _res like that if you have BIND9 libs.

>Are you using the version in pkgsrc? it contains the required patch.

no, I downloaded and compiled from source which I have done since v 0.85
pkgsrc is version 92.1 which I will use for now.

Thank you!

>Regards,
>-sm

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


sm at resistor

Apr 17, 2008, 12:59 PM

Post #7 of 7 (848 views)
Permalink
Re: clamav-milter [In reply to]

At 12:41 17-04-2008, Jerry Ferguson wrote:
> no, I downloaded and compiled from source which I have done since v 0.85
>pkgsrc is version 92.1 which I will use for now.

pkgsrc contains version 0.93.

Regards,
-sm

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

ClamAV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.