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

smtp-vilter requires a sendmail installation with milter support.  If you
run OpenBSD, sendmail has milter support by default.

If you run another operatin system, you can check if your sendmail has
milter support by entering the command

$ 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
----------------------

If you run OpenBSD, install the package mail/smtp-vilter and continue with step
5 below.

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 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 configures a sending
    timeout of 10 seconds and a receiving timeout of 120 seconds.
	
8)  Start your scan engine, smtp-vilter and restart sendmail
