Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Postfix Documentation
Previous Page Home Next Page

Building Milter applications

Milter applications have been written in C, JAVA and Perl, but this document deals with C applications only. For these, you need an object library that implements the Sendmail 8 Milter protocol. Postfix currently does not provide such a library, but Sendmail does.

On some Linux and *BSD distributions, the Sendmail libmilter library is installed by default. With this, applications such as dk-milter and sid-milter build out of the box without requiring any tinkering:

$ gzcat dk-milter-x.y.z.tar.gz | tar xf -
$ cd dk-milter-x.y.z
$ make
[...lots of output omitted...]

On other platforms you have two options:

  • Install the Sendmail libmilter object library and include files. On Linux systems, libmilter may be provided by the sendmail-devel package. After installing libmilter, build the Milter applications as described in the preceding paragraph.

  • Don't install the Sendmail libmilter library, but build the library from Sendmail source code instead:

    $ gzcat sendmail-x.y.z.tar.gz | tar xf -
    $ cd sendmail-x.y.z/libmilter
    $ make
    [...lots of output omitted...]

    After building your own libmilter library, follow the installation instructions in the Milter application source distribution to specify the location of the libmilter include files and object library. Typically, these settings are configured in a file named sid-filter/Makefile.m4 or similar:

    APPENDDEF(`confINCDIRS', `-I/some/where/sendmail-x.y.z/include')
    APPENDDEF(`confLIBDIRS', `-L/some/where/sendmail-x.y.z/obj.systemtype/libmilter')

    Then build the Milter application.

Postfix Documentation
Previous Page Home Next Page