[2025-06-11] Recording and Sharing about Independently Development – Strggling with SMTP / 独立开发记录与分享 – 折腾SMTP服务器

Independent Development

Build a SMTP Server

The most popular software is Postfix. It is quite easy to install and setup. But…
The work has just begin. To build a SMTP server that can really be used, there are still something else to be done.
OpenDKIM. This is used to give the mails a signature, without which the mail would probably be recognized as spam.
It is not hard to install and config too, but for me, I encountered a problem: the sender can not be received by DKIM, so my mail cannot be signed.
As documents and AI said, I set the sign table with *@mydomain.com, but when sending mail from noreply@mydomain.com, it cannot be received.
It is a puzzle. I didn’t fix it, I just set the full sender mailbox into the table too, as a walking around.
After that, the rDNS has to be set, the records on the domain site has to be set. And all of these have to be waited for some time to take place.
Finally I can got the email…
But my WordPress website is wrong. It really make one want to say the f word…

Related Platforms

(Github Issues) / (Notion) / (Blog)

Advertisement

(A website to optimize your resume and to boost your career: Nonpareil.me)


独立开发

自行搭建SMTP服务器

主流的软件是Postfix,安装和配置都很简单。
但是这只是开始……还有很多工作要做。
首先是安装和配置OpenDKIM,这是一个为邮件签名的软件。没有签名,邮件更容易被识别为垃圾邮件。
本来这也不难,不过我遇到了个很古怪的问题:邮件发送者和签名表无法匹配。
签名表里应该写*@mydomain.com,不过当我用noreply@mydomain.com发信时,DKIM识别不了这个地址,不给邮件加密。
解决不了……后来我干脆直接把详细的地址加到了签名表里,算是绕开了这个问题。
不过我的Wordpress又出问题了……要疯。

相关平台

(Github Issues) / (Notion) / (Blog)

推广

(优化简历,助力职场:Nonpareil.me)

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注

滚动至顶部