Running an email server doesn't have to suck
How keep an email server out of the spam folder.
A mistake i’ve noticed a lot of hobby sysadmins make is that the email servers they run are not relying on their own systems for sending email. This does feel great but a huge issue a lot of them run into is that despite setting up DMARC, DKIM, and SPF, they still end up in the spam folder.
Why this happens
This happens because large email providers like Google, Outlook, and Yahoo have specific whitelists and filters and operate on IP history and various reputation checks.
How to fix it
This is going to sound really odd, but the only way to fix it while still owning your own mail server is by using an SMTP relay. Email is already insecure in transit so doing this is the best course of action despite how odd it does sound. Your emails become known by Google or Microsoft or whatever anyways so adding another service it is stored on is insignificant
Which services to use
It is probably the best idea to use an email service that allows sending a select amount of free emails. Most providers do this. None of the services I have listed here are sponsored.
- Resend
Resend is a developer focused email sending service but allows use as an SMTP relay. They allow 3000 emails per month for free, a very generous amount. They base their service on Amazon SES which almost always shows up in inboxes - AhaSend Ahasend is a european email sending service that offers SMTP relay use. Their offering is 1000 emails per month, less than Resend. They have good reputation as an email service and keep their systems clean, just make sure to contact support if you get flagged!
- Mailgun Mailgun is an extremely commonly used email sending provider that’s owned by Twilio. They allow you to send 100 emails per hour. Due to their common use, this will almost never get flagged unless you send weird stuff.
Setting up
There is documentation for your email server set this up that are mainly intended for transactional email/marketing setups. These will work in this scenario. Search up the documentation.
If it is still complicated, my email and guestbook is open and I can update this article to encompass more info!