All the addresses I use on the forum can send or receive emails via an email client like Thunderbird or Claws Mail.
There are four different addresses, only the first three are concerned by this topic:
the administration one in app.yml: admin@
the notifications one in app.yml: forum@
the reply-to one: reply@
and the one for email publishing: questions@
The notifications obtained via the forum’s mailing list status are sent correctly. And the sending test on the admin/email/server-settings page goes well.
If I set up reply by email, this feature is correctly operational but notifications no longer work.
The previous sending test then fails with the status “501 5.5.4 You are not allowed to send from this address.”
If I disable reply by email, the test passes correctly again.
Can someone explain to me why I have this error and how to correctly set up both notifications and “reply by email”?
That message is from your mail sending service. It’s pretty clear.
You need to send from an email address that you’re smtp server can use. It is something like it’s set to send from example.com and you’re now sending from forum.example.com
Why then in one case is the sending test OK and it is KO when I set up the “reply by email”? I specify that I am not changing anything in the notification configuration.
What happens at the Discourse level in the preparation of the emails?