Hi all,
I installed nethserver-discourse
on a LOCAL NethServer (titi.org) using Sparkpost as the mail server.
Absolutely everything is working flawlessly.
Instead of Sparkpost, I would like to use my main NethServer (toto.org) directly connected to the internet as the mail server. The Discourse NethServer (titi.org) is on the LOCAL network of toto.org.
app.yml
...
## TODO: The domain name this Discourse instance will respond to
## Required. Discourse will not work with a bare IP number.
DISCOURSE_HOSTNAME: 'forum.titi.org'
...
## TODO: The SMTP mail server used to validate new accounts and send notifications
# SMTP ADDRESS, username, and password are required
# WARNING the char '#' in SMTP password can cause problems!
DISCOURSE_SMTP_ADDRESS: 'mail.toto.org'
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: 'toto'
DISCOURSE_SMTP_PASSWORD: 'password-toto'
DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)
...
./discourse-doctor
...
==================== MAIL TEST ====================
For a robust test, get an address from http://www.mail-tester.com/
Or just send a test message to yourself.
Email address for mail test? ('n' to skip) [toto@toto.org]:
Sending mail to toto@toto.org. . .
Testing sending to toto@toto.org using mail.toto.org:587, username:toto with plain auth.
==================== YML SETTINGS ====================
DISCOURSE_HOSTNAME=forum.titi.org
SMTP_ADDRESS=mail.toto.org
DEVELOPER_EMAILS=toto@toto.org
SMTP_PASSWORD=toto-password
SMTP_PORT=587
SMTP_USER_NAME=toto
LETSENCRYPT_ACCOUNT_EMAIL=
==================== DOCKER INFO ====================
...
======================================== ERROR ========================================
UNEXPECTED ERROR
503 5.5.1 Error: authentication not enabled
====================================== SOLUTION =======================================
I used the same mail setup with Mattermost before and it works correctly.
Questions:
-
How can I solve “
authentication not enabled
” ? -
Is “
username:toto with plain auth.
” above the line =====YML SETTINGS===== has a relation to the problem ?
It looks like there is a missing Postfix setting on toto.org but its mail server is working correctly, I used it since a long time without any problem.
Any suggestion appreciated,
Michel-André