Ask HN: How do people self host email and maintain deliverability? (news.ycombinator.com)
I wanted to self host my email and decided to rent a VPS. I made sure the ipv4 address was on no blacklist. My domain uses a good TLD with a long domain history. I set up SPF, DKIM, DMARC, reverse IP DNS, etc.
I sent 3 emails to my personal outlook/hotmail accounts, all of which went to spam. 1 day later, my IP was banned. Outlook support said they cannot discuss the reason for the ban and will not unban it so I'm out of luck.
I know I can just pay a provider $5/month and get email, but there is something about having full control over your own email. Is there anything much I can do?
Something that has really helped with rejections and/or spam was having a PTR (reverse DNS) record for your server, some providers like Gmail explicitly require it. It's something that I have to pay a VPS for in order to get. But I can have that VPS with that PTR record and tunnel everything through Wireguard to my home server, all without TLS termination on the VPS.
I use cloudflare for domain reg, fastmail as my mail provider and free Gmail as my mail client.
For sending SMTP, I use the SMTP forwarding host operated by my ISP.
You do not want to be chasing a solution where the same machine that runs all your self-hosted stuff is also sitting on an IP address with a good SMTP-sending reputation.
Have your hosting machine wherever it is convenient for you, and find it a good SMTP forwarding host.
The only downside about forwarding is that the forwarding host or chain of hosts can intercept your plain-text e-mails. The good thing about direct SMTP is that you can use TLS to connect to the target domain to which you are sending e-mail, so you don't need PGP in order to thwart eavesdropping.
However, the security benefit of TLS and direct sending is somewhat negated by most people's mailboxes being hosted by large providers like Google which read their mail.