Table Of Contents
Table Of Contents

Setup Email Capabilities (optional)

Last Updated: January 2020

Tethys Platform provides a mechanism for resetting forgotten passwords that requires email capabilities, for which we recommend using Postfix. These instructions are for Debian or Ubuntu systems. For other Linux distributions refer to the Postfix Documentation or search for a guide for installing on your distribution.

1. Install Postfix:

sudo apt-get install postfix

2. Configure Postfix

When prompted select "Internet Site". You will then be prompted to enter you Fully Qualified Domain Name (FQDN) for your server. This is the domain name of the server you are installing Tethys Platform on. For example:

Next, configure Postfix by opening its configuration file:

sudo vim /etc/postfix/

Press i to start editing, find the myhostname parameter, and change it to point at your FQDN:

myhostname =

Find the mynetworks parameter and verify that it is set as follows:

mynetworks = [::ffff:]/104 [::1]/128

Press ESC to exit INSERT mode and then press :x and ENTER to save changes and exit. Finally, restart the Postfix service to apply the changes:

sudo service postfix restart

Several email settings need to be configured for the forget password functionality to work properly. The following exampled illustrates how to setup email in the portal_config.yml file.

EMAIL_BACKEND: django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST: localhost

For more information about setting up email capabilities for Tethys Platform, refer to the Sending email documentation.