Go to file
Sérgio M. Basto 162c660fd5 Clamav 0.99.3 with git "merge" master
i.e.: git diff HEAD..master | patch -p1
and git add ChangeLog-rpm.old README.fedora clamav-0.98-umask.patch clamav-0.99-private.patch  clamav-milter.systemd clamav-milter.sysv clamav-milter.upstart clamav-update.crond clamav-update.logrotate clamd-README clamd-gen clamd-wrapper clamd.SERVICE.init clamd.scan.upstart clamd.sysconfig clamd@.service clamd@scan.service freshclam-sleep freshclam.sysconfig llvm-glibc.patch

and again git diff HEAD..master | patch -p1
patching file clamd-gen
patching file freshclam-sleep
2018-01-27 00:03:55 +00:00
.gitignore Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
ChangeLog-rpm.old Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
clamav-0.98-umask.patch Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
clamav-0.99-private.patch Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
clamav-0.99.1-setsebool.patch Update to 0.99.2 2016-06-13 12:40:14 -06:00
clamav-0.99.2-temp-cleanup.patch Backported upstream patch to unbreak e2guardian vs. temp files 2017-11-26 03:55:21 +01:00
clamav-milter.systemd Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
clamav-milter.sysv Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
clamav-milter.upstart Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
clamav-update.crond Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
clamav-update.logrotate Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
clamav.spec Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
clamd-gen Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
clamd-README Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
clamd-wrapper Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
clamd.logrotate Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
clamd.scan.upstart Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
clamd.SERVICE.init Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
clamd.sysconfig Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
clamd@.service Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
clamd@scan.service Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
freshclam-sleep Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
freshclam.sysconfig Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
llvm-glibc.patch Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
Makefile Add Makefile to make clean tarball 2011-10-18 20:09:36 -05:00
README.fedora Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00
sources Clamav 0.99.3 with git "merge" master 2018-01-27 00:03:55 +00:00

A clamav-milter setup consists of the following three components:

* the clamav-milter itself

  --> this is provided by the 'clamav-milter' package plus (alternatively)
      'clamav-milter-upstart' or 'clamav-milter-sysvinit'

  The main configuration is in /etc/mail/clamav-milter.conf and MUST
  be changed before first use.

  The -sysvinit package is managed by the traditional tools, but
  -upstart requires modification of /etc/event.d/clamav-milter to
  enable automatic startup.  See comments there for more details.

* a clamav scanner daemon

  --> this package is called 'clamav-scanner' plus (alternatively)
      'clamav-scanner-upstart' or 'clamav-scanner-sysvinit'

  The daemon is configured by /etc/clamd.d/scan.conf (which MUST be
  edited before first use).

  The -sysvinit package is managed by the traditional tools, but
  -upstart requires modification of /etc/event.d/clamd.scan to enable
  automatic startup.  See comments there for more details.

* the MTA (sendmail/postfix)

  --> you should know how to install this...

  When communicating across unix sockets with the clamav-milter, it is
  suggested to use the /var/run/clamav-milter/clamav-milter.socket
  path.  You have to add something like

    INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav-milter/clamav-milter.socket, F=, T=S:4m;R:4m')dnl

  to your sendmail.mc.



It is suggested that components communicate through TCP sockets as
this eases setup.  Please add corresponding packet filter rules!


EXAMPLE
=======

For clamav-milter, a possible setup might be created by

A)  On the MTA  (assumed hostname 'host-mta')

  1. Add to sendmail.mc

    | INPUT_MAIL_FILTER(`clamav', `S=inet:6666@host-milter, F=, T=S:4m;R:4m')dnl

  2. Rebuild sendmail.cf


B)  On the clamav-milter host (assumed hostname 'host-milter')

  1. Install clamav-milter + clamav-milter-upstart packages

  2. Set in /etc/mail/clamav-milter.conf

    | MilterSocket	inet:6666
    | ClamdSocket	tcp:host-scanner:6665

     and all the other options which are required on your system

  3. Edit /etc/event.d/clamav-milter and uncomment the

    | start on starting local

     line. Restart your system or execute

    | initctl emit starting local

  4. Add something like

    | iptables -N IN-cmilt
    | iptables -A IN-cmilt -s host-mta -j ACCEPT
    | iptables -A IN-cmilt -j DROP

    | iptables -A INPUT -p tcp --dport 6666 -j IN-cmilt

     to your firewall setup

C)  On the clamav-scanner host (assumed hostname 'host-scanner')

  1. Install clamav-scanner + clamav-scanner-upstart packages

  2. Add to /etc/clamd.d/scan.conf

    | TCPSocket 6665
    | TCPAddr   host-scanner

     comment out possible 'LocalSocket' lines and set all the other
     options which are required on your system

  3. Edit /etc/event.d/clamav-scanner and uncomment the

    | start on starting local

     line. Restart your system or execute

    | initctl emit starting local

  4. Add something like

    | iptables -N IN-cscan
    | iptables -A IN-cscan -s host-milter -j ACCEPT
    | iptables -A IN-cscan -j DROP

    | iptables -A INPUT -p tcp --dport 6665 -j IN-csan

     to your firewall setup