I am using a local postfix smtp and getting this error:
503 5.5.1 Error: authentication not enabled
DISCOURSE_SMTP_ADDRESS: mail.xxx.net
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: resources@xxx.net
DISCOURSE_SMTP_PASSWORD: password123?
DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)
DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: none
DISCOURSE_SMTP_AUTHENTICATION: “plain”
I added the last 2 options as a last resort but made no effect.
The smtp server works in all testing tools I used, like openssl or swaks from inside the docker container.
root@resources-app:/# swaks --to resources@xxx.net --server mail.xxx.net:587 -tls
=== Trying mail.xxx.net:587...
=== Connected to mail.xxx.net.
<- 220 mail.xxx.net ESMTP Postfix (Ubuntu)
-> EHLO resources-app
<- 250-mail.xxx.net
<- 250-PIPELINING
<- 250-SIZE 10240000
<- 250-VRFY
<- 250-ETRN
<- 250-STARTTLS
<- 250-ENHANCEDSTATUSCODES
<- 250-8BITMIME
<- 250-DSN
<- 250-SMTPUTF8
<- 250 CHUNKING
-> STARTTLS
<- 220 2.0.0 Ready to start TLS
=== TLS started with cipher TLSv1.3:TLS_AES_256_GCM_SHA384:256
=== TLS no local certificate set
=== TLS peer DN="/CN=*.xxx.net"
~> EHLO resources-app
<~ 250-mail.xxx.net
<~ 250-PIPELINING
<~ 250-SIZE 10240000
<~ 250-VRFY
<~ 250-ETRN
<~ 250-ENHANCEDSTATUSCODES
<~ 250-8BITMIME
<~ 250-DSN
<~ 250-SMTPUTF8
<~ 250 CHUNKING
~> MAIL FROM:<root@resources-app>
<~ 250 2.1.0 Ok
~> RCPT TO:<resources@xxx.net>
<~ 250 2.1.5 Ok
~> DATA
<~ 354 End data with <CR><LF>.<CR><LF>
~> Date: Tue, 03 Aug 2021 11:04:12 +0000
~> To: resources@xxx.net
~> From: root@resources-app
~> Subject: test Tue, 03 Aug 2021 11:04:12 +0000
~> Message-Id: <20210803110412.593268@resources-app>
~> X-Mailer: swaks v20181104.0 jetmore.org/john/code/swaks/
~>
~> This is a test mailing
~>
~>
~> .
<~ 250 2.0.0 Ok: queued as 1C4ED8AA
~> QUIT
<~ 221 2.0.0 Bye
=== Connection closed with remote host.