惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
有赞技术团队
有赞技术团队
Jina AI
Jina AI
H
Help Net Security
D
Docker
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Blog — PlanetScale
Blog — PlanetScale
Hugging Face - Blog
Hugging Face - Blog
罗磊的独立博客
MyScale Blog
MyScale Blog
N
Netflix TechBlog - Medium
B
Blog RSS Feed
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
U
Unit 42
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
MongoDB | Blog
MongoDB | Blog
美团技术团队
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
博客园 - 司徒正美
Microsoft Security Blog
Microsoft Security Blog
IT之家
IT之家

Dallas Lu

一些没有意义的事情 博客程序的一次大重构 OpenWRT 使用 udp2raw 对抗 WireGuard 阻断 如何证明你是原创作者 Nginx 泛域名配置的隐患与对策 WISeID S/MIME 证书 V2EX 刑满释放记 使用 Radicale 在 Ubuntu 24.04 中搭建 vCards CardDav 服务 邮件服务的域名成功从 SURBL 黑名单移除 网站多语言的设计细节 Website Multilingual Design Details 网站评论系统的目前进展和展望 Current Progress and Outlook of the Website Comment System 在公网使用 iptables 转发端口时保留客户端 IP Retaining Client IP with iptables Port Forwarding on Public Networks 邮件投递平台 Postal 的使用经验 Experience with Using Postal, the Mail Delivery Platform 自建 Postal 完美替代 SendGrid Build Your Own SendGrid: Postal SMTP Server 互联网在崩塌吗,然后呢 Is the Internet collapsing and then what 在 SvelteKit 应用中使用 JSON-LD Using JSON-LD in SvelteKit Applications 网页的打印样式应该怎么写 How to write print styles for web pages “茴字的四种写法”之 IP 与域名 Trivia: Special ways of writing IP and domain names 怎么伪造 Git 提交的时区 How to fake the timezone of a git commit 供大众交流的论坛和其它替代产品还是不好用
The Domain of Mail successfully removed from SURBL blacklist
Dallas Lu · 2024-10-15 · via Dallas Lu

The first day I switched to self-hosted mailboxes, the domain name of the mail service was blacklisted by SURBL. I submitted a Removal request as soon as I could. After months of waiting, it was finally successfully removed from the list.

Discovery

I used Mail-in-a-box to build my own mailbox. Although it is running on a dedicated server with a separate IP, for some reasons I used another node with a separate IP on the same intranet and did port forwarding for SMTP. To test the delivery rate, I Googled a service and tried to send a test email to dozens of addresses it provided.

Soon after I found out in MX Toolbox that my domain was blacklisted.

Request Removal

Visit https://surbl.org/surbl-analysis and look up the domain name, a link to apply is included in the results page. A lengthy form is filled out and the reason for sending dozens of test emails is described.

The real reason

Then I noticed from the status page attached to Mail-in-a-box that there were thousands of emails in the queue. I soon realized that the problem was in the port forwarding of another node.

Mail-in-a-box’s supplied configuration file /etc/postfix/main.cf has:

“conf mynetworks_style=subnet


This will enable other hosts on the mail server's subnet to send mail without authentication[^mynetwork_style]. The simple port forwarding mentioned earlier does not transmit the IPs of external packets to the mail server. For the mail server, these attack requests are coming from intranet nodes, thus skipping authentication and becoming an open SMTP relay.

### Solution

The problem lies in the port forwarding, so naturally you can switch to another [forwarding scheme that preserves the source IP](https://dallas.lu/preserving-client-ip-in-iptables-port-forwarding/). A simpler approach is to change the default behavior of the mail component:

``conf
mynetworks_style=host

And during the bare bones period, nearly 10,000 emails were sent from this node…

Removal successful

However, SURBL had only one chance to fill the Removal request, and querying it again only showed that there was already a Removal request in the queue, please wait for it to be processed. So the above follow-up is not synchronized to SURBL.

After a long wait, I finally received an email back, giving a dozen or so practice reference links about mail servers. Two hours later, I received an email that the removal was successful.

Impact

In fact, during the period of being blacklisted, it didn’t have any impact on my sending emails. Perhaps because it was for private email use, being blacklisted by only one blacklist added just a little bit to the Spam score.

Conclusion

One of the reasons why many people don’t recommend self-hosted mailboxes is that it takes a lot of effort to maintain the reputation of your IP/domain name. Besides that, some of the big email service providers are often whitelisted, such as Graylist, and even though most of the spam I get comes from these big providers, they are on the whitelist. Self-hosting makes it harder to get whitelisted.

I used to think that I wouldn’t fall under the spell of blacklisting and hoped to write a post documenting the process after a successful removal. But that’s all I can write about now, because I just found out that a blacklist called UCEPROTECTL3 has included one of my incoming but not outgoing IP…