حل مشكلة الارسال في السيرفرات الكاملة وسيرفرات Vps
بسم الله الرحمن الرحيم
حل مشكلة الارسال في السيرفرات بحيث ان البعض يواجه مشاكل اثناء ارسال الرسائل الى الابنوكس في سيرفره وراح اذكر طرق حل هذه المشكلة وان شاءلله تنحل المشكلة معاكم
الحل لكل من سيرفرات كاملة والسيرفرات VPS
اول خطوة نقوم بتحديث yum
كود:
yum update
بعد ذلك نقوم بعملية حذف للاكزايم :
كود PHP:
rm -rf /etc/exim.conf
بعد ذلك نعمل تحديث للاكزايم :
كود PHP:
/scripts/eximup --force
بعد ذلك امر اصلاح البريد :
كود:
/scripts/mailperm
بعد ذلك نغير اي بي الارسال
نفتح الاكزايم :
كود PHP:
pico /etc/exim.conf
نسوي بحث عن :
كود PHP:
driver = smtp
نروح لعند
كود:
interface =
نحذف كامل ونستبدله بت :
كود PHP:
remote_smtp:
driver = smtp
interface = 223.22.33.66
مع تغير الا ي بي 223.22.33.66 الى اي بي السيرفر ويفضل اختيار اي بي غير الاساسي
بعد الانتهاء نقوم بحفظ الملف ctrl+x
آخر شي ريستارت للاكزيم
كود PHP:
service exim restart
بعد ذلك اعادة بناء RPM
كود:
rm -f /var/lib/rpm/__*
chattr -R -i /var/lib/rpm
rpm --rebuilddb
بعد ذلك نروح نضيف SPF لحل مشكلة الارسال بالسيرفر :
هذا تعريف بسيط ل SenderID و SPF Record قبل الدخول في حل المشكلة :
Sender ID بروتوكول يقوم بمساعدة في تحديد المرسل الأصلي و التحقق من مصداقية النطاق لتجنب رفض الرسالة وبالتالي وضع النطاق في القائمة السوداء هذا في حالة اذا كان Sender Id يختلف عن الأصلي المسجل في سجلات الهوتمايل ، ياهو ، جمايل ... و SPF يساعد في التحقق من SenderID الأصلي وضمان أن لا أحد يرسل باسم نفس النطاق في مزود آخر وتحت Sender ID غير مدرج في السجلات لهذا النطاق . ولا شك أن اغلب الي حجزو سيرفرات جديدة يعانون من مشكلة الإرسال وذلك لان ال Sender ID المسجل في سجلات الهوتمايل يختلف عن الأصلي في حالة تغيير السيرفر أو أنه غير مسجل اصلا أي هو يحتاج إلى تسجيل SenderID جديد في حالة حجز نطاق جديد .
في هذه الحالة يكفي تعريف النطاق ب SPF Record مضبوط لمساعدة في تسجيل وادراج Sender ID حديث لهذا الدومين لتجنب رفض الرسائل المرسلة منه واعتبارها غير قانونية .
الشرح :
هذا برنامج يساعد في تحديث جميع مواقع السيرفر واضافة SPF Record بسيط وعام :
كود:
wget http://www.sa3eka.com/image/server/css/spf.sh
لتشغيل السكربت :
كود:
sh spf.sh
بعد ذلك ندخل الى لوحة التحكم WHM :
Main >> DNS Functions >> Edit Zone Templates
ونقوم باضافة SPF template في كل من
standard template
simple
نفتح الملفين ونضيف في اخر السطر :
كود:
%domain%. IN TXT "v=spf1 a mx ~all"
بعد ذلك نروح للدعم الفني لعمل تبليغ بالعملية :
https://support.msn.com/eform.aspx?p...ail&ct=eformts
اكتب باستعراض الامر التالي :
كود:
cat /root/domain.txt
و
كود:
cat /root/spf.txt
وانسخ المحتوى الى المكان المناسب كما في الصورة التالية :
https://www.rise.company/forum/clear.gif
بعد ذلك ادخل للموقع التالي :
https://support.msn.com/eform.aspx?p...rpp&ct=eformts
وهذا شرح لطريقة وضع البيانات :
https://www.rise.company/forum/clear.gif
https://www.rise.company/forum/clear.gif
ثم تضغط على الزر Submit
سوف تصلك رسالة منهم تطلب منك تخبر الداتا سنتر ISP أو مزود الأنترنت الخاص بالسيرفر بأن يرسل رسالة يكون عنوانها هو رقم التذكرة اللي فتحت معهم الى البريد التالي
[email protected].
انسخ الرسالة اللي وصلتك منهم وارسلها للداتا سنتر تبعك في تذكرة خاصة وهي ستقوم بانهاء الإجراء .
وألف مبروك الإرسال الى الهوتمايل
ممكن تجيك رسالة من الهوتمايل تطلب الجواب على بعض الإستفسارات في حال عدم وضوح البيانات المرفقة في رسالة الإشتراك في JMRPP وهذا هو الجواب مع تغيير ما يلزم :
What are the IP addresses of your outbound mail servers (as seen by the receiving server)?
اكتب هنا ايبي السيرفر الأول
What domain are you sending from?
اكتب هنا الدومين الرئيسي للسيرفر وياريت يكون موجه الى السيرفر
Is your server a dedicated or shared server?
اكتب dedicated
What ISP, operating system, mail transport software, and/or mailing list management software are you using?
اسم الداتا سنتر أو رابط الداتا سنتر - exim - centos مثال :
softlayer.com / Centos 5 32bit/ Exim
How are "bounce messages" (non-delivery notices) handled by your system?
أكتب اي رقم مثلا 500
How frequent are your mailings? What are the volumes of these mailings?
أكتب 200
What are some of the accounts on Microsoft's systems that you are attempting to send to?
اكتب بعض الحسابات في الهوتمايل التي حاولت ترسل لها ولم تستقبل الرسائل من السيرفر
Do your SMTP logs show any failed transactions when attempting to send to addresses at MSN, MSN Hotmail or other MSN Services? If so, please include them inline in your response.
I have email sent with success without any failed transactions but in hotmail I don't receive any email come from my server
Can you telnet to port 25 of mx1.hotmail.com from your mail server(s)?
نفذ هذا الامر في الشيل وأعطيهم النتيجة :
25 telnet mx1.hotmail.com
Can you traceroute to 216.32.183.201 from your mail server(s)?
نفذ هذا الامر في الشيل وأعطيهم النتيجة :
traceroute 216.32.183.201
Please include samples of a few of the messages you are sending,
with complete headers (as seen by your recipients.)
I send email from different mailing with complete headers
In what manner(s) are recipients added to your mailing list(s)?
members registration
Provide the URL of your web site.
اكتب هنا رابط الموقع اللي يتسجل منه الأعضاء
Provide the URL of your Privacy Policy.
اعطيهم رابط التسجيل الي من خلاله موجود الموافقة على الشروط
Provide the URL at which users opt-in to receive your mailings.
رابط الموقع ورابط التسجيل
Provide the URL at which users may choose to permanently
unsubscribe from your mailing list.
اكتب لهم هنا رابط لوحة تحكم العضو التي من خلالها يقدر يلغي الإشتراك في القائمة البريدية أو المنتدى أو يمكن يمنع استقبال الرسائل منك
Are you currently a Return Path client? Are you Sender Score Certified?
no
Do you publish Sender Policy Framework (SPF)/Sender ID records for your IP?
yes
Do you use separate IPs for your transactional vs. promotional/subscription marketing communications?
yes
Are you in the Junk Mail Reporting Partner Program?
yes
Do you use Smart Network Data Services?
no
نج
بعد ذلك نقوم بأعطاء تصريح التالي لبعض الملفات في السيرفر :
كود:
cd /bin
chmod 755 basename
chmod 755 bash
chmod 755 cat
chmod 755 chmod
chmod 755 domainname
chmod 755 more
chmod 755 netstat
chmod 755 passwd
chmod 755 sh
chmod 755 su
chmod 755 touch
chmod 755 kill
chmod 755 ls
chmod 755 vi
بعد ذلك نفذ الامر :
كود:
/scripts/fixrelayd
طبق الامر مرتين ليظهر معاك النتيجة :
كود:
root@server [~]# /scripts/fixrelayd
Warn: could not add entry to syslog.conf
Shutting down kernel logger: [ OK ]
Shutting down system logger: [ OK ]
Starting system logger: [ OK ]
Starting kernel logger: [ OK ]
بعد ذلك نذهب الى
Main >> DNS Functions >> Edit DNS Zone
ندخل على Dns Zone Editor
ونختار الدومين الي فيه المشكلة وفي اخر شيء راح تلقى
Always accept mail locally even if the primary mx does not point to this server. (Domain owned by xxx )
ضع علامة صح عليه وسوي حفظ
ونروح من لوحة التحكم WHM
Main >> Server Configuration >> Tweak Settings
كل التعديلات راح تكون في خانة Mail ||.:: إعلانات ::.|| أشهر مواقع الشراء العالمية التي تقبل Paypal + Credit card All Types and more
ebay - amazon - iPad - iPod nano - iPod touch - Mac OS X- iphone 4s - samsung galaxy s ii - nike - xbox 360 - kindle - lego star wars - galaxy nexus- nook - Canon - Minolta - Realtek - Dell - Bose - NVIDIA - Vizio - BOSE - Dollar Tree - Kmart - Mattel - Motorola - Nikon - Petsmart- Sheraton - Hankook - Minolta - Logitech - TomTom - Sears - stickies - Virgin Atlantic - adobe - Bose - divx - Jobing.com - Klipsch - Kmart - Lexmark - Mattel - vizio - radar detector - Behringer - Sennheiser - Advanceautoparts.com - Autozone.com - Gymboree.com - Rightstart.com - Diapers.com - Babyuniverse.com - Totsy.com - Gap.com - Carters.com - Toysrus.com - Ibuyofficesupply.com - Officedepot.com - Shoplet.com - Quill.com - Officemax.com - Cheapofficesupplies.com - Adorama.com - BHphotovideo.com - Walmart.com - Soap.com - Fragrancenet.com - Fragrancex.com - Abebooks.com Barnesandnoble.com - Abt.com - Dell.com - Hp.com - Apple.com - Tigerdirect.com - Laptoppartsexpert.com - Buy.com - Bestbuy.com - Overstock.com - Outlet.lenovo.com - Ecost.com - Insight.com - Compusa.com - Mobilepc.com - Puremobile.com - Expansys-usa.com - Kohls.com - Manoffashion.com - dsw.com - Zappos.com - athleta.com - Fredericks.com - Karmaloop.com - endless.com -
كود:
Default catch-all/default address behavior for new accounts. "fail" is usually the best choice if you are getting mail attacks.
نختار : blackhole
ضع علامة صح على الخيارت التالية :
كود:
Silently Discard all FormMail-clone requests with a bcc: header in the subject line
وضع علامة صح على :
كود:
Track the origin of messages sent though the mail server by adding the X-Source headers (exim 4.34+ required
)
كود:
Prevent the user "nobody" from sending out mail to remote addresses (PHP and CGI scripts generally run as nobody if you are not using PHPSuexec and Suexec respectively.)
كود:
Include a list of Pop before SMTP senders in the X-PopBeforeSMTP header when relaying mail. (exim 4.34-30+ required)
كود:
Automatically setup /etc/localdomains, /etc/remotedomains, /etc/secondarymx based on where the mx entry is pointed.
كود:
RoundCube Webmail
بقية الخيارات في Mail شيل علامة الصح عنها
ونزل الى الاخير ونسوي حفظ
بعد ذلك نذهب للموقع :
The Spamhaus Project - PBL - The Policy Block List
ونروح لـ lookup ip
https://www.rise.company/forum/image...68656gif-1.jpg
اذا ظهر معاك للون احمر :
https://www.rise.company/forum/image...10607gif-1.jpg
نروح نضغط علي PBL
https://www.rise.company/forum/image...32085gif-1.jpg
اضغط على خدمة Remove an IP Address
https://www.rise.company/forum/image...36848gif-1.jpg
نضغ على Remove ip addree
https://www.rise.company/forum/image...54285gif-1.jpg
تروح تملئ البيانات اول فراغ ضع الاي بي الي تريد تحذف من الحظر والفراغ الثاني ضع ايميلك والفراغ الثالث اختار الدولة واكمل البيانات وسوي submit
https://www.rise.company/forum/image...50906gif-1.jpg
راح توصلك رسالة على بريدك
اضعط على الرابط وهم اعطوك كود كما في الشرح 20601 وبعد ذلك اضغط Finish
https://www.rise.company/forum/image...49844gif-1.jpg
https://www.rise.company/forum/image...78219gif-1.jpg
بعد ذلك انتظر 30 دقيقة او 24 ساعة وراح تلقى ان الحظر التغى على سيرفرك :
https://www.rise.company/forum/image...96725gif-1.jpg
لتجربة الارسالة في السيرفر اكتب الامر التالي في الشيل :
كود:
echo "very good" | mail -s "test" [email protected]
مع تغير البريد الخاص بك
اتمنى تكون استفدت من الدرس الهام
هذه مواقع الخدمة والدعم الخاصة بالآرسال تقدر تراسلهم للحل مشاكل الآرسال :
Yahoo RBL
Yahoo! Mail ISP Issues Form
Yahoo! Mail Bulk Sender Form
Call Yahoo! Small Business Technical Support: (800) 318-0783
MSN RBL
https://support.msn.com/eform.aspx?p...eformts&scrx=1
Comcast RBL
Comcast.net Blocked Provider Request Form
Verizon RBL
Verizon Online - Whitelist Request Form
Charter.net
Charter Communications - Postmaster Services
AOL RBL
http://postmaster.aol.com/tools/whitelist_guides.html
Postmaster hotline at 888-212-5537
Postmaster.Info : Troubleshooting E-mail Delivery
AT&T RBL
Contact [email protected]
Non-Members: 800-967-5363
Members: 800-400-1447
Sender Score
https://www.senderscore.org/lookup.p...=206.54.148.24 Sender Score Check]
Other DNS/Blacklist tools
CBL Lookup for 75.173.59.133
SURBL+ Checker v1.1
Reverse DNS Lookup
http://postmaster.aol.com/tools/rdns.html
SpamCannibal
IP Address Unblock Request
http://www.ahbl.org/lookup
Ip Tools, DNS tools, internet tools, WHOIS, traceroute, ping, domain name tools