postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Upgrade 2.5.4

Re: Upgrade 2.5.4

From: Victor Duchovni <Victor.Duchovni_at_nospam>
Date: Tue Oct 19 2010 - 17:42:41 GMT
To: postfix-users@postfix.org

On Tue, Oct 19, 2010 at 12:17:23PM -0400, Linux Addict wrote:

> Hello, I am running postfix 2.5.4 and would like to upgrade it to latest
> stable 2.7.0. What is the best way upgrade? Do a clean install and port the
> settings to newer version? Any help is appreciated.

No. Do an upgrade. If installing from source:

        Read the RELEASE_NOTES file for 2.6 and 2.7, then:

        % make
        % su root
        # postfix stop
        # make upgrade
        # postfix start

If installing from a well constructed package:

        Read the RELEASE_NOTES file for 2.6 and 2.7, then:

        # postfix stop
        # some-command-to-install-updated-package
        # postfix start

In either case, save the updated main.cf and master.cf files that
are automatically upgraded as part of the install process.

If the package is not well constructed:

        Read the RELEASE_NOTES file for 2.6 and 2.7, then:

        # postfix stop

        # mkdir -p /etc/postfix/cfsavedir
        # cp /etc/postfix/main.cf /etc/postfix/master.cf \
                /etc/postfix/cfsavedir/

        # some-command-to-install-updated-poorly-constructed-package

        # cp /etc/postfix/cfsavedir/main.cf /etc/postfix/cfsavedir/master.cf \
                /etc/postfix/
        # postfix set-permissions upgrade-configuration

        # postfix start

A package is not well contstructed if it fails to preserve and upgrade
your existing main.cf and master.cf files.

-- Viktor.