Upgrading Postfix on Centos (and RedHat)

Postfix is a great e-mail server and you would usually want to keep up with new versions more aggressively than RedHat publishes RPMs for new version. However, I have never succeeded well in compiling Postfix from source with SASL support enabled. The resulting binaries (compiled towards the RedHat SASL rpms) always seem to core dump and mis-behave for reasons I have never understood.However, there is a solution… building an RPM from source and using that RPM for updating.

The process is described in great detail at the Postfix RPM Packages site (http://postfix.wl0.org/), which contains both binary RPMs (without SASL and TLS support) as well as source RPMs.

I found out about this site when I (once again) had tried to compiled from source but kept receiving error messages similar to the ones below which I found out also caused Postfix smtpd to core dump.

postfix/smtpd[27650]: warning: SASL per-connection security setup; invalid parameter supplied
postfix/smtpd[27650]: fatal: SASL per-connection initialization failed

However, when downloading the Postfix 2.3.4 source RPM, building my own binary RPM and updating using that everything worked perfectly. The OS was CentOS 4.4.

Leave a Reply