I'm having trouble getting clamav to work with sendmail. I've reviewed the 
list archive, and there seem to be a number of similar problems, but no 
solutions.

Environment:
------------
        RH 9, kernel 2.4.20
        sendmail 8.12.8
        clamav 0.70 from Dag Apt Repository (also tried 0.70-rc1)
        clamav-milter 0.70j (also tried 0.70-rc1)  --or-- smtp-vilter

        clamd and clamav-milter configured for local (unix domain) sockets
                --or-- clamd and smtp-vilter configured for tcp

Sendmail config:
----------------
INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clamav-milter.sock,F=,T=S:4m;R:4m')

        -- or --

INPUT_MAIL_FILTER(`smtp-vilter', 
`S=unix:/var/run/vilter/smtp-vilter.sock,F=T,T=S:10s;R:120s')


Socket & process:
-----------------
        
        [EMAIL PROTECTED] run]# ls -ld clamav
        drwxr-xr-x    2 clamav   clamav       4096 Apr 20 01:48 clamav
        [EMAIL PROTECTED] run]# ls -l clamav
        srwxr-xr-x    1 clamav   clamav          0 Apr 20 01:48 clamav-milter.sock
        -rw-rw----    1 clamav   clamav          4 Apr 20 01:48 clamd.pid


        clamav    8374     1  0 01:48 ?        00:00:00 /usr/sbin/clamd
        clamav    8395     1  0 01:48 ?        00:00:00 /usr/sbin/clamav-milter\
                --debug --local --outgoing --max-children=10 --force-scan\
                --dont-log-clean --postmaster-only -p=postmaster -Q=postvirus\
                local:/var/run/clamav/clamav-milter.sock

        
Behavior:
---------
        clamscan works fine
        clamdscan works fine
        
        When sending mail to clamd via a milter (either clamav-milter or
        smtp-vilter), there seems to be a problem contacting the mail daemon,
        generating a temporary failure.

        (I'm also setting up spamassassin with spamass-milter, which works fine.
        It's disabled while I test clamav, but it does confirm that sendmail
        is built with milter support.)

Logs:
-----

    [while using clamav-milter-0.70-rc1]
Apr 19 22:06:38 server1 clamav-milter[30731]: clamd / ClamAV version 0.70rc, 
clamav-milter version 0.70
Apr 19 22:06:49 server1 clamav-milter[30731]: clamfi_connect: hostaddr is null
Apr 19 22:06:49 server1 clamav-milter[30731]: clamfi_close
Apr 19 22:06:49 server1 spamass-milter[29268]: NULL context in mlfi_close! Should not 
happen!
Apr 19 22:06:49 server1 sendmail[30755]: i3K36nT6030755: Milter: connect: 
host=localhost, addr=0, temp failing commands


    [while using clamav-milter-0.70j]

Apr 20 00:29:31 server1 clamav-milter[4897]: clamd / ClamAV version 0.70, 
clamav-milter version 0.70j
Apr 20 00:29:40 server1 sendmail[4913]: i3K5TeCw004913: Milter (clmilter): init 
success to negotiate
Apr 20 00:29:40 server1 sendmail[4913]: i3K5TeCw004913: Milter: connect to filters
Apr 20 00:29:40 server1 clamav-milter[4897]: clamfi_connect: hostaddr is null
Apr 20 00:29:40 server1 sendmail[4913]: i3K5TeCw004913: milter=clmilter, 
action=connect, tempfail
Apr 20 00:29:40 server1 sendmail[4913]: i3K5TeCw004913: Milter: connect, ending
Apr 20 00:29:40 server1 clamav-milter[4897]: clamfi_close
Apr 20 00:29:40 server1 sendmail[4913]: i3K5TeCw004913: Milter: connect: 
host=localhost, addr=0, temp failing commands
Apr 20 00:29:41 server1 sendmail[4913]: i3K5TeCw004913: SMTP MAIL command (<[EMAIL 
PROTECTED]>) from [EMAIL PROTECTED] tempfailed (due to previous checks)
                

    [while using smtp-vilter]
Apr 20 01:01:39 server1 smtp-vilter[6628]: privileged startup
Apr 20 01:01:39 server1 smtp-vilter[6628]: dropped privileges, running as 99:99
Apr 20 01:01:43 server1 sendmail[6633]: i3K61hPs006633: Milter (smtp-vilter): init 
success to negotiate
Apr 20 01:01:43 server1 sendmail[6633]: i3K61hPs006633: Milter: connect to filters
Apr 20 01:01:45 server1 sendmail[6633]: i3K61hPs006633: from=<[EMAIL PROTECTED]>, 
size=2365, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, [EMAIL PROTECTED]
Apr 20 01:01:45 server1 sendmail[6633]: i3K61hPs006633: Milter: data, reject=451 4.7.1 
Please try again later
Apr 20 01:01:45 server1 sendmail[6633]: i3K61hPs006633: to=<[EMAIL PROTECTED]>, 
delay=00:00:01, pri=31999, stat=Please try again later


Thanks for your help,

Mark

----
Mark Bergman
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&[EMAIL PROTECTED]



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to