# Issues with unauthenticated SMTP server on new install

**URL:** <https://meta.discourse.org/t/issues-with-unauthenticated-smtp-server-on-new-install/33323>\
**Category:** Self-hosting\
**Created:** [2015 年9 月 15 日 21:55 UTC](https://meta.discourse.org/t/issues-with-unauthenticated-smtp-server-on-new-install/33323 "2015-09-15T21:55:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![PhilipHarrison](https://avatars.discourse-cdn.com/v4/letter/p/df705f/32.png) [@PhilipHarrison](https://meta.discourse.org/u/PhilipHarrison)\
发布日期： [2015 年9 月 15 日 21:55 UTC](https://meta.discourse.org/t/issues-with-unauthenticated-smtp-server-on-new-install/33323/1 "2015-09-15T21:55:00Z")

</div>

Hey guys wonder if somebody can help me out. I’m trying to deploy my first Discourse instance and am having issues with getting the activations emails working. The Discourse server is the pre-built HowToInstallDiscourse EC2 AMI. My SMTP server is a very basic SMTP relay that accepts anonymous connections (it’s in a closed off VLAN), is used by a good few other servers and has been working for 12+ months so no issues with it. I’m able to telnet to the SMTP server from the Discourse host.

The SMTP in app.yml looked like this on my first attempt -`
DISCOURSE_DEVELOPER_EMAILS: ‘me@mydomain.ie’`

`

TODO: The domain name this Discourse instance will respond to
DISCOURSE_HOSTNAME: ‘discourse.mydomain.ie’

TODO: The mailserver this Discourse instance will use
`

`DISCOURSE_SMTP_ADDRESS: smtprelay.mydomain.ie # (mandatory)
DISCOURSE_SMTP_PORT: 25 # (optional)
DISCOURSE_SMTP_USER_NAME: discourse@mydomain.ie # (optional)
#DISCOURSE_SMTP_PASSWORD: pa$$word # (optional)`  
The outcome of this was an error like “Job exception: SMTP-AUTH requested but missing secret phrase” in my production.log. This makes sense as I had specified a username but no password and my SMTP server did not support authentication either. I did see the Discourse host show up in the logs of my SMTPRELAY server and disconnect almost immediately, most likely because Discourse didn’t see the authentication verb in the SMTP helo.

So did some reading on here and came up with the following app.yml - `
DISCOURSE_DEVELOPER_EMAILS: ‘me@mydomain.ie’`

`

TODO: The domain name this Discourse instance will respond to
DISCOURSE_HOSTNAME: ‘discourse.mydomain.ie’

TODO: The mailserver this Discourse instance will use
DISCOURSE_SMTP_ADDRESS: smtprelay.cwsi.ie # (mandatory)
DISCOURSE_SMTP_PORT: 25 # (optional)
DISCOURSE_SMTP_AUTHENTICATION: ‘none’
#DISCOURSE_SMTP_ENABLE_START_TLS: ‘false’
#DISCOURSE_SMTP_USER_NAME: discourse@cwsi.ie # (optional)
#DISCOURSE_SMTP_PASSWORD: pa$$word # (optional)

The CDN address for this Discourse instance (configured to pull)
`

`#DISCOURSE_CDN_URL: //discourse-cdn.example.com`  
Now I’m seeing errors like this in the production.log “Sent mail to newuser@mydomain.ie (30007.8ms), Job exception: execution expired” and I see no attempted SMTP sessions on the SMTP relay server at all. I’ve issued rebuilds and rebooted the box numerous times to no effect.

What other steps can I take to troubleshoot this issue?

Thanks for any help!

---

_[View the full topic](https://meta.discourse.org/t/issues-with-unauthenticated-smtp-server-on-new-install/33323)._
