المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : السي بانال WHM/cPanel منع ارسال الايميل المخترق من سيرفر اخر soft fail vs hard fail



Rise Company
29-01-2024, 03:22
السي بانال WHM/cPanel منع ارسال الايميل المخترق من سيرفر اخر soft fail vs hard fail
ما الفرق بين علامة ~ وهى Spf Soft fail وعلامة - Spf Hard Fail
What is the difference between an SPF "hard fail" and "soft fail"?
How to setup SPF record on entire server for all domains?
how do I add this SPF record for all accounts, existing and new
SPF RECORDS (VPS & DEDICATED)

https://www.rise.company/upload/uploads/170649135179681.png


~all specifies how hosts should regard servers that are not on the list.
There are a few modifies you can use here:



- all "Hard Fail" means reject all mail that isn't on the allowed list.
~ all "Soft fail" means accept mail not on the allowed list, but treat it with more scrutiny.
? all "Neutral" means accept all mail; there isn't a policy for servers not on the list.


ما الفرق بين علامة ~ وهى Soft fail وعلامة - hard fail فى SPF
What is the difference between an SPF "hard fail" and "soft fail"?

الافتراضى فى SPF هو ان كل الايميلات داخل Email Deliver
بتكون على علامة ~ وهى Soft fail وعلامة - hard fail

علامة ~ وهى Soft fail
تجعل الايميل يخرج من سيرفر اخر غير الاساسى ويصل للجهة الاخر
لكن يكون مكتوب بجانب ان SPF فشل فى التحقق لذلك قد يصل الايميل الى السبام.

By default, the system recommends the ~all entry. This entry instructs servers to accept mail from unmatched hosts, but warn that unauthorized hosts might have sent the messages.

علامة - hard fail
تجعل الايميل لا يخرج من سيرفر اخر غير الاساسى ولا يصل للجهة الاخر
ومفيد لو هكر اخترق الايميل لا يتسطع ارسال SMTP من سيرفر اخر تحميل اسم ايميلاتك

If you enable the Exclude All Other Hosts ("-all" Entry) setting, the SPF feature causes hosts that you do not define to fail.

A hard fail will cause the recipient mail server to reject any messages sent from any location not specified in the SPF record. A soft fail permits the recipient mail server to accept messages sent from any location not specified in the SPF record. Some email services will mark messages that soft fail the SPF check as suspicious or spam. SPF records should only be configured with soft fail while changes to the SPF record are being tested.

SPF examples

A hard fail is designed by - all (hyphen) at the end of the SPF record.



v=spf1 +a +mx +ip4 203.0.113.2 -all


A soft fail is designed by ~ all (tilde) at the end of the SPF record.



v=spf1 +a +mx +ip4 203.0.113.2 ~all


تفعيل اس بي اف SPF علامة - بنظام Hard Fail

التحقق من وضع SPF هل هو Hard Fail ام Soft Fail

Verifying if the SPF record is working

The quickest way to test if major mail providers are accepting your new SPF record is by sending a test email and reviewing the email headers.

من داخل Cpanel او Whm هتجد Email Deliverability

https://www.rise.company/upload/uploads/170649567934321.png

https://www.rise.company/upload/uploads/170649567962082.png

كيف التحقق من قيمة SPF ؟

The mail provider used for this test is Gmail.
You can find instructions on viewing email headers for a Gmail account here:
Google's View your email's full headers (https://support.google.com/mail/answer/29436?hl=en)
Once obtaining a copy of the email headers for the test email, you can find the "Authentication-Results" by scrolling down through the headers. This section will house the results of the SPF Record currently in use by the domain. You'll want this value to be a "pass" and not "fail":

https://www.rise.company/forum/images/imported/2024/01/79.png


Should the value return "fail", then you may want to revisit the record and adjust the value once more. cPanel's Email Deliverability interface offers a recommended SPF record if you're unsure of how to compose this record.

شاهد ايضا
شرح SFP و DKIM و كيفية التحقق من عملها PASS (https://www.rise.company/forum/showthread.php/29053-%D8%B4%D8%B1%D8%AD-SFP-%D9%88-DKIM-%D9%88-%D9%83%D9%8A%D9%81%D9%8A%D8%A9-%D8%A7%D9%84%D8%AA%D8%AD%D9%82%D9%82-%D9%85%D9%86-%D8%B9%D9%85%D9%84%D9%87%D8%A7-Pass)شرح تفعيل SFP و DKIM فى WHM و CPANEL مع التحقق من عملها PASS (https://www.rise.company/forum/showthread.php/29054-%D8%B4%D8%B1%D8%AD-%D8%AA%D9%81%D8%B9%D9%8A%D9%84-SFP-%D9%88-DKIM-%D9%81%D9%89-Whm-%D9%88-Cpanel-%D9%85%D8%B9-%D8%A7%D9%84%D8%AA%D8%AD%D9%82%D9%82-%D9%85%D9%86-%D8%B9%D9%85%D9%84%D9%87%D8%A7-Pass)
المرجع:
https://support.cpanel.net/hc/en-us/articles/360051455074-What-is-the-difference-between-an-SPF-hard-fail-and-soft-fail
https://support.cpanel.net/hc/en-us/articles/360048542814-How-do-I-verify-my-SPF-records-are-working
https://docs.cpanel.net/cpanel/email/email-deliverability-in-cpanel/?_ga=2.243913990.2051355014.1706333976-859198257.1696885008
https://support.cpanel.net/hc/en-us/community/posts/19160885676055-How-to-setup-SPF-record-on-entire-server-for-all-domains
https://copyprogramming.com/howto/how-to-set-properly-a-spf-record-in-whm