>From: "Alex Ballos" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Re: [Clamav-users] Debian Linux + Sendmail + clamav-milter: don't
work - what's wrong?
>Date: Fri, 21 Nov 2003 18:09:30 +0200
>Reply-To: [EMAIL PROTECTED]
>
>Just check the /etc/mail/sendmail.cf
>
>for
>################################################################
>O InputMailFilters=clmilter
>Xclmilter, S=local:/var/run/clamav/clmilter.sock, F=R, T=S:4m;R:4m;E:4m
>#################################################################
>

These entries in my sendmail looked like above mentioned
but not the same. There were:

O InputMailFilters=clmilter
Xclmilter, S=local:/var/run/clmilter.sock, F=, T=S:4m;R:4m


I just rewrote these entries according to your instruction:

O InputMailFilters=clmilter
Xclmilter, S=local:/var/run/clamd/clmilter.sock, F=R, T=S:4m;R:4m;E:4m

and restarted Sendmail.

Nothing happened.
All goes as if without Clamav at all.

    M. Khaletsky

==============================
This is the continuation of the the message:
==============================
From: "Michael V. Khaletsky" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Date: Fri, 21 Nov 2003 18:29:19 +0300
Subject: [Clamav-users] Debian Linux + Sendmail + clamav-milter: don't
work - what's wrong?
Reply-To: [EMAIL PROTECTED]

Hello again.
I have Debian Linux with Sendmail
Trying to install Clamav-milter into Sendmail.

1. Configure clamav
1.1. configure --sysconfdir=/etc --enable-milter
1.2. make
1.3. make install

2. Configure clamav.conf:
2.1. Comment line #Example
2.1. Uncomment next lines:
            LocalSocket /var/run/clamd.sock
             ScanMail
             StreamSaveToDisk
3. Run clamd

        clamd

4. clamd.log tells:
        Fri Nov 21 17:44:37 2003 -> +++ Started at Fri Nov 21 17:44:37 2003
        Fri Nov 21 17:44:37 2003 -> Log file size limited to 1048576 bytes.
        Fri Nov 21 17:44:37 2003 -> Verbose logging activated.
        Fri Nov 21 17:44:37 2003 -> Running as user clamav (UID 29335, GID
11001)
        Fri Nov 21 17:44:37 2003 -> Reading databases from
/usr/local/share/clamav
        Fri Nov 21 17:44:38 2003 -> Protecting against 17977 viruses.
        Fri Nov 21 17:44:38 2003 -> Unix socket file
/var/run/clamd/clamd.sock
        Fri Nov 21 17:44:38 2003 -> Setting connection queue length to 30
        Fri Nov 21 17:44:38 2003 -> Listening daemon: PID: 18203
        Fri Nov 21 17:44:38 2003 -> Maximal number of threads: 10
        Fri Nov 21 17:44:38 2003 -> Archive: Archived file size limit set to
10485760 bytes.
        Fri Nov 21 17:44:38 2003 -> Archive: Recursion level limit set to 5.
        Fri Nov 21 17:44:38 2003 -> Archive: Files limit set to 1000.
        Fri Nov 21 17:44:38 2003 -> Archive support enabled.
        Fri Nov 21 17:44:38 2003 -> RAR support disabled.
        Fri Nov 21 17:44:38 2003 -> Mail files support enabled.
        Fri Nov 21 17:44:38 2003 -> ThreadWatcher: Started in process 18205
        Fri Nov 21 17:44:38 2003 -> Self checking every 3600 seconds.
        Fri Nov 21 17:44:38 2003 -> Timeout set to 500 seconds.
        Fri Nov 21 17:44:38 2003 -> SelfCheck: Database status OK.
        Fri Nov 21 17:44:38 2003 -> SelfCheck: Integrity OK

5. Start clamav-milter:
            /usr/local/sbin/clamav-milter -blo /var/run/clmilter.sock

6. recompile sendmail.cf and restart sendmail
    6.1. add entries into sendmail.mc:

INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clmilter.sock, F=,
T=S:4m;R:4m')dnl
                            define(`confINPUT_MAIL_FILTERS', `clmilter')
    6.2. recompile and reinstall sendmail.cf
    6.3 restart sendmail

And ...
NOTNING HAPPENS
"X-Virus-Scanned" is absent in e-mail headers.

================================

"netstat -a" output (portion):

Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ACC ]     STREAM     LISTENING     519
/var/run/mysqld/mysqld.sock
unix  2      [ ACC ]     STREAM     LISTENING     760260
/var/run/clamd/clamd.sock
unix  10     [ ]         DGRAM                    262    /dev/log
unix  2      [ ACC ]     STREAM     LISTENING     1114
/tmp/.font-unix/fs7100
unix  2      [ ACC ]     STREAM     LISTENING     760434
/var/run/clmilter.sock
unix  3      [ ]         STREAM     CONNECTED     763272
unix  3      [ ]         STREAM     CONNECTED     763271
unix  2      [ ]         DGRAM                    761668
unix  2      [ ]         DGRAM                    760432
unix  2      [ ]         DGRAM                    760249
unix  2      [ ]         DGRAM                    736785
unix  3      [ ]         STREAM     CONNECTED     723456
unix  3      [ ]         STREAM     CONNECTED     723455
unix  3      [ ]         STREAM     CONNECTED     681555
unix  3      [ ]         STREAM     CONNECTED     681554
unix  3      [ ]         STREAM     CONNECTED     681553
unix  3      [ ]         STREAM     CONNECTED     681552
unix  3      [ ]         STREAM     CONNECTED     681549
unix  3      [ ]         STREAM     CONNECTED     681548

=================================
"ps ax" output (portion):

17456 ?        S      0:00 sendmail: server
hsdbrg64-110-192-158.sasknet.sk.ca [64.110.192.158] cmd read
17474 ?        S      0:00 sendmail: server
AVelizy-115-1-13-226.w81-248.abo.wanadoo.fr [81.248.75.226] cmd read
18203 ?        S      0:00 clamd
18204 ?        S      0:00 clamd
18205 ?        S      0:00 clamd
18234 pts/1    S      0:00 /usr/local/sbin/clamav-milter -blo
/var/run/clmilter.sock
18235 pts/1    S      0:00 /usr/local/sbin/clamav-milter -blo
/var/run/clmilter.sock
18236 pts/1    S      0:00 /usr/local/sbin/clamav-milter -blo
/var/run/clmilter.sock
18254 ?        S      0:00 sendmail: accepting connections
18663 ?        S      0:00 sendmail: ./hAJMlbQg005922
cdm-66-233-195-184.alex.cox-internet.com.: user open
18880 ?        S      0:00 sendmail: server [195.208.160.3] cmd read
18918 ?        S      0:00 sendmail: ./hALEr6Wv018441 lhe.jinr.ru.: user
open
18931 ?        S      0:00 sendmail: server
200-140-002-232.bsace705.dsl.brasiltelecom.net.br [200.140.2.232] cmd read
===========================


What's wrong ?



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to