# Problems getting new Discourse install to work with Rackspace email

**URL:** <https://meta.discourse.org/t/problems-getting-new-discourse-install-to-work-with-rackspace-email/104653>\
**Category:** Self-hosting\
**Created:** [December 19, 2018, 11:15am UTC](https://meta.discourse.org/t/problems-getting-new-discourse-install-to-work-with-rackspace-email/104653 "2018-12-19T11:15:25Z")\
**Posts on this page:** 2\
**Page:** 1

## AI-generated summary

The user installed Docker Discourse on a CentOS 7 server, but encountered issues sending activation emails via Rackspace SMTP. Despite confirming connectivity to Rackspace using a `curl` command, emails are not sent and the production log shows a `Net::ReadTimeout` error. The user provided SMTP configuration details, including `DISCOURSE_SMTP_ADDRESS`, `DISCOURSE_SMTP_PORT`, `DISCOURSE_SMTP_USER_NAME`, and `DISCOURSE_SMTP_PASSWORD`, and is seeking help to resolve the issue, wondering if TLS configuration is needed.

<div class="post-metadata">

**Author:** ![madeye](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@madeye](https://meta.discourse.org/u/madeye)\
**Post date:** [December 19, 2018, 11:15am UTC](https://meta.discourse.org/t/problems-getting-new-discourse-install-to-work-with-rackspace-email/104653/1 "2018-12-19T11:15:25Z")

</div>

I have just installed Docker Discourse on a CentOS 7 server - no issue at all getting it configured and started. However when I attempt to register the admin account, although I get the message “We’ve re-sent the activation email to [example@example.com](mailto:example@example.com)” on the page, the email is not sent. I am using Rackspace SMTP via the details outlined on their site (had to remove link on account of posting restrictions for new users)

I get the error:  
Job exception: Net::ReadTimeout  
in /var/www/discourse/log/production.log on the container

This looks like it is a low level connection timeout - I have confirmed that the container has connectivity to Rackspace via the following curl command (had to remove curl command on account of posting restrictions for new users)

This results in the mail being correctly sent and received so the container has connectivity.

I am using the following SMTP configuration in app.yml (had to remove SMTP configuration on account of posting restrictions for new users):

These parameters seem to be correctly replicated to /var/www/discourse/config/discourse.conf on the container following a ‘launcher rebuild app’

Any idea what I am doing wrong with the configuration? Do I need to add any config for TLS?

Any help greatefully received 🙂

Apologies for the lack of information in this post but I kept getting the error “Sorry new users can’t post more than 2 links” despite there only being 1 link in the original post - I had to remove all the config information to get it to post

---

<div class="post-metadata">

**Author:** ![madeye](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@madeye](https://meta.discourse.org/u/madeye)\
**Post date:** [December 19, 2018, 11:31am UTC](https://meta.discourse.org/t/problems-getting-new-discourse-install-to-work-with-rackspace-email/104653/2 "2018-12-19T11:31:44Z")

</div>

DISCOURSE\_SMTP\_ADDRESS: [secure.emailsrvr.com](http://secure.emailsrvr.com)  
DISCOURSE\_SMTP\_PORT: 465  
DISCOURSE\_SMTP\_USER\_NAME: [example@example.com](mailto:example@example.com)  
DISCOURSE\_SMTP\_PASSWORD: password  
#DISCOURSE\_SMTP\_ENABLE\_START\_TLS: true # (optional, default true)
