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
- It described at http://postfix.wl0.org/en/building-rpms/
- You have to check the patch such as alternative, different type of mysql support system, etc..