[Mimedefang] Re: Sendmail, MIMEDefang and ClamAV
Johann wrote: NFN Smith wrote: [ ... ] > ... > Also, a related question -- what's the best way of getting the clamd > and clamav-milter daemons launched at start time? > In the contib/init/RedHat directory of your ClamAV source, there is an init file named clamd. That's what I was missing. Thanks. Copy it to /etc/init.d. then symlink it into /etc/rc.d/rc3 (rc5 if you start up in graphical mode) as S(some number lower than Sendmail's)clamd - ie: S75clamd As Alexander has noted separately in a RH/Fedora environment, chkconfig is the preferred way. I haven't played with it a lot, but it's definitely a faster way of getting all the links done at once, and with the right name. In any case, I definitely want the Clam daemons starting before sendmail starts. I agree that it should be started before either Sendmail or MIMEDefang, though I can not tell you why. Must be BOFH intuition. As Alexander has also noted, since sendmail calls both MIMEDefang and ClamAV as milter calls, you need both of those daemons launched before sendmail does. Hence, my annoyance at the suggestion to simply add the ClamAV daemon launches in rc.local (which is normally run as S99local). Thanks to Johann, Alexander, Matthew and Adam who took the time to respond to my questions. Smith ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
RE: [Mimedefang] Re: Sendmail, MIMEDefang and ClamAV
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 NFN Smith wrote: > I wonder why this particular site suggested that it should be > included... Probably for the same reason they felt compelled to post a real virus for testing rather than the EICAR test-virus. (/me rolls eyes) [EMAIL PROTECTED] 805.964.4554 x902 Hispanic Business Inc./HireDiversity.com Software Engineer perl -e"map{y/a-z/l-za-k/;print}shift" "Jjhi pcdiwtg Ptga wprztg," -BEGIN PGP SIGNATURE- Comment: pub key http://matthew.vaneerde.com/pgp-public-key.asc iD4DBQFBLkrJUQQr0VWaglwRAiCPAJUeRTIyOok1oHgS5+ui5sy5Q2GtAJ9hDVpT UxeaPoxjhtlhprxrVXAAVA== =Bhuz -END PGP SIGNATURE- ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
Re: [Mimedefang] Re: Sendmail, MIMEDefang and ClamAV
Am Do, den 26.08.2004 schrieb NFN Smith um 21:44: > > Alternately, you could define both filters as in: > > define(`confINPUT_MAIL_FILTERS', `mimedefang, clmilter')dnl > > > > Note that there is probably no benefit to doing this rather than just > > removing the confINPUT_MAIL_FILTERS entry unless you have a lot of > > filters and simply want to redefine the order in which they are called. > > OK, I wondered about why confINPUT_MAIL_FILTERS was specified. It's not > one I've played with before. > > I wonder why this particular site suggested that it should be included... > > Smith From cf/README: A comma separated list of filters which determines which filters and the invocation sequence are contacted for incoming SMTP messages. If none are set, no filters will be contacted. So using this definition you can change the invokation order of the milters which should be used, without need to reorder or to remove the milter lines itself. Alexander -- Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13 Fedora GNU/Linux Core 2 (Tettnang) kernel 2.6.8-1.521smp Serendipity 22:28:31 up 6 days, 18:11, load average: 1.43, 1.62, 1.44 signature.asc Description: Dies ist ein digital signierter Nachrichtenteil ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
[Mimedefang] Re: Sendmail, MIMEDefang and ClamAV
Adam Lanier wrote: | [EMAIL PROTECTED] wrote: | | Take out your "define(`confINPUT_MAIL_FILTERS', `clmilter')" line and | you should be OK. And I am. Alternately, you could define both filters as in: define(`confINPUT_MAIL_FILTERS', `mimedefang, clmilter')dnl Note that there is probably no benefit to doing this rather than just removing the confINPUT_MAIL_FILTERS entry unless you have a lot of filters and simply want to redefine the order in which they are called. OK, I wondered about why confINPUT_MAIL_FILTERS was specified. It's not one I've played with before. I wonder why this particular site suggested that it should be included... Smith ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
[Mimedefang] Re: Sendmail, MIMEDefang and ClamAV
[EMAIL PROTECTED] wrote: NFN Smith wrote: define(`_FFR_MILTER', `true')dnl INPUT_MAIL_FILTER(`mimedefang',`S=unix:/var/spool/MIMEDefang/mimedefang.sock,F=T,T=S:2m;R:2m')dnl INPUT_MAIL_FILTER(`clmilter',`S=local:/var/milter/clmilter.sock, F=, T=S:4m;R:4m')dnl define(`confINPUT_MAIL_FILTERS', `clmilter') This is wrong. See http://www.sendmail.org/m4/adding_mailfilters.html That's what I get for copying verbatim, and not confirming against the docs that what is suggested is what I need. I wondered about the extra define... "Note that setting `confINPUT_MAIL_FILTERS' after any > INPUT_MAIL_FILTER() commands will clear the list created by the prior > INPUT_MAIL_FILTER() commands." Take out your "define(`confINPUT_MAIL_FILTERS', `clmilter')" line and you should be OK. So done. With that removed, both ClamAV and MIMEDefang seem to be running happily together. Thanks for the feedback on this one. That definitely helps. Smith ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang