NetAdminTools.com
 
SignalQ Sites:
NetAdminTools - Coprolite - NoNIC - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - MCJ - FixRambler
Categories:
GNU/Linux | Homebrew designs | Perl | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS | Hail Support


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·REALbasic
·All Categories


Postfix Source RPM Upgrade for Red Hat Enterprise Linux 3
Topic: Email   Posted:2005-12-10
Printer Friendly: Print

spacerspacer
In this article, we upgraded Postfix to 2.2.5 via RPMs; however, if a later version is needed, and you are running Red Hat Enterprise Linux Version 3 (RHEL 3), an RPM needs to be created from source. There is a source RPM for 2.2.6 available here:
http://postfix.wl0.org/ftp/official/2.2/SRPMS/

To use the RPM, install it:

[root@s root]# rpm -i postfix-2.2.6-1.src.rpm
warning: user sjmudd does not exist - using root
.
.
.
warning: group sjmudd does not exist - using root

Make sure you trust the source of your RPM, and verify sigs if possible. Create a new spec file:

[root@s root]# cd /usr/src
[root@s src]# cd redhat
[root@s redhat]# ls
BUILD  RPMS  SOURCES  SPECS  SRPMS
[root@s redhat]# ls SOURCES
make-postfix.rpm
make-postfix.spec
postfinger-1.29
postfix-2.0.16-20031026-multiline-greeting.patch
postfix-2.2.5-vda.patch.gz
postfix-2.2.6.tar.gz
postfix-aliases
postfix-chroot.sh
postfix-dict_cdb-1.1.11-20021104.tar.gz
postfix-etc-init.d-postfix
postfix-files.patch
postfix-get-distribution
postfix-libspf2-2.2.0-5.patch
postfix-libspf2.README
postfix-makedefs.patch
postfix-pam.conf
postfix-saslauthd.conf
postfix-sasl.conf
postfix.spec.in
README-Postfix-SASL-RedHat.txt
[root@s redhat]# sh SOURCES/make-postfix.spec
Creating Postfix spec file: /usr/src/redhat/SPECS/postfix.spec
Checking rpm database for distribution information...
- if the script gets stuck here:
check and remove /var/lib/rpm/__db.00? files
Distribution is: redhat-release-3ES-13.5.1 (rhel-3.0)
adding LDAP support to spec file
adding TLS support to spec file

Build the RPM:

[root@s redhat]# rpmbuild -ba SPECS/postfix.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.50152
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
.
.
.
Prefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/postfix-2.2.6-buildroot
Wrote: /usr/src/redhat/SRPMS/postfix-2.2.6-1.rhel3.src.rpm
Wrote: /usr/src/redhat/RPMS/i386/postfix-2.2.6-1.rhel3.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/postfix-debuginfo-2.2.6-1.rhel3.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.69667
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd postfix-2.2.6
+ umask 022
+ '[' -n /var/tmp/postfix-2.2.6-buildroot -a /var/tmp/postfix-2.2.6-buildroot '!=' / ']'
+ rm -rf /var/tmp/postfix-2.2.6-buildroot
+ exit 0
[root@s redhat]#

Upgrade from 2.2.5 to 2.2.6:

# rpm -Fvh /usr/src/redhat/RPMS/i386/postfix-2.2.6-1.rhel3.i386.rpm
Preparing...                ########################################### [100%]
1:postfix                warning: /etc/postfix/access created as 
/etc/postfix/access.rpmnew
warning: /etc/postfix/main.cf created as /etc/postfix/main.cf.rpmnew
########################################### [100%]
Shutting down postfix: [  OK  ]
Starting postfix: [  OK  ]

Verify the version in /var/log/maillog:

postfix-script: stopping the Postfix mail system
master[1231]: terminating on signal 15
postfix-script: starting the Postfix mail system
master[1887]: daemon started -- version 2.2.6, configuration /etc/postfix





Please read our Terms of Use
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2008 NetAdminTools.com

Created by:
MCJ
MCJ CMS