So here are my tests.
DISCOURSE_SMTP_ADDRESS: my.smtp.server.tld
DISCOURSE_SMTP_PORT: 25
#DISCOURSE_SMTP_USER_NAME: myusername@server.tld
#DISCOURSE_SMTP_AUTHENTICATION: none
#DISCOURSE_SMTP_PASSWORD: ""
DISCOURSE_SMTP_ENABLE_START_TLS: false # (optional, default true)
Here the error is “Job exception: SMTP-AUTH requested but missing secret phrase
”.
DISCOURSE_SMTP_ADDRESS: my.smtp.server.tld
DISCOURSE_SMTP_PORT: 25
#DISCOURSE_SMTP_USER_NAME: myusername@server.tld
DISCOURSE_SMTP_AUTHENTICATION: none
#DISCOURSE_SMTP_PASSWORD: ""
DISCOURSE_SMTP_ENABLE_START_TLS: false # (optional, default true)
Here the error is “Job exception: wrong authentication type none
”.
DISCOURSE_SMTP_ADDRESS: my.smtp.server.tld
DISCOURSE_SMTP_PORT: 25
#DISCOURSE_SMTP_USER_NAME: myusername@server.tld
DISCOURSE_SMTP_AUTHENTICATION: ""
#DISCOURSE_SMTP_PASSWORD: ""
DISCOURSE_SMTP_ENABLE_START_TLS: false # (optional, default true)
Here it’s back to “Job exception: SMTP-AUTH requested but missing secret phrase
”.
DISCOURSE_SMTP_ADDRESS: my.smtp.server.tld
DISCOURSE_SMTP_PORT: 25
DISCOURSE_SMTP_USER_NAME: myusername@server.tld
#DISCOURSE_SMTP_AUTHENTICATION: ""
DISCOURSE_SMTP_PASSWORD: ""
DISCOURSE_SMTP_ENABLE_START_TLS: false # (optional, default true)
Same error “Job exception: SMTP-AUTH requested but missing secret phrase
”.
DISCOURSE_SMTP_ADDRESS: my.smtp.server.tld
#DISCOURSE_SMTP_PORT: 25
#DISCOURSE_SMTP_USER_NAME: myusername@server.tld
#DISCOURSE_SMTP_AUTHENTICATION: ""
#DISCOURSE_SMTP_PASSWORD: ""
#DISCOURSE_SMTP_ENABLE_START_TLS: false # (optional, default true)
Same error.
DISCOURSE_SMTP_ADDRESS: my.smtp.server.tld
#DISCOURSE_SMTP_PORT: 25
#DISCOURSE_SMTP_USER_NAME: myusername@server.tld
DISCOURSE_SMTP_AUTHENTICATION: 'none'
#DISCOURSE_SMTP_PASSWORD: ""
#DISCOURSE_SMTP_ENABLE_START_TLS: false # (optional, default true)
Back to “Job exception: wrong authentication type none
”.
DISCOURSE_SMTP_ADDRESS: my.smtp.server.tld
#DISCOURSE_SMTP_PORT: 25
#DISCOURSE_SMTP_USER_NAME: myusername@server.tld
#DISCOURSE_SMTP_AUTHENTICATION: 'none'
DISCOURSE_SMTP_PASSWORD: "none"
#DISCOURSE_SMTP_ENABLE_START_TLS: false # (optional, default true)
Here I’ve got “Job exception: 504 5.7.4 Unrecognized authentication type
” (that’s at least a reply of the SMTP server I suppose).
DISCOURSE_SMTP_ADDRESS: my.smtp.server.tld
#DISCOURSE_SMTP_PORT: 25
#DISCOURSE_SMTP_USER_NAME: myusername@server.tld
#DISCOURSE_SMTP_AUTHENTICATION: 'none'
DISCOURSE_SMTP_PASSWORD: "none"
DISCOURSE_SMTP_ENABLE_START_TLS: false # (optional, default true)
Same error as last one.
So I’m a bit confused, I think there is really a bug in Discourse that doesn’t support real none
authentication type.
@jomaxro, I’m sure that you didn’t defined DISCOURSE_SMTP_AUTHENTICATION
so plain
is used, and that means that your SMTP server accepts any authentication (username / password) from the Discourse host, am I wrong?