Messasy Installation Instructions
-------------------------------

Contentes
---------
  Quick Install
  Requirements
  Installation Procedure
  MTA Setting


Quick Install
-------------
  $ ./configure
  $ make
  # make install


Requirements
------------
  The following software is required.

  * Sendmail (8.10 or later) or Postfix (2.3 or later)
  * libmilter (included to Sendmail)


Installation Procedure
----------------------
1. Configuration

  $ ./configure
        You can customize the build and installation process by supplying
        one or more of the following command line options to "configure":

        [general install options]
        --prefix=PREFIX
                install architecture-independent files in PREFIX.
                The default is "/usr/local".

        --bindir=DIRECTORY
                Specifies the directory for executable programs.
                "PREFIX/bin" by default

        --sysconfdir=DIRECTORY
                The directory for various configuration files,
                "PREFIX/etc" by default.

        [libraries options]
        --with-dgconfig=DIRECTORY
        --with-dgstr=DIRECTORY
        --with-dgmail=DIRECTORY
        --with-pthread=DIRECTORY
        --with-milter=DIRECTORY


2. Build

  $ make


3. Install

  $ su
  # make install


Edit Config File
----------------

Edit $(prefix)/messasy.conf


Configure MTA Settings
----------------------

A. Example Settings For Sendmail

  # vi /etc/mail/sendmail.mc
-------------------------------------------------------------------------
INPUT_MAIL_FILTER('messasy', 'S=inet:20026@127.0.0.1, T=S:10m;R:10m;E:10m')
-------------------------------------------------------------------------

  # cd /etc/mail
  # make


B. Example Settings For Postfix

  # vi /etc/postfix/main.cf
----------------------------------
smtpd_milters=inet:127.0.0.1:20026
milter_default_action=tempfail
milter_connect_timeout = 30s
milter_content_timeout = 300s
----------------------------------

  # /etc/init.d/postfix restart

