For those curious, since the devs haven't given an answer yet to the future of the Postfix with MySQL in CentOS Plus, here is the patch to add the MySQL support back into Postfix that I used in case anyone needs it. I might have messed up the naming but I tried to pick something relevant that wouldn't be later confused with what they would do too much.
Cheers!
--- postfix.spec 2007-01-25 01:44:52.000000000 -0600 +++ postfix.spec.mysql 2007-06-22 10:05:42.000000000 -0500 @@ -1,5 +1,5 @@ %define LDAP 2 -%define MYSQL 0 +%define MYSQL 1 %define PCRE 1 %define SASL 2 %define TLS 1 @@ -43,7 +43,7 @@ Name: postfix Summary: Postfix Mail Transport Agent Version: 2.2.10 -Release: 1.1.el4 +Release: 1.1.mysql.el4 Epoch: 2 Group: System Environment/Daemons URL: http://www.postfix.org
On Tue, June 19, 2007 7:00 am, centos-request@centos.org wrote:
Date: Mon, 18 Jun 2007 08:18:31 -0500 (CDT) From: "Brent DiNicola" centos@elric.net Subject: [CentOS] CentOSplus Postfix with mysql/pgsql To: centos@centos.org Message-ID: 2024.66.219.47.59.1182172711.squirrel@webmail.elric.net Content-Type: text/plain;charset=iso-8859-1
The lasted version of Postfix in the OS for 4.5 add a .1 to the rpm version which makes it newer than the CentOSPlus version and hence replaces it, any intent to update the 4.5 CentOSPlus package or should I roll my own with mysql included?
4.5 OS Version: postfix-2.2.10-1.1.el4.i386.rpm 4.4/5 CentOSPlus Version: postfix-2.2.10-1.RHEL4.2.mysql_pgsql.c4.i386.rpm
Thanks Brent
Le Fri, 22 Jun 2007 10:14:08 -0500 (CDT) "Brent DiNicola" centos@elric.net écrivait:
For those curious, since the devs haven't given an answer yet to the future of the Postfix with MySQL in CentOS Plus, here is the patch to add the MySQL support back into Postfix that I used in case anyone needs it. I might have messed up the naming but I tried to pick something relevant that wouldn't be later confused with what they would do too much.
About that, is the following is wanted ?
(centosplus activated)
# yum --disablerepo=base list postfix Setting up repositories Reading repository metadata in from local files Available Packages postfix.i386 2:2.2.10-1.RHEL4.2.mys centosplus # yum list postfix Setting up repositories Reading repository metadata in from local files Available Packages postfix.i386 2:2.2.10-1.1.el4 base
So with that settings, if you don't pass "--disablerepo=base", your postfix instance will be replaced with the one in "base" repo with no mysql support :/
What's the "official" way to install postfix with mysql support and be sure that next time it will be updated with a new version of postfix with mysql support ?
Ty ;)
Le Wed, 27 Jun 2007 10:07:55 +0200 Martin Hamant mh@accelance.fr écrivait:
Le Fri, 22 Jun 2007 10:14:08 -0500 (CDT) "Brent DiNicola" centos@elric.net écrivait:
For those curious, since the devs haven't given an answer yet to the future of the Postfix with MySQL in CentOS Plus, here is the patch to add the MySQL support back into Postfix that I used in case anyone needs it. I might have messed up the naming but I tried to pick something relevant that wouldn't be later confused with what they would do too much.
About that, is the following is wanted ?
(centosplus activated)
# yum --disablerepo=base list postfix Setting up repositories Reading repository metadata in from local files Available Packages postfix.i386 2:2.2.10-1.RHEL4.2.mys centosplus # yum list postfix Setting up repositories Reading repository metadata in from local files Available Packages postfix.i386 2:2.2.10-1.1.el4 base
So with that settings, if you don't pass "--disablerepo=base", your postfix instance will be replaced with the one in "base" repo with no mysql support :/
What's the "official" way to install postfix with mysql support and be sure that next time it will be updated with a new version of postfix with mysql support ?
Ty ;)
On another system: # yum --disablerepo=* --enablerepo=centosplus list all | grep postfix postfix.i386 2:2.1.5-4.2.RHEL4.MYSQ installed postfix-pflogsumm.i386 2:2.2.10-1.RHEL4.2.mys centosplus
Result expected (on a working tested system): # yum --disablerepo=* --enablerepo=centosplus list all | grep postfix postfix.i386 2:2.1.5-4.2.RHEL4.mysq installed postfix.i386 2:2.2.10-1.RHEL4.2.mys centosplus postfix-pflogsumm.i386 2:2.2.10-1.RHEL4.2.mys centosplus
Where is the "new" postfix 2.2.10 ? I cleaned up cache with "yum clean all" but no way.
If I grep "postfix" in primary.xml, I can find it... I just can't understand why it's not list on yum output.
md5sum of primary.xml.gz is exactly the same on each system, that's the same metadata. Help would be appreciated :/
Le Wed, 27 Jun 2007 10:43:19 +0200 Martin Hamant mh@accelance.fr écrivait:
On another system: # yum --disablerepo=* --enablerepo=centosplus list all | grep postfix postfix.i386 2:2.1.5-4.2.RHEL4.MYSQ installed postfix-pflogsumm.i386 2:2.2.10-1.RHEL4.2.mys centosplus
Result expected (on a working tested system): # yum --disablerepo=* --enablerepo=centosplus list all | grep postfix postfix.i386 2:2.1.5-4.2.RHEL4.mysq installed postfix.i386 2:2.2.10-1.RHEL4.2.mys centosplus postfix-pflogsumm.i386 2:2.2.10-1.RHEL4.2.mys centosplus
Where is the "new" postfix 2.2.10 ? I cleaned up cache with "yum clean all" but no way.
If I grep "postfix" in primary.xml, I can find it... I just can't understand why it's not list on yum output.
md5sum of primary.xml.gz is exactly the same on each system, that's the same metadata. Help would be appreciated :/
Ok ... a coworker added an exclude=postfix in /etc/yum.conf (I found the issue using yum debug options). We will not modify yum.conf directly anymore ! :)
Sorrryyyy