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

smtp-vilter requires a sendmail installation with milter support.

If you are using Linux with NPTL, make sure you use a glibc that
dates from Aug 2, 2005 or later.  Older glibc versions handle EINTR
in a way that is incompatible with sendmails libmilter.


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.
