Content
Amazon SES SMTP
Added by Joseph Bassett over 9 years ago
I’m trying to get the SMTP to work. I am using Amazon’s SES service. I installed OpenProject-CE on a new server today using the packaged version (Because the manual version just barfs like crazy).
Nothing is happening, openproject-ce run check …says it worked but I did not get an email.
Can anyone help me here? More insight into logging? This should be a very standard usage in 2015. Thank you.
Here is my configuration.yml file (I ran service openproject-ce restart after editing it):
default:
email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: true
address: email-smtp.us-east-1.amazonaws.com #Yours might be different
port: 587
domain: CCCCC.com #This needs to be an verifed domain or the "Emission email addre$
authentication: :login
user_name: XXXXXXXXXXXXXXXXXXX
password: XXXXXXXXXXXXXXXXX
rails_cache_store: :memcache
ALSO, to do the above I had to delete all this stuff:
default:
rails_cache_store: <%= ENV.fetch(‘RAILS_CACHE_STORE’) { :memcache }.to_sym %>
session_store: <%= ENV.fetch(‘SESSION_STORE’) { :cache_store }.to_sym %>
email_delivery_method: <%= ENV.fetch(‘EMAIL_DELIVERY_METHOD’) { :sendmail } %>
smtp_address: <%= ENV[‘SMTP_HOST’] %>
smtp_port: <%= ENV.fetch(‘SMTP_PORT’) { 25 }.to_i %>
smtp_domain: <%= ENV.fetch(‘SMTP_DOMAIN’) { ENV[‘HOSTNAME’] } %>
smtp_authentication: <%= ENV.fetch(‘SMTP_AUTHENTICATION’) { :login }.to_sym %>
smtp_user_name: <%= ENV[‘SMTP_USERNAME’] %>
smtp_password: <%= ENV[‘SMTP_PASSWORD’] %>
attachments_storage_path: <%= ENV.fetch(‘ATTACHMENTS_STORAGE_PATH’) { “/var/db/_APP_NAME_/files” } %>
….Do you guys have real documentation or do I just have to constantly comb through a forum???
Replies (1)
Hi Joseph,
I suggest you use the following configuration:
Please be aware that if you editing the
configuration.yml
file directly you have to update this file after every update of the OpenProject-CE package. So I encourage you to leave the defaultconfiguration.yml
as is and set environment variables instead. The OpenProject-CE app comes with a command line tool for that.Please read the chapter OpenProject command line tool to get more information on that.
As a short example
openproject-ce config:set SMTP_ADDRESS=email-smtp.us-east-1.amazonaws.com
will set the SMTP_ADDRESS env variable. Please make sure to restart the OpenProject app to apply the settings you changed (service openproject-ce restart
).If you have any further questions please let me know.
Cheers,
Karsten