# 新安装的 Discourse 无法与 Rackspace 邮件配合使用的问题

**URL:** https://meta.discourse.org/t/problems-getting-new-discourse-install-to-work-with-rackspace-email/104653
**Category:** Self-hosting
**Created:** [2018年十二月19日 11:15 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

<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: [2018年十二月19日 11:15 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: [2018年十二月19日 11:31 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)
