MT6 SMTP Upgrade

From The Network People, Inc. - Wiki
Jump to navigation Jump to search
Mail Toaster 6
Start Installation
FreeBSD Upgrade
DNS Upgrade
MySQL Upgrade
ClamAV Upgrade
AVG Upgrade
SpamAssassin Upgrade
Rspamd Upgrade
dspam Upgrade
Vpopmail Upgrade
Haraka Upgrade
Haproxy Upgrade
webmail Upgrade
Monitor Upgrade
testing

Upgrade Haraka

cd /usr/local/haraka.msimerson
git checkout master
git branch -D toaster
git remote update
git checkout toaster
rsync -acOv --delete --exclude node_modules --exclude .git ./ /usr/local/lib/node_modules/Haraka/
cd /usr/local/lib/node_modules/Haraka && npm install
npm install express
service haraka restart

Upgrade Haraka config

Replace any deprecated plugins with current ones:

cd /usr/local/haraka
sed -i .bak -e 's/watch\/server/watch/' config/plugins
sed -i .bak -e 's/max_unrecognized_commands/limit/' config/plugins

Compare the differences in the latest release:

diff -r /usr/local/lib/node_modules/Haraka/config/ /usr/local/haraka.msimerson/config/

Manually apply changes from the newer config to your local ones.

We're working on a better way to update configs. In the meantime, it might be easiest to move your old config dir out of the way, copy in a new one, and then re-apply any local changes:

cd /usr/local/haraka
mv config config.bak
cp -r /usr/local/lib/node_modules/Haraka/config .