This section walks through building Postfix with various add-on packages that are mentioned in the book. Before recompiling Postfix with any additional packages, it is important to first clean up from any previous builds. Execute the following:
Now you'll be starting with a clean source tree for your new builds. Each of the examples below takes you through creating a new Makefile. Once you've accomplished that, simply type:
to rebuild Postfix. If your new build is successful, you can upgrade your currently installed Postfix:
If you hadn't previously installed Postfix, use make install instead.
See Chapter 12 for information on Cyrus SASL and Postfix. You can download the source for the Cyrus SASL libraries from the Carnegie Mellon web site at http://asg.web.cmu.edu/sasl/sasl-library.html. Note that this book assumes that you are working with SASL Version 2.x libraries. Follow the instructions for building the Cyrus SASL2 libraries. There is also a SASL_README file that comes with the Postfix distribution.
One issue when compiling Cyrus SASL that affects Postfix is
whether or not to include support for certain Microsoft clients that
authenticate using a nonstandard mechanism. The standard plain-text
authentication mechanism is identified as
PLAIN, but these clients use
LOGIN. If you need to support such clients,
be sure that the libraries are built with the workaround enabled using
--enable-login option when you run ...