Programster's Blog

Tutorials focusing on Linux, programming, and open-source

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"

The conf folder will be located at the same level as your seafile-server-latest symlink.

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

Last updated: 23rd January 2025
First published: 16th August 2018

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch