How to build latest postfix from source with MySQL and PCRE support on
64 bit Linux (CentOS or RHEL)
First make sure you have Mysql and pcre libraries installed, in not, then install them
#yum install mysql-devel pcre-devel
Then download the latest source for Postfix, cd into the Postix directory,
it should have several fines, and MUST have Makefile.init
From this directory type:
make -f Makefile.init makefiles \
'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -I/usr/include' \
'AUXLIBS=-L/usr/lib64/mysql -lmysqlclient -lz -lm -L/usr/lib64 -lpcre'
Then type make
then "make install"
if will ask several questions, just accept defaults by hitting "Enter"
This is it
Now stop and restart your sendmail
/etc/rc.d/init.d/sendmail stop
/etc/rc.d/init.d/sendmail start
Now check to make sure that mysql and pcre are on the list
of supported posfix maps:
type: /usr/sbin/postconf -m
You should see mysql and pcre in the list of maps
Of cause make sure to properly edit the configuration files
in the /etc/postfix directory.
That's a whole new big article (more like a small book), so I am not going to explain about postix
configuration here.
No comments:
Post a Comment