Prerequisites
-------------

smtp-vilter requires a sendmail installation with milter
support.  You can check if your sendmail has milter support
with

$ sendmail -bt -d0.4 </dev/null

If you see MILTER on the lines following "Compiled with:"
then you probably have milter support.

Else, on OpenBSD, set WANT_LIBMILTER=1 in /etc/mk.conf and
recompile and re-install sendmail.


Installing smtp-vilter
----------------------


(Note:  On OpenBSD you can use a port which you can download at
http://ftp.etc.msys.ch/pub/ports/smtp-vilter/).

1)  Unpack the sources

2)  make the binaries.  Use the supplied Makefile for
    OpenBSD and Makefile.linux for Linux systems
	
3)  Install the binaries using make install (use the
    correct Makefile when installing on Linux)

4)  Copy the directory etc/smtp-vilter in the source
    distribution and its content to /etc
		
5)  Edit the files in /etc/smtp-vilter as needed

6)  Add the following line to your sendmail .mc
    configuration:
	
	INPUT_MAIL_FILTER(`smtp-vilter', `S=unix:/var/run/smtp-vilter.sock, F=T, T=S:10s;R:120s'')
    define(`confINPUT_MAIL_FILTERS', `smtp-vilter')

7)  Configure your timeouts to some sane values.  If you use
    Spamassassin make them long enough.  Remember you have to set
	timeouts not only in the smtp-vilter and backend config files,
	but in your sendmail .mc config file as well as shown in the
	example above which configure a sending timeout of 10 seconds
	and a receiving timeout of 120 seconds.
	
7)  Now start your scan engine, smtp-vilter and restart
    sendmail
	
