رسائل لا تصل للمستخدمين الجدد

Hi, so i am new to this installation, i have managed to install the discourse on WHM and it seems everything was working okay until i got this error while sending test mail.

**Started POST "/presence/update" for <my IP> at 2025-01-23 15:08:27 +0000**
**Processing by PresenceController#update as */***
**  Parameters: {"client_id"=>"6bb38285bd0c458a889c15cf6903abc5", "present_channels"=>["/chat-user/core/1"]}**
**Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 1845)**
**Started POST "/admin/email/test" for <my IP> at 2025-01-23 15:08:29 +0000**
**Processing by Admin::EmailController#test as */***
**  Parameters: {"email_address"=>"<myemail>"}**
**Completed 422 Unprocessable Entity in 5042ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 13268)**
**Started POST "/presence/update" for <my IP> at 2025-01-23 15:08:41 +0000**
**Processing by PresenceController#update as */***
**  Parameters: {"client_id"=>"6bb38285bd0c458a889c15cf6903abc5", "present_channels"=>["/chat-user/core/1"]}**
**Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 1795)**

these are my smtp settings:
DISCOURSE_SMTP_ADDRESS:
** DISCOURSE_SMTP_PORT: 587**
** DISCOURSE_SMTP_USER_NAME: info@**
** DISCOURSE_SMTP_PASSWORD: “DO NOT POST PASSWORDS”**
** DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)**
** DISCOURSE_SMTP_DOMAIN: # (required by some providers)**
** DISCOURSE_NOTIFICATION_EMAIL: info@**

so this subdomain is hosted on the same machine, and it is being managed through WHM/Cpanel, exim is there on base machine, mailing is working btw i have tested it already, but from discourse i am not able to use, and tried to telnet from my base machine, and port 25 is working, but when i am using ./discourse-docker mail testing failing from all ports 2525, 25, 587, 465. From inside the container no port is accessible. Just let me know if i am missing something here, or if there is any workaround to use my exim service for discourse.

Just a side note, please format your settings in triple backticks (```), and remove the asterisks.


Is your hosting provider blocking these ports?

إعجابَين (2)

Please could you mention which smtp provider you use (e.g. mailgun) and what the SMTP username email address is? (usually DISCOURSE_SMTP_USER_NAME: postmaster@**)

I would hide that SMTP password.

3 إعجابات

Also, I would change the password for safety!

3 إعجابات

Thanks for the advice but i would not have pasted it here without changing it of course, but that’s just for the show, i am using subdomain here, and before anyone say anything, yes all records are there, mx, spf, dmarc, dkim, everything. i just want to understand what is causing this issue, why it is not able to connect outside of that container, but on host machine everything works.

إعجاب واحد (1)

So it seems it was a very small issue, i added google DNS in /etc/docker/daemon.json file, and restarted docker, destroyed app and started it again and voila mails are going now.

إعجاب واحد (1)