Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default email server setup #51

Open
RickMohr opened this issue Apr 19, 2017 · 0 comments
Open

Add default email server setup #51

RickMohr opened this issue Apr 19, 2017 · 0 comments

Comments

@RickMohr
Copy link
Contributor

RickMohr commented Apr 19, 2017

People setting up OTM can have trouble configuring their email server. That's not part of OTM, but having a default setup that works would smooth the road. Something like the following (based on our Treezilla provision script and written for an otm-core deployer) should suffice (plus instructions to set SUPPORT_EMAIL_ADDRESS and DEFAULT_FROM_EMAIL). And we should make corresponding updates to the installation wiki page.

  1. Add to local_settings.py:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'localhost'
EMAIL_PORT = 25
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = False
SUPPORT_EMAIL_ADDRESS = '[email protected]'
DEFAULT_FROM_EMAIL = '<[email protected]>'
  1. Install the postfix email server:
sudo DEBIAN_FRONTEND=noninteractive apt-get install postfix
  1. Restart the Django app:
sudo service otm-unicorn restart
  1. Register a new user and see if you get an email
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants