User:Iilluzion: Difference between revisions

From Alpine Linux
(Upgrading ISP Mail server from 1.10.x to 2.x)
 
(removed on request)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Category:mail]]
== A Full Service Mail Server Upgrade to 2.x ==


It's assumed that currently your server is running under Alpine Linux 1.10.x. The goal of this document is to describe how to upgrade "ISP Mail Server" to run under Alpine Linux 2.2. An upgrade process involves several significant changes in application configuration and database data and schema handling. Applications that come with Alpine Linux 2.x have a lot of bug and security fixes as well as new functionality. Upgrading of some components will require changing configurations files, update database schema and export/import data.
== System Preparations before upgrade ==
'''IMPORTANT NOTE''': Please perform full system backup including system configuration and user data. Make sure sure that backup is valid.
We recommend you to stop all user services permanently until system fully upgraded and tested. While system tests are being perform block user access for all users.
'''NOTE:''' One of the ways to block user access is to use firewall rules.
Remove services from auto-start:
rc-update del lighttpd dovecot postfix freshclam clamd clamsmtpd slapd postgresql cron
Stop services except ''postfesql'':
/etc/init.d/lighttpd stop
/etc/init.d/slapd stop
/etc/init.d/dovecot stop
/etc/init.d/postfix stop
/etc/init.d/clamsmtpd stop
/etc/init.d/freshclam stop
/etc/init.d/clamd stop
/etc/init.d/cron stop
== Dump PostreSQL databases ==
Since version 9 has significant changes in compare to version 8 you must dump all postgresql databases and later restore data after postgresql is upgraded.
Create a directory where data will be dumped:
mkdir <Path to datadump directory>
chown postges <Path to datadump directory>
Login as ''postgres'' and dump data:
su - postgres
cd <Path to datadump directory>
pg_dumpall > postgresql.bak.8.4.2
exit
Stop PostgreSQL services:
/etc/init.d/postgresql stop
'''IMPORTANT NOTE''': Please perform backup of dumped data and PostgeSQL data directory ''/var/lib/postgresql/8.4''. Make sure sure that backup is valid.
== Upgrading Alpine Linux ==
Follow instructions described on page: http://wiki.alpinelinux.org/wiki/Upgrading_Alpine_-_v1.9.x.
'''NOTE:''' We recommend to upgrade to Alpine Linux version not eralier than 2.2, since release 2.2 has a lot of important fixes for bugs and security issues.
* Upgrading Alpine Linux
:* Notes about systems running in RAM
* Upgrading Ligihttpd and PHP
* Upgrading Postgress
:* Export and Import databases
* Upgrading Postfix
* Upgrading Dovecot
:* Changing main configuration
:* Changing Quota configuration
* Upgrading Virus Scanning
* Upgrading RoundCube Webmail
:* Upgrading database schema
* Upgrading OpenLDAP
* Final notes

Latest revision as of 10:36, 3 May 2011