Postfix RPM軟體包默認支持LDAP, pcre, mysql, SMTP AUTH (SASL) and TLS!
可以到以下的地址下載一個rpm默認是支持!
Name : postfix Relocations: (not relocatable)
Version : 2.4.3 Vendor: Built on centos-release-5-0.0.el5.centos.2 (rhel-5.0)
Release : 1.rhel5 Build Date: Fri Jun 15 20:43:33 2007
Install Date: (not installed) Build Host: rhel5.wl0.org
Group : System Environment/Daemons Source RPM: postfix-2.4.3-1.rhel5.src.rpm
Size : 10918261 License: IBM Public License
Signature : (none)
Packager : Simon J Mudd <
[email protected]>
URL : http://www.postfix.org
Summary : Postfix Mail Transport Agent
Description :
Postfix is a Mail Transport Agent (MTA), intended to be an alternative
to the widely-used sendmail. This package includes optional support for
LDAP, pcre, mysql, SMTP AUTH (SASL) and TLS.
See http://www.redhat.com/support/docs/faqs/RH-postfix-FAQ/book1.html,
a slightly outdated FAQ, which covers the steps involved in installing
and configuring postfix.
The binary and source rpms I produce are currently available at
http://postfix.WL0.org, ftp://ftp.WL0.org
and the mirrors which can be found at the following URL:
http://postfix.WL0.org/en/mirrors/
This package/specfile was built from postfix.spec.in $Revision: 2.305.2.8 $.
To see the build options used to build this package see the file /etc/postfix/postfix.spec.cf
To use postfix with alternative options download the source package and
rebuild the binary package following the instructions in the source
package or on my web page.
http://mirrors.bevc.net/wl0/ftp/official/2.4/RPMS-rhel5-i386/
《解決方案》
postfix 默認就不支持mysql
你可以安裝一個 postfix.rpm
然後postfix -m 就能看出來
不過默認是支持ldap
# postconf -m
btree
cidr
environ
hash
ldap
nis
pcre
proxy
regexp
static
unix
《解決方案》
以前測試過
《解決方案》
該一下srpm的一個選項,自己編譯器不是更好?
yum install openssl-devel mysql-devel pcre-devel cyrus-sasl-devel rpm-build db4-devel pkgconfig openldap-devel gcc
rpm -ivh /tmp/postfix-2.3.3-2.src.rpm
vim /usr/src/redhat/SPECS/postfix.spec
46 Release: 2_mysql
2 %define MYSQL 1
rpmbuild -bb /usr/src/redhat/SPECS/postfix.spec
yum install perl-Date-Calc
rpm -ivh /usr/src/redhat/RPMS/i386/postfix-*