Quantcast
Viewing latest article 5
Browse Latest Browse All 10

Rebuild postfix with mysql support from source rpm

Rebuild postfix with mysql support from source rpm…
Assume that you have rpm build development environment and required development packages like mysql-devel. If not yet done those, install them first through yum.

Checking lib support

  • Which lib has already supported with your installed postfix?

# ldd /usr/libexec/postfix/smtpd
libmysqlclient.so.15 => /usr/lib/mysql/libmysqlclient.so.15
libssl.so.6 => /lib/libssl.so.6
......

  • How to check whether your installed postfix have SSL support?

# ldd /usr/libexec/postfix/smtpd | grep libssl
libssl.so.6 => /lib/libssl.so.6

  • How to check whether your installed postfix have mysql support?

# ldd /usr/libexec/postfix/smtpd | grep libmysql
libmysqlclient.so.15 => /usr/lib/mysql/libmysqlclient.so.15

Fedora Core Source RPM

  • Fedora shipped Postfix by default does not support MySQL
  • You have to rebuild from Fedora distribution source rpm to support MySQL
  • Get your Postfix source rpm from Fedora Core distribution archive

# cd /usr/src/redhat/SRPMS
# wget ftp://fedora.core.version/postfix-*.src.rpm
# rpm -ivh postfix-*
# cd /usr/src/redhat/SPECS
# vi postfix.spec
define MySQL 1
# rpmbuild -ba postfix.spec
# cd /usr/src/redhat/RPMS
# ll
# rpm -ivh postfix-*

Using wl0.org Source RPM


Viewing latest article 5
Browse Latest Browse All 10

Trending Articles