Installation - Roadmap

Things must be installed in the following sequence :

  1. The MTA - sendmail or postfix
  2. libmilter
  3. j-chkmail
  4. other tools
    • RRDTool
    • ClamAV

Although it's a good idea to know how things are installed, you can also use the j-easy-install tool, which will automate most steps, from getting the last release from j-chkmail web site to configure, compile and install/update the filter. j-easy-install has almost the same features as some package managers with the advantage of being OS independent.

Sendmail and Postfix

Installing sendmail or postfix is out of the scope of this documentation. Specific information on how to configure these MTA can be found at Quick Start.

libmilter

  • Go to the root of sendmail distribution tree.

    # gunzip -c sendmail.8.14.4.tar.gz | tar xf -
    # cd sendmail-8.14.4

  • Create the file devtools/Site/site.config.m4 with the following content :

    dnl
    dnl Enable libmilter with a pool of workers
    APPENDDEF(`conf_libmilter_ENVDEF',`-D_FFR_WORKERS_POOL=1 -DMIN_WORKERS=4')
    dnl
    dnl Use poll instead of select
    APPENDDEF(`conf_libmilter_ENVDEF',`-DSM_CONF_POLL=1')
    dnl Enable IPv6
    APPENDDEF(`conf_libmilter_ENVDEF',`-DNETINET6=1')
    dnl

  • Compile and install libmilter :

    # cd libmilter
    # ./Build
    # ./Build install

Why install libmilter this way ??? Because thread model in libmilter bundled with sendmail 8.14.0 and newers versions is modified to work with a pool of workers instead of one thread per SMTP connection. This is very important for huge servers. To enable it, compile libmilter this way.

See http://j-chkmail.ensmp.fr/papers/workermilter.pdf

j-chkmail

Just type :

./configure
make
su
make install

You don't need anything other than a computer, some flavor of the UNIX Operating System (SunOS, FreeBSD or Linux) and an MTA (sendmail or postfix).

There are very few things you can/may configure at compile time. If you really need to do configure it in a non standard way, you'll probably find useful to take a look at compile.conf file inside distribution tree.

Have a look then at Quick Start

j-easy-install

Just get j-easy-install from j-chkmail web site :

# wget http://www.j-chkmail.ensmp.fr/download/tools/j-easy-install
# chmod +x j-easy-install
# ./j-easy-install

To update your filter, launch :

# j-easy-install update stable

doc/installation/start.txt · Last modified: 2010/02/21 19:58 (external edit)
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0