Configure Seafile With SES SMTP
To configure seafile to work with SES email settings, simply add the following settings to conf/seahub_settings.py
.
EMAIL_USE_TLS = True
EMAIL_HOST = 'email-smtp.eu-west-2.amazonaws.com'
EMAIL_HOST_USER = 'xxxxxxxxxxxxxxxxxxxx'
EMAIL_HOST_PASSWORD = 'xxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
EMAIL_PORT = 587
DEFAULT_FROM_EMAIL = "name@mydomain.com"
SERVER_EMAIL = "name@mydomain.com"
Notice that DEFAULT_FROM_EMAIL
and SERVER_EMAIL
need to be set to one of your verified email addresses in SES.
Non EU Users
If you are not using the EU email server, the other endpoints can be found here and are:
- US East (N. Virginia) -
email-smtp.us-east-1.amazonaws.com
- US West (Oregon) -
email-smtp.us-west-2.amazonaws.com
Restart Seahub
For the changes to take effect you need to run:
./seahub.sh stop
./seahub.sh start
To test that everything is working, execute a password reset. A popup will appear and tell you if it managed to send the email or if your configuration is incorrect.
References
First published: 16th August 2018