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

مشاهدة النسخة كاملة : السي بانال WHM/cPanel تغيير اي بي ارسال الايميلات Change Outgoing Email IP



Rise Company
06-01-2024, 04:27
السي بانال WHM/cPanel تغيير اي بي ارسال الايميلات Change Outgoing Email IP
How To: Change Outgoing Email IP address on a WHM / cPanel server.
How to add an SPF entry to all domains on the server
How to globally enable SPF/DKIM for pre-existing accounts
How to automatically add additional hosts to the SPF record when creating new accounts
How can I update the SPF and DKIM records globally?

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

لماذا احتاج الى تغيير اى بى ارسال الايميلات من على السيرفر ؟

احيانا تجد ان RBL عمل لك بلوك للاى بى الخاص بك لذلك الحل السريع
تحويل الارسال الى اى بى اخر اضافى لك , حيث فى الغالب قد يكون لديك 2 اي بي
حيث ns1 له اى بى ,ns2 له اى بى اخر غير مستخدم !

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

Sometimes you may find your server IP address on a spam RBL/Blacklist for some reason or another. In this situation, often the fastest fix is to change your outgoing mail IP address.

1. Log into WHM and go to the 'Exim Configuration Manager'

2.Scroll down to the 'Domains and IPs' section, and make sure the options match the ones shown in the screenshot below.

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

من المهم تفعيل Reference /etc/mailips for custom IP on outgoing SMTP connections
اذا لم تفعله هتجد اى ارقام ايبيهات هتضيفها داخل mailips هتحذف بعد الريستارت او اى تحديث
لذلك من المهم تفعيلها لمنه overwrite من النظام انه يعدلها.



Important:


If you disable the Reference /etc/mailhelo for outgoing SMTP HELO setting, the system will overwrite any changes that you make to the /etc/mailhelo file.
If you disable the Reference /etc/mailips for outgoing SMTP connections setting, the system will overwrite any changes that you make to the /etc/mailips file.




3.SSH to the server and edit the /etc/mailips file in your favourite command line text editor. If you're unsure of which text editor to use, 'nano' is the easiest for beginners.



nano /etc/mailips



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

4.Edit the file to make sure it looks like this:

*: 123.123.123.123
(make sure you replace 123.123.123.123 with the actual IP address you wish to send email from).

Screenshot:

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

5.Save the file (in nano, it's CTL + O, then ENTER to save, then CTL + X to exit).
That's it! Your exim mail server will now send email from the IP address you've specified in the /etc/mailips file.

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

Please note:You will need to make sure your domain's SPF record specifies the new IP address or your email may not be accepted by the receiving host. i.e. "v=spf1 a mx ip4:123.123.123.123 ~all"
(make sure you replace 123.123.123.123 with the actual IP address you wish to send email from).

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

ثم غير PTR Reverse DNS اذا كنت تمتلك لوحة تحكم بذلك
اذا لم تكن تمتلكها تواصل مع الشركة التابع لها ليقوموا بذللك على
الاي بي الاول و الثانى كلاهما ! انتبه

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

الخلاصة اهم اعداد هو

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

اذا فعلت Send mail from the account’s IP address
هتجد ان الغى الاختيار الاخير وجعل الاي بي المستخدم هو الخاص بالدومين
قيد يفيد اذا اردت اعطاء اى بى لكل دومين مختلف عن الاخر.

ملحوظة هامة :

يجب ان تتاكد ان كلا الايبيهات لديك مضبوط PTR Reverse على اسم السيرفر
كذلك يجب التاكد من spf بداخله كلا الايبيهات
ثم اختبر الارسال الى gmail وافتح header وشوف كله pass ام لا

هذه الطريقة تعمل 100 %
تم تجربة ارسال الايميلات من خلالنا ولم نواجه اى مشكلة

شاهد ايضا
ما هو WHAT IS PTR RECORD / REVERSE DNS ENTRY (RDNS) (https://www.rise.company/forum/showthread.php/78157-%D9%85%D8%A7-%D9%87%D9%88-What-is-PTR-Record-Reverse-DNS-entry-%28rDNS%29)


المرجع:
https://help.serversaustralia.com.au/s/article/How-To-Change-Outgoing-Email-IP-address-on-a-WHM-cPanel-server
https://support.cpanel.net/hc/en-us/articles/4403818107927-How-to-add-an-SPF-entry-to-all-domains-on-the-server
https://support.cpanel.net/hc/en-us/articles/360060074013-How-to-globally-enable-SPF-DKIM-for-pre-existing-accounts
https://support.cpanel.net/hc/en-us/articles/4417447725335-How-to-automatically-add-additional-hosts-to-the-SPF-record-when-creating-new-accounts
https://support.cpanel.net/hc/en-us/articles/360059707833-How-can-I-update-the-SPF-and-DKIM-records-globally-