# UNEXPECTED ERROR 500 5.0.0 - no-Email sending

**URL:** https://meta.discourse.org/t/unexpected-error-500-5-0-0-no-email-sending/187934
**Category:** Self-hosting
**Created:** [April 23, 2021, 7:06pm UTC](https://meta.discourse.org/t/unexpected-error-500-5-0-0-no-email-sending/187934 "2021-04-23T19:06:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![olivier.g](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/olivier.g/32/218080_2.png) [@olivier.g](https://meta.discourse.org/u/olivier.g)
#### Post date: [April 23, 2021, 7:06pm UTC](https://meta.discourse.org/t/unexpected-error-500-5-0-0-no-email-sending/187934/1 "2021-04-23T19:06:44Z")

</div>

Hi  
I installed discourse:

- following the offical 30min tutorial
- Ubuntu 20.04
- I get to the “Congratulations, you installed Discourse” screen
- I can register and it says that it sent an e-mail - **but no e-mail reaches my inbox**
- also not, when I click “resend activiation”

**What I tried** according to the "troubleshooting email on a new discourse install):

- Telnet: connection is ok (connected and service ready)
- discourse doctor: “UNEXPECTED ERROR 500 5.0.0 Unknown or unimplemented command.” …This is not a common error. No recommended solution exists. Please report the exact error message above to h ttps://meta.discourse.org/
- e-mail provider logs: there is nothing visible, that an e-mail would have been sent
- Discourse Log:

_Apache_  
_root@ubuntu-2gb-fsn1-3:/var/discourse# tail shared/standalone/log/rails/production.log_  
_lib/middleware/enforce\_hostname.rb:23:in `call'* *lib/middleware/request_tracker.rb:177:in `call’_  
_Rendered exceptions/not\_found.html.erb within layouts/no\_ember (Duration: 0.5ms | Allocations: 137)_  
_Rendered layout layouts/no\_ember.html.erb (Duration: 8.0ms | Allocations: 1280)_  
_Rendered html template (Duration: 0.0ms | Allocations: 2)_  
_Rendered layouts/email\_template.html.erb (Duration: 0.3ms | Allocations: 30)_  
_Delivered mail 8731fbdf-b6c8-49b5-86d5-08d8c32e5ac1@talk.absolutum. net (485.7ms)_  
_Job exception: 500 5.0.0 Unknown or unimplemented command_.  
​

- E-Mail Domain
  - My domain is: talk.absolutum. net
  - the e-mail sending domain is: [norepoy@absolutum.net](mailto:norepoy@absolutum.net) (so this is different from the domain
  - therefore I uncommented the "-exec: rails r “SiteSEttings.notification\_email…” and entered my e-mail in the app.yml

- I rebuild the app
- I also changed the sitesettings.notification e-mail via the command line
- I tried to use with or without TLS (in the yml) and port 587 and 25 (both ports are supported by my e-mail provider (also with rebuild)
- I have no IP Adress in the mail domain
- Results of the discource doctor:  
_==================== MAIL TEST ====================_  
_For a robust test, get an address from h ttp://www.mail-tester.com/_  
_Or just send a test message to yourself._  
_Email address for mail test? (‘n’ to skip) [info@absolutum.net]:_  
_Sending mail to info@absolutum.ne t. . ._  
_Testing sending to [info@absolutum.ne t](mailto:info@absolutum.net) using smtp .socketlabs.com:587, username:server34665 with plain auth._  
_======================================== ERROR ========================================_  
_UNEXPECTED ERROR_  
_500 5.0.0 Unknown or unimplemented command._  
_====================================== SOLUTION =======================================_  
_This is not a common error. No recommended solution exists!_  
_Please report the exact error message above to h ttps://meta.discourse.org/_  
_(And a solution, if you find one!)_

Any idea, what I could try to solve the problem would be appreciated.  
(sorry as new user I was only allowed to use 2 links, to I had to put some spaces in some urls)  
Thanks  
Olivier

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 23, 2021, 9:06pm UTC](https://meta.discourse.org/t/unexpected-error-500-5-0-0-no-email-sending/187934/2 "2021-04-23T21:06:58Z")

</div>

> [@olivier.g](#):
>
> therefore I uncommented the "-exec: rails r “SiteSEttings.notification\_email…” and entered my e-mail in the app.yml

Doh! I missed that. Since discourse-setup now asks for this that note is meaningless. Jeff, I’ll try to submit a PR removing that next week.

Did you put the proper address in discourse setup when it asked? Did you not understand the question? (which i can’t find the exact verbiage for now from my phone).

But that error is very strange, so I rather doubt that the notification email is the issue. What is the mail server? It shows no connection in its logs?

---

<div class="post-metadata">

### Author: ![olivier.g](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/olivier.g/32/218080_2.png) [@olivier.g](https://meta.discourse.org/u/olivier.g)
#### Post date: [April 23, 2021, 9:25pm UTC](https://meta.discourse.org/t/unexpected-error-500-5-0-0-no-email-sending/187934/3 "2021-04-23T21:25:25Z")

</div>

Thanks Jay for your reply.  
Well, that’s what I entered (I removed user and password for mailer and the maxmind license key)  
Does this look right?

Hostname : [talk.absolutum.net](http://talk.absolutum.net)  
Email : [info@absolutum.net](mailto:info@absolutum.net)  
SMTP address : [smtp.socketlabs.com](http://smtp.socketlabs.com)  
SMTP port : 587  
SMTP username : myUsername  
SMTP password : myPassword  
Notification email: [noreply@absolutum.net](mailto:noreply@absolutum.net)  
Let’s Encrypt : [info@absolutum.net](mailto:info@absolutum.net)  
Maxmind license: license-text

---

<div class="post-metadata">

### Author: ![Seal](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@Seal](https://meta.discourse.org/u/Seal)
#### Post date: [August 6, 2021, 11:45pm UTC](https://meta.discourse.org/t/unexpected-error-500-5-0-0-no-email-sending/187934/4 "2021-08-06T23:45:32Z")

</div>

For anyone that wants a final answer:

Edit your app.yml to add this line:

```plaintext
DISCOURSE_SMTP_AUTHENTICATION: login

```

There are mentions around the forum saying that one needs to edit a .rake file, but that is no longer necessary.
