> > >Richard, > > > >I had this very problem today on a fedora box. By default, with those > >rpm's, it doesn't seem to do anything. The virus is detected, but the > >email is allowed to pass through. I messed with this for a few hours and > >could not get it to do anything with the email. > > > > > > This package is configured and build to silently discard email when > virus is detected. > NONE of sender or recipient or postmaster is notified. Name of the virus > is logged > to the log file. But the virus doesnt pass through! > > If you have different experience, then there is something wrong on your > system. > > Can you examine your system and let us the result, please? >
I was using 0.65 release, and from what I could see from the logs, the emails were passed through, along with the virus. This particular behavior was on a RedHat 9 box, running sendmail 8.12.8-9.90. But I also tested that same rpm, rebuilt from src rpm, on a fedora box and it did the same thing. That's when I decided to try cvs. > clamav-milter behaviour is configured via option described on man page. > > >So, I just finished building a new rpm from the cvs snapshot last night > >and it is doing what it should. Emails are showing up as flagged in > >/var/log/maillog and I have them quarantined to another account via a > >clamav-milter config option, all automatically. That quarantine option is > >not available in the 0.65 release though. If you like, I can pass you the > >rpm or spec file. > > > > > > The testing package based on cvs with quarantide-dir option is on > http://crash.fce.vutbr.cz/crash-hat/testing/1/clamav/ > Ah, very nice!! This is what I needed. Could someone include this link on the clamav binary download page near the one for RedHat/Fedora rpms?? This would be helpful for other people who want to test the new features in cvs, but don't want to mess with building a spec file. > > OK. Can you send me your modification of spec file? > Spec file is below, though I'll probably use your version above from now on. The only modifications I made to the spec file were to take out the patches, since I could not get them to apply cleanly, some additions for an /etc/freshclam.conf file, and an upgrade to logwatch 0.23. I like your spec file better though. Thanks for posting the link! Jason --- clamav.spec --- # Conditional build (--with/--without option) # --without milter Summary: An antivirus toolkit for Unix Name: clamav Version: 0.66 Release: 1beta Epoch: 32 License: GPL Group: Applications/System URL: http://www.clamav.net/ Source0: http://download.sf.net/clamav/%{name}-%{version}.tar.gz Source1: clamd.sh Source2: clamav-milter.sh Source3: freshclam.sh Source4: clamav-milter.sysconfig Source6: clamd.logrotate Source7: freshclam.logrotate Source8: http://www.schimkat.dk/clamav/clamav-milter-logwatch-0.23.tar.gz Source9: RPM-clamav-milter.txt BuildRequires: autoconf automake BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Clam AntiVirus is a GPL anti-virus toolkit for UNIX. The main purpose of this software is the integration with mail servers (attachment scanning). The package provides a flexible and scalable multi-threaded daemon, a command line scanner, and a tool for automatic updating via Internet. The programs are based on a shared library distributed with package, which you can use with your own software. Most importantly, the virus database is kept up to date . %if %{!?_without_milter:1}%{?_without_milter:0} %package milter Summary: Clamav milter Group: System Environment/Daemons License: GPL Requires: %{name} = %{epoch}:%{version}-%{release} Requires: sendmail >= 8.11 BuildRequires: sendmail-devel >= 8.11 %description milter ClamAV sendmail filter using MILTER interface. %endif %package devel Summary: Clamav - Development header files and libraries Group: Development/Libraries Requires: %{name} = %{epoch}:%{version}-%{release} %description devel This package contains the development header files and libraries necessary to develope your own clamav based applications. %prep %setup -q %setup -D -a 8 %build %configure \ --enable-debug \ --program-prefix=%{?_program_prefix} \ %{!?_without_milter:--enable-milter} \ --enable-id-check \ --disable-clamav \ --with-user=clamav \ --with-group=clamav \ --with-dbdir=%{_localstatedir}/lib/clamav %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_initrddir}/ install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ install -d $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ install -d $RPM_BUILD_ROOT%{_sysconfdir}/log.d/scripts/services/ install -d $RPM_BUILD_ROOT%{_sysconfdir}/log.d/conf/services/ install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/clamav/ install -d $RPM_BUILD_ROOT%{_localstatedir}/log/clamav/ install -d $RPM_BUILD_ROOT%{_localstatedir}/run/clamav/ %{__make} install DESTDIR=$RPM_BUILD_ROOT %{?_without_milter:rm -f $RPM_BUILD_ROOT%{_mandir}/man8/clamav-milter.8*} install %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/clamd install %{SOURCE3} $RPM_BUILD_ROOT%{_initrddir}/freshclam install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/clamd install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/freshclam install etc/clamav.conf $RPM_BUILD_ROOT%{_sysconfdir}/clamav.conf install etc/freshclam.conf $RPM_BUILD_ROOT%{_sysconfdir}/freshclam.conf # Milter %if %{!?_without_milter:1}%{?_without_milter:0} install %{SOURCE2} $RPM_BUILD_ROOT%{_initrddir}/clamav-milter install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/clamav-milter install clamav-milter/clamav-milter $RPM_BUILD_ROOT%{_sysconfdir}/log.d/scripts/services/. install clamav-logwatch-0.23/clamav-milter.conf $RPM_BUILD_ROOT%{_sysconfdir}/log.d/conf/services/. install %{SOURCE9} RPM-clamav-milter.txt mv clamav-logwatch-0.23/HOWTO HOWTO-logwatch.txt %endif # %clean rm -rf $RPM_BUILD_ROOT %pre if [ -z "`id -g clamav 2>/dev/null`" ]; then /usr/sbin/groupadd -g 46 -r -f clamav fi if [ -z "`id -u clamav 2>/dev/null`" ]; then /usr/sbin/useradd -u 46 -r -d /tmp -s /sbin/nologin -c "Clam AV Checker" -g clamav clamav 1>&2 fi %post /sbin/chkconfig --add clamd /sbin/chkconfig --add freshclam %preun if [ $1 = 0 ]; then service clamd stop > /dev/null 2>&1 service freshclam stop > /dev/null 2>&1 /sbin/chkconfig --del clamd /sbin/chkconfig --del freshclam fi %postun if [ $1 = 0 ]; then /usr/sbin/userdel -r clamav > /dev/null 2>&1 || : fi if [ "$1" -ge "1" ]; then service clamd condrestart > /dev/null 2>&1 service freshclam condrestart > /dev/null 2>&1 fi # Milter %if %{!?_without_milter:1}%{?_without_milter:0} %post milter /sbin/chkconfig --add clamav-milter %preun milter if [ $1 = 0 ]; then service clamav-milter stop > /dev/null 2>&1 /sbin/chkconfig --del clamav-milter fi %postun milter if [ "$1" -ge "1" ]; then service clamav-milter condrestart > /dev/null 2>&1 fi %endif # %files %defattr(0644,root,root,0755) %doc AUTHORS BUGS COPYING ChangeLog FAQ INSTALL NEWS README TODO %doc docs/*.pdf docs/html/ %attr(0640,root,clamav) %config %{_sysconfdir}/clamav.conf %attr(0640,root,clamav) %config %{_sysconfdir}/freshclam.conf %attr(0755,root,root) %{_initrddir}/clamd %attr(0755,root,root) %{_initrddir}/freshclam %attr(0755,root,root) %{_sysconfdir}/logrotate.d/clamd %attr(0755,root,root) %{_sysconfdir}/logrotate.d/freshclam %attr(0755,root,root) %{_bindir}/* %attr(0755,root,root) %{_sbindir}/clamd %attr(0755,root,root) %{_libdir}/libclamav.so.* %attr(0755,clamav,clamav) %dir %{_localstatedir}/lib/clamav/ %attr(0644,clamav,clamav) %{_localstatedir}/lib/clamav/mirrors.txt %attr(0644,clamav,clamav) %config(noreplace) %verify(user group mode) %{_localstatedir}/lib/clamav/main.cvd %attr(0644,clamav,clamav) %config(noreplace) %verify(user group mode) %{_localstatedir}/lib/clamav/daily.cvd %attr(0755,clamav,clamav) %{_localstatedir}/log/clamav/ %attr(0755,clamav,clamav) %{_localstatedir}/run/clamav/ %{_mandir}/man1/clamdscan.1* %{_mandir}/man1/clamscan.1* %{_mandir}/man1/freshclam.1* %{_mandir}/man1/sigtool.1* %{_mandir}/man5/clamav.conf.5* %{_mandir}/man8/clamd.8* # Milter %if %{!?_without_milter:1}%{?_without_milter:0} %files milter %defattr(0644,root,root,0755) %doc RPM-clamav-milter.txt HOWTO-logwatch.txt %config %{_sysconfdir}/sysconfig/clamav-milter %attr(0755,root,root) %{_initrddir}/clamav-milter %attr(0755,root,root) %{_sbindir}/clamav-milter %attr(0755,root,root) %{_sysconfdir}/log.d/scripts/services/clamav-milter %attr(0644,root,root) %{_sysconfdir}/log.d/conf/services/clamav-milter.conf %{_mandir}/man8/clamav-milter.8* %endif # %files devel %defattr(0644,root,root,0755) %attr(0755,root,root) %{_libdir}/*.a %attr(0755,root,root) %{_libdir}/*.la %attr(0644,root,root) %{_includedir}/*.h %changelog * Tue Jan 27 2004 Jason P Holland <[EMAIL PROTECTED]> - Rebuilt from nightly cvs snapshot of 01262004 * Sun Dec 7 2003 Petr Kritof <[EMAIL PROTECTED]> - Fix Epoch dependencies by Eduardo Kaftanski <[EMAIL PROTECTED]> * Sun Nov 23 2003 Petr Kritof <[EMAIL PROTECTED]> - Update .spec file - Fix RH-7.3 program-prefix by Kenneth Porter <[EMAIL PROTECTED]> - Rebuild on FC1 * Sun Nov 16 2003 Petr Kritof <[EMAIL PROTECTED]> - Fix doc errors - Fix dependencies - Patch for RH-7.3 by Lionel Bouton <[EMAIL PROTECTED]> - Patch for RH-7.3 by Chris de Vidal <[EMAIL PROTECTED]> - Option --without-milter by Jn Ondrej (SAL) <[EMAIL PROTECTED]> * Wed Nov 12 2003 Petr Kritof <[EMAIL PROTECTED]> - Removed package db - Added LogWatch support - Added FreshClam support - Moved logfiles to own subdirectory - Update to 0.65 * Wed Sep 10 2003 Petr Kritof <[EMAIL PROTECTED]> - Option for build without clamavdb * Thu Jul 10 2003 Petr Kritof <[EMAIL PROTECTED]> - Split package to clamav, db, milter, devel * Sun Jun 22 2003 Petr Kritof <[EMAIL PROTECTED]> - Update to 0.60 * Tue Jun 10 2003 Petr Kritof <[EMAIL PROTECTED]> - Fixed post, preun, postun scripts - Update to 2003xxxx snapshots * Tue Feb 4 2003 Petr Kritof <[EMAIL PROTECTED]> - Rebuild on RH-8.0 * Sun Dec 1 2002 Petr Kritof <[EMAIL PROTECTED]> - Based on PLD package - Initial RH-7.3 build --- clamav.spec --- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users