MT6 SMTP Upgrade
Jump to navigation
Jump to search
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 .