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.


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


1)  Unpack the sources.

2)  make the binaries.
	
3)  Install the binaries using make install.

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 lines 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.
	
8)  Now start your scan engine, smtp-vilter and restart sendmail
	
