خادم SMTP يتصل، لكن فشل إرسال البريد

==================== MAIL TEST ====================
For a robust test, get an address from http://www.mail-tester.com/
Sending mail to REDACTED  . . 
Testing sending to callumokane123@gmail.com using support@maniabots.xyz:REDACTED@smtp.zoho.com:587.
SMTP server connection successful.
Sending to callumokane123@gmail.com. . . 
Sending mail failed.

==================== DONE! ====================

And I do not get the activation email for setting up account

Any help is appreciated :stuck_out_tongue_closed_eyes:

My guess is that your forum is called forum.maniabots.xyz and is sending from noreply@forum.maniabots.xyz and your mail server won’t do it. There is a line at the bottom of app.yml that you can change to set the address. You have to edit it by hand.

Can you explain more in detail, my site is located at support.maniabots.xyz and the email is support@maniabots.xyz, my app.yml Config looks fine

## Any custom commands to run after building
run:
  - exec: echo "Beginning of custom commands"
  ## If you want to set the 'From' email address for your first registration, uncomment and change:
  ## After getting the first signup email, re-comment the line. It only needs to run once.
  - exec: rails r "SiteSetting.notification_email='support@maniabots.xyz'"
  - exec: echo "End of custom commands"

I have made sure the lines are uncommented and the email is correct now and I have rebuilt the container but I still receive no verification email

Sorry. That was my best guess.

So, what do I need to do? I can give you access to the server if needed to help me!

Sorry. I’ve done my best here and have no more ideas.

If you want me to solve your problem, then you can see my installation packages: Discourse Installation Packages — Literate Computing, LLC.

I can configure Mailgun for you and it will work. There are a hundred different things that might be causing your custom mail server not to work.

Well, I don’t want to reconfigure my mail stuff with my domain and don’t want to be spending more money for mailgun

You’d not need to change any of your existing mail stuff and Mailgun is free for the first 10K messages/month.

مرحباً بالجميع،
هل عثر أحدكم على حل لهذه المشكلة؟
لقد قمت بإعداد Postfix على مضيف Docker الخاص بي لإرسال البريد الإلكتروني. يعمل بشكل ممتاز عند إرسال رسائل عبر SSH باستخدام أمر mail، لكن حاوية Discourse تفشل مع نفس الخطأ الذي واجهه صاحب المنشور الأصلي. لقد استخدمت تلميحاً من هذا الموضوع: https://meta.discourse.org/t/how-to-set-smtp-config-to-use-localhost/131464، وبفضل ذلك تخلصت من خطأ المصادقة في حاوية Discourse (حيث لا أقدم أي مستخدم/كلمة مرور لـ Discourse للاتصال بخادم البريد الإلكتروني الخاص بي)، لكنني الآن أواجه خطأ “فشل إرسال البريد”. هل لديكم أي أفكار؟

لم يكن لدي أي فكرة أن إعداد خادم البريد الإلكتروني سيكون أصعب جزء في رحلتي مع Discourse… :frowning: تثبيت Discourse مثالي ومفكر فيه بعناية، على عكس أي إعداد لخادم بريد إلكتروني على Linux.

شكراً مقدماً!

لهذا السبب تنص جميع تعليمات التثبيت على عدم محاولة القيام بذلك. تشغيل خادم البريد الإلكتروني أمر صعب للغاية الآن.

أعتقد أن ديسكورش تستخدم اسم المضيف لعنوان البريد الإلكتروني الذي ترسل منه، وخادم البريد الخاص بك لن يرسله. ولكن هناك عشرات الأشياء التي قد تكون خاطئة، وكلها خارج نطاق المساعدة التي يمكنك الحصول عليها هنا.

لأولئك الذين يبحثون عن حل لهذه المشكلة - لقد نجحت في حلها - كان هذا المنشور حاسمًا هنا: How to get Discourse to work with Postfix - #11 by shu_kaze - Linux - Level1Techs Forums

المشكلة كانت أن Discourse لم يتمكن من الاتصال بخادم Postfix الخاص بي من داخل Docker. تقنيًا، يأتي الاتصال من شبكة أخرى، ولم يكن Postfix يحتوي على هذه الشبكة ضمن قائمة الشبكات المسموح بها. كل ما يلزم هو إضافة شبكة Docker (في حالتي 172.17.0.0/16) إلى mynetworks في إعدادات Postfix، وعندها ستعمل الأمور!
أولاً، تحتاج إلى التحقق مما إذا كان Docker يمكنه الاتصال بخادم Postfix من الأساس (أعني ما إذا كان يمكن إنشاء الاتصال قبل تنفيذ فحص الشبكة المسموح بها في Postfix). تذكر التحقق من إعدادات Postfix في inet_interfaces. قمت بتعيين all لأن localhost لن يعمل مع Discourse داخل Docker.
إذا لم ينجح الأمر بعد ذلك - يرجى التحقق من سجلات Postfix. في حالتي، توجد في ملف /var/log/mail.log.

آمل أن يساعد هذا شخصًا ما في المستقبل. استغرق مني أيامًا طويلة لجعل النظام يعمل، ولكن الآن لا أعتمد نهائيًا على أي خدمة بريد مدفوعة (حتى أنني أردت ذلك، لكنني لم أستطع جعلها تعمل) وأستخدمها مجانًا (تذكر إضافة سجلات SPF إلى نطاقك! وإلا فإن Gmail ومزودي البريد الآخرين سيقومون بحظر رسائل البريد الإلكتروني الخاصة بك - بل إنها لن تصل حتى إلى مجلد الرسائل المزعجة، بل سيتم اعتبارها غير قابلة للتسليم).