Job exception: wrong authentication type none


(Daniel Gagnon) #1

I have the error in the title of this post when Discourse tries to send emails (so I couldn’t complete my initial setup). I do not want discourse to try to authenticate at all against the SMTP service so I set this setting in my app.yml:

DISCOURSE_SMTP_AUTHENTICATION: none

Why is it still trying to authenticate?


(Daniel Gagnon) #2

I fixed my issue. I removed “required” settings like username and password that make no sense in an unauthenticated context and rebuilt. It now works just fine!


Can't use 'none' DISCOURSE_SMTP_AUTHENTICATION
(Eli the Bearded) #3

On my config, which also uses unauthenticated email, I “removed” by replacing with a double quoted empty string: ""

I don’t know if that is more or less than needed, since I don’t have a strong sense of YML. But I know that trick works in a lot of computer contexts for “zero length string”.


(Daniel Gagnon) #4

Removing keys in YAML has the same effect as removing them in JSON. It’s up to the code that reads the data to decide what it wants to do with them. I found someone on the forum that removed the keys so I did likewise.


(Anthony O.) #5

Could you explain what you did exactly? Because I think I’ve tried your solution without any success like I explain here.