How to update mail-receiver to the release version

If you came here because you noticed this message on your Admin Dashboard:

We detected an outdated version of mail-receiver…

You are in the right place.

Please ssh into your discourse server and run the following two commands to update mail-receiver:

sed -i 's/mail-receiver:.*/mail-receiver:release/' /var/discourse/containers/mail-receiver.yml
/var/discourse/launcher rebuild mail-receiver

For more details please continue reading.

Why do we need to update mail-receiver?

We need to update mail-receiver to a newer version that doesn’t use a deprecated api authentication method.

When you originally setup mail-receiver you were asked to setup a containers/mail-receiver.yml file that contained a hardcoded version number:

base_image: discourse/mail-receiver:x.x.x

In order to receive future updates without manually updating this number you can update the version number to release rather than specifying a version.

Please edit /var/discourse/containers/mail-receiver.yml to use this base image:

base_image: discourse/mail-receiver:release

If you would like you can simply run this command:

sed -i 's/mail-receiver:.*/mail-receiver:release/' /var/discourse/containers/mail-receiver.yml

to edit the file for you.

Then you can run:

/var/discourse/launcher rebuild mail-receiver

to update to the latest version of mail-receiver.

14 Likes