Postfix RPM Upgrade for Red Hat Enterprise Linux 3
One of the servers we work on is running Red Hat Enterprise Linux 3 (RHEL 3).
We needed some features in the later versions of Postfix, rather than the backported version for RHEL 3. There are some RPMs available here:
http://postfix.wl0.org/ftp/official/2.2/RPMS-rhel3-i386
The latest version as of the date of this article is 2.2.5-3. If you want a later version, see this artilce for creating a more recent version based on the source rpm.
Our current version is 2.2.4:
# rpm -qa | grep postfix
postfix-2.2.4-2.rhel3
#
|
Copy your postfix configuration files, which are probably in /etc/postfix, to be safe. The RPM upgrade does preserve your existing config; however, it is better to be careful. Let's upgrade to 2.2.5:
# ls *postfix*.rpm
postfix-2.2.5-3.rhel3.i386.rpm
# rpm -Fvh postfix-2.2.5-3.rhel3.i386.rpm
Preparing... ########################################### [100%]
1:postfix
warning: /etc/postfix/main.cf created as /etc/postfix/main.cf.rpmnew
########################################### [100%]
Shutting down postfix: [ OK ]
Starting postfix: [ OK ]
#
# /etc/init.d/postfix restart
Shutting down postfix: [ OK ]
Starting postfix: [ OK ]
|
Check out the postfix entries in /var/log/maillog:
postfix-script: starting the Postfix mail system
master[15946]: daemon started -- version 2.2.5, configuration /etc/postfix
rpm: 2.2.4-2.rhel3 triggerpostun -- postfix: final number of Postfix packages=1
rpm: 2.2.4-2.rhel3 Upgrading Postfix: using RH alternatives
rpm: 2.2.5-3.rhel3 triggerpostun -- postfix: final number of Postfix packages=1
rpm: 2.2.5-3.rhel3 Upgrading Postfix: using RH alternatives
postfix-script: stopping the Postfix mail system
master[15946]: terminating on signal 15
postfix-script: starting the Postfix mail system
master[16377]: daemon started -- version 2.2.5, configuration /etc/postfix
|
Again, if you want a later version, see this article for creating a more recent version based on the source rpm.
|
|