Oh, and the tutorial that was recommended on this list a couple of weeks
back is wrong. It calls for StreamSaveToDisk option on clam version
0.80.  http://www.technoids.org/clamav-milter.html
The change log for clamav 0.80 says
"Mon Sep 20 10:09:55 BST 2004 (njh)
----------------------------------
  * clamav-milter:      Change to clamd.conf
                        Remove StreamSaveToDisk check" 
and
"Sat Sep 18 21:23:00 CEST 2004 (tk)
----------------------------------
  * clamd: remove obsolete StreamSaveToDisk directive
  * sigtool: add --html-normalise
  * cleanup"
 I will drop them a line to update it.
On Tue, 2005-01-18 at 05:30 -0700, Ed Stover wrote:
> A little history for you, I have run clamav up till the .7x line died
> and the StreamSaveToDisk option has always been there. But for some odd
> reason it is excluded from the configuration files that I have seen both
> by building clamav0.80 from sources and from FreeBSD ports. It escapes
> me why it isn't in there when all the documentation calls for that line
> to make MILTER work.  When I manually add the line , clamd doesn't
> recognize the option and will not start.
> 
> bash-2.05b# clamd
> ERROR: Parse error at line 1: Unknown option StreamSaveToDisk.
> ERROR: Can't open/parse the config file /usr/local/etc/clamd.conf
> 
>  This is what I do from start to finish FreeBSD 4.8 with upgraded ports.
> 
> bash-2.05b# make -D WITH_MILTER install
> >every thing builds and installs
> 
> >my clamd.conf has this;
> LogFile /var/log/clamav/clamd.log
> LogFileMaxSize 5M
> LogTime
> PidFile /var/run/clamav/clamd.pid
> TemporaryDirectory /tmp
> DatabaseDirectory /usr/local/share/clamav
> LocalSocket /var/run/clamav/clamd
> FixStaleSocket
> MaxConnectionQueueLength 30
> StreamMaxLength 10M
> MaxThreads 40
> MaxDirectoryRecursion 20
> FollowDirectorySymlinks
> User clamav
> AllowSupplementaryGroups
> ScanMail
> ScanRAR
> ArchiveMaxFileSize 10M
> 
> >>I start clamd from that config and verify pid and socket and verify it
> >>running
> 
> >> I start milter like so and verify that it is running. (yes the
> >>infected directory is there and with the proper permisions)
> # clamav-milter -lo -U/var/mail/infected /var/run/clamav/clmilter.sock
> >>I add this to the end of my mc file and then do a  make all install
> >>restart
> INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock,
> F=T, T=S:4m;R:4m')
> 
> 
> >>now i Test it.
> cd /usr/ports/security/clamav/work/clamav-0.80/test
> cat clam.cab | mail root -s "Testing"
> 
> >>I get this in my mail log and even clean mail doesn't go through.
> Jan 18 05:01:55 mail sm-mta[49354]: j0IC1toF049354:
> to=<[EMAIL PROTECTED]>, delay=00:00:00, pri=30605, stat=Please $
> Jan 18 05:01:55 mail sendmail[49353]: j0IC1t7n049353: to=estover,
> delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31055, $
> Jan 18 05:02:17 mail sendmail[49358]: j0IC2H1u049358: from=estover,
> size=14, class=0, nrcpts=2, msgid=<200501181202.j0IC2H1u$
> Jan 18 05:02:17 mail sm-mta[49359]: j0IC2HoD049359:
> <[EMAIL PROTECTED]>... User unknown
> Jan 18 05:02:17 mail sendmail[49358]: j0IC2H1u049358: to=Testing,
> ctladdr=estover (1011/1001), delay=00:00:00, xdelay=00:00:$
> Jan 18 05:02:17 mail sm-mta[49359]: j0IC2HoD049359:
> from=<[EMAIL PROTECTED]>, size=324, class=0, nrcpts=1, msgid=<2$
> Jan 18 05:02:17 mail sm-mta[49359]: j0IC2HoD049359: Milter: data,
> reject=451 4.7.1 Please try again later
> >> I comment out the milter option in my mc and restart sendmail and all
> >> the test messages come through..
> 
> This is on a functional mail server that has been running with procmail
> for over a year, I just want to add another layer of global protection
> and hopefully use clamav-milter. Any help i greatly appreciate.
> 
> 
> _______________________________________________
> http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users

Reply via email to