Skip to content

Migrating to v1.1 beta

Kayvan Sylvan edited this page Aug 23, 2017 · 5 revisions

Updating from 1.0-stable mailserver to 1.1-beta

Reference: https://github.com/hardware/mailserver/wiki/Migrating-from-1.0-stable-to-1.1-beta

Checkout master and run make on your ansible control host

git checkout master
git pull
make rebootstrap mailserver

This will update the certbot script with some needed fixes.

Fix your DNS records

Add another CNAME for the server, to add the name spam.domain.tld

Generate the new certificate for spam.domain.tld

ssh deploy@mail.domain.tld
DOMAINS=$(certbot certificates 2>/dev/null|grep Domains|awk '{print $2}')
docker-compose stop nginx
sudo /usr/local/bin/certbot certonly --expand --standalone --agree-tos --rsa-key-size 4096 \
  -m postmaster@domain.tld \
  -d "$DOMAINS","spam.domain.tld"
docker-compose start nginx

Check out the v1.1 branch and run make

git checkout v1.1
touch .bootstrap_done
make

Check that rspamd is running

Visit the http://spam.domain.tld page and that will bring up the RSpamd control panel.

Enter the RSmapd password you set up (stored in docker-compose.yml) to enter the application.

ssh deploy@mail.domain.tld
deploy@sylvan:~$ grep -i rspam docker-compose.yml 
  - RSPAMD_PASSWORD=XXXXXXXX             # Rspamd WebUI password (required)

Final Test

Visit https://www.mail-tester.com and test your setup.

Save your settings

Run the save target:

make save