learning_curve
Golden Pleskian
We want to upgrade both our Postfix and Dovecot packages from the current RPM provided releases.
This thread is about Postfix. We’ll post a separate thread for Dovecot once this one is resolved.
Our current RPM provided Postfix package is 2.10.1 which although backported is still well out of date…We want to upgrade this to the current stable Postfix release which is THIS ONE at the time of writing this thread. Yum update cannot be used to achieve this, so we need some alternative method that works within our existing Plesk / RPM Packages setup (signature)
Having searched around quite a lot first and prior to posting this thread, our current “thinking” for a structured, safe way to do this is as follows:
1) List all the existing RPM packages on the server to check current packages
Having checked this, all yum ‘Development Tools’ plus cyrus-sasl, openssl, pcre and openldap must already exist.
2) Download latest Postfix release into /usr/local/src directory
3) Unpack the file (tar zxvf * will make its own new subdirectory) and cd into the new subdirectory
4) Install any ‘extra’ devel packages that may be needed. In our planned upgrade method these would be:
Clean up the makefiles and build new ones because Postfix won’t be compiled with SASL and SQL support when only using the supplied makefile. At the end, build the whole package:
5) Assuming this all goes okay
6) And finally, run
In order to verify the upgrade is in place and functional
Notes:
We have assumed at 4) that because cyrus-sase openssl pure and openldap already exist on the server, only the devel packages mentioned need to be installed for this to work
We don’t actually use MySQL. We only use MariaDB which is regularaly updated via RPM. Despite this, there is still only a /usr/lib64/mysql directory and no /usr/lib64/mysql directory actually exists. Therefore, any advice on only using the mariadb-devel package and/or the mysql-devel package e.g.... no; you must install both devel packages is very welcome.
No changes to the associated main.cf or master.cf files should be required, as this is compiling from source, so the RPM package number etc will remain as was (we think!)
We’re still very new to this and therefore this could be 100% completely wrong. The benefits of posting this in the forum in advance for input and of course before we actually do it are much appreciated. Finally, if anyone has already done this and/or done the same thing with Dovecot It would be great to read your experiences
This thread is about Postfix. We’ll post a separate thread for Dovecot once this one is resolved.
Our current RPM provided Postfix package is 2.10.1 which although backported is still well out of date…We want to upgrade this to the current stable Postfix release which is THIS ONE at the time of writing this thread. Yum update cannot be used to achieve this, so we need some alternative method that works within our existing Plesk / RPM Packages setup (signature)
Having searched around quite a lot first and prior to posting this thread, our current “thinking” for a structured, safe way to do this is as follows:
1) List all the existing RPM packages on the server to check current packages
Code:
# rpm -qa
2) Download latest Postfix release into /usr/local/src directory
3) Unpack the file (tar zxvf * will make its own new subdirectory) and cd into the new subdirectory
4) Install any ‘extra’ devel packages that may be needed. In our planned upgrade method these would be:
Code:
yum install libdb-devel db4-devel cyrus-sasl-devel openssl-devel pcre-devel openldap-devel mariadb-devel and/or mysql-devel*** (*** see notes at the end)
Code:
make clean
make tidy
make makefiles CCARGS='-fPIC -DUSE_TLS -DUSE_SSL -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DPREFIX=\\"/usr\\" -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/openssl -DHAS_MYSQL -I/usr/include/mysql -I/usr/include/sasl -I/usr/include'
AUXLIBS='-L/usr/lib64 -L/usr/lib64/openssl -lssl -lcrypto -L/usr/lib64/mysql -lmysqlclient -L/usr/lib64/sasl2 -lsasl2 -lpcre -lz -lm -lldap -llber -Wl,-rpath,/usr/lib64/openssl -pie -Wl,-z,relro'
OPT='-O'
DEBUG='-g'
make
Code:
make upgrade
Code:
service postfix restart
Notes:
We have assumed at 4) that because cyrus-sase openssl pure and openldap already exist on the server, only the devel packages mentioned need to be installed for this to work
We don’t actually use MySQL. We only use MariaDB which is regularaly updated via RPM. Despite this, there is still only a /usr/lib64/mysql directory and no /usr/lib64/mysql directory actually exists. Therefore, any advice on only using the mariadb-devel package and/or the mysql-devel package e.g.... no; you must install both devel packages is very welcome.
No changes to the associated main.cf or master.cf files should be required, as this is compiling from source, so the RPM package number etc will remain as was (we think!)
We’re still very new to this and therefore this could be 100% completely wrong. The benefits of posting this in the forum in advance for input and of course before we actually do it are much appreciated. Finally, if anyone has already done this and/or done the same thing with Dovecot It would be great to read your experiences