نظام البريد لا يعمل على الرغم من اختباره باستخدام telnet ومنصات أخرى

For some reason, I am not getting a mail from my discourse setup.

I already tested my SMTP settings and they are working for other platforms

Also tested it with Telnet.

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

See Troubleshooting email on a new Discourse install.

A common problem is that Discourse is sending from an address that your server will not accept.

4 إعجابات

I am in a similar situation. Installed, website responds, registration e-mail never gets there. Tested sending e-mail from the discourse server, from inside the app container using the same configuration/credentials => works, test message sent and received correctly. Running doctor gives me:

Sending mail to my_correct_user@my_correct_domain. . . 
Testing sending to my_correct_user@my_correct_domain using correct_smtp_server_name:465, username:correct_smpt_user@correct_sender_domain with plain auth.
======================================== ERROR ========================================
                                    UNEXPECTED ERROR

Net::ReadTimeout

====================================== SOLUTION =======================================
This is not a common error. No recommended solution exists!
[....]

I tried switching port to 587, then the Net::ReadTimeout doesn’t show in the logs but still nothing gets sent. What next? What is the correct content of DISCOURSE_SMTP_DOMAIN ? That’s the only thing I am still suspicious about.

same issue here. Please help

If you’re getting a read timeout it’s because the outgoing smtp port is blocked. You’ll need to get it unblocked or use another port.

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

أنا شخصياً أستخدم منفذ submission على هذا الخادم حتى لا يتم حظره بالتأكيد. و - صحيح - عند استخدام 587، لا يظهر خطأ المهلة. بما أنه ليس لدي طريقة لإجراء تغييرات على تكوين الخادم، فهل يجب أن أفهم أن SMTPS فقط هو المدعوم؟

المنفذ 587 لديه بروتوكول نقل النص التشعبي الآمن الصريح (STARTTLS) ويمكن تكوين خادم البريد للقبول على هذا المنفذ دون الحاجة إلى بروتوكول نقل النص التشعبي الآمن، لذلك يمكنك القيام بإرسال بريد غير مشفر عبر هذا المنفذ.

(المنفذ 465، الذي تم إيقافه الآن إلى حد ما، كان لديه بروتوكول نقل النص التشعبي الآمن الضمني ولم يكن لديك خيار هناك).

حسنًا، الخادم مُعد للعمل مع TLS صريح على منفذ الإرسال (587). الآن، ما الذي يحتاج المرء إلى فعله في إعدادات Discourse لجعله يعمل عبر 587 مع TLS؟ هل يجب/لا يجب أن يعمل فورًا؟

يوجد DISCOURSE_SMTP_ENABLE_START_TLS وهو افتراضي true.