أواجه صعوبة كبيرة في جعل البريد الإلكتروني يعمل مع خادم Discourse الجديد الخاص بي.
أستخدم DigitalOcean للاستضافة. لا يبدو أن هناك أي مشكلة هناك؛ الخادم يعمل، وأستطيع تسجيل الدخول.
أستخدم G Suite كبريد إلكتروني للإدارة، لكنني لا أستخدمه لمعالجة بريد الموقع.
أستخدم Namecheap لخدمات DNS وتسجيل النطاق.
أستخدم SendGrid كمزود SMTP للموقع. جربت كل تركيبة تحقق ممكنة يمكنني التفكير فيها: باستخدام النطاق الرئيسي، باستخدام النطاق الفرعي، بإزالة أسماء النطاقات ومعلومات DNS التي زودني بها SendGrid لإدخالها في Namecheap، وإضافة النطاق إلى قائمة السماح في G-suite (هل هذا ضروري أصلاً؟).
يمكنني إرسال رسائل البريد الإلكتروني. أستطيع من خلال SendGrid رؤية أن رسائل البريد الإلكتروني التجريبية تم إرسالها من Discourse، لكنها لا تصل أبداً. تظهر المعلومات التالية في رسالة الخطأ على SendGrid:
قام خادم Gmail بحظر هذه الرسالة من التسليم. بينما لن نحاول إرسال هذه الرسالة مرة أخرى، سنحاول إرسال رسائل جديدة إلى هذا العنوان في المستقبل.
يمكنك عرض جميع العناوين في قائمة [الحظر] الخاصة بك.
الاستجابة الكاملة من خادم Gmail:
550 5.7.1 البريد غير المصادق عليه من do.c غير مقبول بسبب سياسة DMARC 5.7.1 للنطاق. يرجى الاتصال بمسؤول نطاق do.c إذا كانت هذه رسالة بريدية شرعية. يرجى زيارة 5.7.1 للتعرف على مبادرة DMARC. m55-v6si4266550qtc.214 - gsmtp
هل هذا يضيق نطاق مشكلتي ليقتصر حصرياً على SendGrid والتحقق من النطاق، أم أن هناك شيئاً آخر؟ على أي حال، لا يريد SendGrid أبداً إتمام عملية التحقق بمجرد لصق المعلومات التي زودني بها في قسم DNS الخاص بي في Namecheap.
As it says, Your dmarc record is not correct.
You can find the correct dmarc value in sendgrid and that should be updated into your dns.
Please correct it or contact sendgrid for assistance.
Just by chance, is it a one-click install app from DO?
@itsbhanusharma, yes. I did the one-click Discourse setup. Everything went very smoothly up until the SMTP setup. I’ve put in a ticket with SendGrid and am waiting for their response.
When going through the setup wizard I chose for the system to handle mail so the one G Suite account I have to accompany the site info@mydomain.com is not flooded with messages, if I’m even understanding it correctly.
@itsbhanusharma, I made your suggested changes and it worked, although the message did go to my spam folder and is still showing “via SendGrid”. I’m guessing the way to solve that is through domain verification with SendGrid and that will be between me and them.
Great. Thanks so much for the help. Now I’m wondering if I need to go back and undo some of the things I did like whitelisting my G Suite account with SendGrid and stuff like that.
Not immediately, first step that I’d take is to make sure sendgrid is happy with my domain and then I’d test the quality of emails sent using mail-tester.com or similar service.
Once that’s all fixed then only I’d lax any whitelist
As it’s set up now, while going through all the various forums trying to troubleshoot my problem I followed one tutorial that had me go into my G Suite settings and whitelist Digital Ocean, not SendGrid like I said. Because that wasn’t related to my actual problem is it necessary anymore or could it cause any problems in the future?
It actually wasn’t even whitelisting. It was SMTP relay service where I added my droplet IP address.
While it won’t really cause any problems as long as you retain the IP it can possibly cause spam whitelist if you leave the IP and other owner is a notorious spammer.
So it’s okay to remove it. Also, DO is not sending emails from it’s own IP either. Those are sent from sendgrid.
While I’m able to get emails delivered to people who register for the forum now (albeit in their spam folder), I now am having trouble sending admin emails. When I attempt to make a member of the forum and admin, I get the message saying to check my email. My single G suite email address is info@mydomain.com. SendGrid can never seem to send a message from info@mydomain.com to info@mydomain.com. This is quite a problem because I can’t make anyone else an admin because I can never finish the process. There error I get from SendGrid is:
The mydomain.com server blocked this message from being delivered. While we won’t try to send this message again, we will attempt to send new messages to this address in the future.
You can view all addresses in your Blocks suppression group. Learn more.
I’m using Namecheap, so I had set up all of my SendGrid information CNAME records, but in the “Mail Settings” portion of the Advanced DNS page I didn’t have anything selected. Once I selected Gmail everything began to work. I swear I’d thought I had read something about if you’re setting up SendGrid you don’t need anything the Mail Settings section. Things appear to be working now.