[CentOS] Postfix and mysql

Brent DiNicola centos at elric.net
Fri Jul 6 15:22:02 UTC 2007


> Date: Thu, 05 Jul 2007 16:48:55 +0200
> From: Jordi Espasa Clofent <sistemes.llistes at intergrid.cat>
> Subject: Re: [CentOS] Postfix and mysql
>
>
>> centosplus contains postfix-mysql rpm, so just enable that repo and use
>> yum to install it.
>>
>
> Not provided int CentOS 5:
>
<snip>
> Nothing to do
>
> [root at ares Desktop]# cat /etc/redhat-release
> CentOS release 5 (Final)
>
> I don't understand why a server-oriented distro like CentOS (RHEL)
> doesn't provide support to _most_ popular opensource database to the
> _most_ popular opensource SMTP server. I'm very stunned with it.
>
>

Just like the package in 4.5 CentOS, adding mysql is very simple and easy
to repackage as an rpm. Just install SRPM then patch the postfix.spec as
shown below and build the rpm. Will make the following rpms:

postfix-2.3.3-2.mysql.el5.i386.rpm
postfix-pflogsumm-2.3.3-2.mysql.el5.i386.rpm

Might not be named right but will work.

### CUT HERE ###
--- postfix.spec        2007-07-06 10:07:08.000000000 -0500
+++ postfix.spec.orig   2007-07-06 10:05:00.000000000 -0500
@@ -1,5 +1,5 @@
 %define LDAP 2
-%define MYSQL 1
+%define MYSQL 0
 %define PCRE 1
 %define SASL 2
 %define TLS 1
@@ -43,7 +43,7 @@
 Name: postfix
 Summary: Postfix Mail Transport Agent
 Version: 2.3.3
-Release: 2.mysql.el5
+Release: 2
 Epoch: 2
 Group: System Environment/Daemons
 URL: http://www.postfix.org
#### CUT HERE #####


HTH,

Brent
-- 
Brent DiNicola
<centos .AT. elric.net>





More information about the CentOS mailing list