我剛剛解決了設置電子郵件伺服器後的另一個問題, 它無法接收任何傳入的電子郵件. 如果您使用 hotmail 進行測試, 您可以收到拒絕通知,說辦公室在伺服器的黑名單中,如下所示:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
ip-172-26-5-111.ap-southeast-2.compute.internal rejected your message to the following email addresses: admin@airportblisscars.com.au (admin@airportblisscars.com.au) Your message couldn't be delivered because the recipient's email server (outside Office 365) suspected that your message was spam. To fix this, try to modify your message, or change how you're sending the message, using the guidance in this article: E-mailing Best Practices for Senders. Then resend your message. If you continue to experience the problem, contact the recipient by some other means (by phone, for example) and ask them to ask their email admin to add your email address or your domain name (the text after the "@" symbol in your email address) to their allowed senders list. For Email Admins When Office 365 tried to send the message to the next email server outside of Office 365 the external email server returned the error below. This indicates the recipient's email server (or their email filtering service) suspected the sender's message is spam. If the sender isn't able to fix the problem by modifying their message then contact the recipient's email admin and ask them to add your domain name, or the sender's email address, to their list of allowed senders. While the sender may be able to alter the message contents to fix this, it's likely that only the recipient's email admin can fix this problem. Unfortunately, Office 365 support is unlikely to be able to help fix these kinds of externally reported errors. ip-172-26-5-111.ap-southeast-2.compute.internal gave this error: Remote server returned message detected as spam -> 550 Rejected because 40.92.107.48 is in a black list at zen.spamhaus.org;Error: open resolver; https://check.spamhaus.org/returnc/pub/3.105.5.63/ |
所以我注意到了這個關鍵字: zen.spamhaus.org
這是一個垃圾郵件阻止清單服務, 我很確定大公司的郵箱 IP 不在該清單中, 但為什麼?
所以我檢查了他們的網站, 所以他們有一個叫做 DNSBL 的服務, 簡而言之, 他們將那些被封鎖的IP位址以DNS的方式放置, 這樣您就可以輕鬆查詢並確定這對電子郵件伺服器來說是否是一個錯誤的IP. 並且該服務預設包含在EXIM4中.
惡夢來了
所以他們需要非商業和非dns伺服器請求. 那是, 如果發生的話, 對於像我這樣的小網站, 你把你的名字伺服器和你的郵件伺服器放在同一個vps中, 你會被屏蔽.
![dnsbl 需要非公共名稱伺服器來執行請求](https://cdn.logcg.com/wp-content/uploads/2025/01/Screenshot-2025-01-09-at-5.19.18 PM.png)
dnsbl 需要非公共名稱伺服器來執行請求
就是這樣, 你的郵件伺服器拒絕一切 bcs 它從 dnsbl 得不到任何東西.
如果您的伺服器無法存取其 dns,也會發生這種情況, 例如 ISP 屏蔽之類的
讓我們停用這個功能
1 2 |
sudo sed -i '/zen/d' /etc/exim4/dnsbl.conf sudo systemctl restart exim4 |
現在, 您的郵件伺服器恢復正常運作 🙂
本文由 落格博客 原創撰寫:落格博客 » Hestia郵件伺服器只能發送但接收電子郵件
轉載請保留出處和原文鏈接:https://www.logcg.com/archives/3878.html