I self-host my emails, but use an SMTP relay for sending. IMO, the interesting part of self hosting email is the storage. Outbound sending is more complex and there’s not as much benefit to self-hosting it.
I use Mailcow and have it configured to use a relay per domain. Email clients use the Mailcow server as their SMTP server, and Mailcow (well, Postfix) handles sending it to the appropriate relay.
I have Stalwart installed and use an SMTP relay too. I can send and receive email just fine, never had an issue with that. The only thing that doesn’t really work is the account setup (when you add your account to an email client). It doesn’t detect the settings, so I have to add them manually and I have to ignore the certificate warning but maybe I’ll get around to fixing it someday.
Autodiscovery needs DNS SRV entries to be added for each domain. The legacy Exchange- and Outlook-specific way was a file at /autodiscover/autodiscover.xml but I don’t know if email clients still use that.
I have to ignore the certificate warning
I’m not familiar with Stalwart but you should be able to use Let’s Encrypt certificates.
I self-host my emails, but use an SMTP relay for sending. IMO, the interesting part of self hosting email is the storage. Outbound sending is more complex and there’s not as much benefit to self-hosting it.
I use Mailcow and have it configured to use a relay per domain. Email clients use the Mailcow server as their SMTP server, and Mailcow (well, Postfix) handles sending it to the appropriate relay.
What SMTP relay are you using ? I’m considering switching to Migadu but open to other options.
I’m currently relaying through an MXRoute account, but I’ve used SMTP2Go too and they have a decent free plan with 1000 emails per month.
I have Stalwart installed and use an SMTP relay too. I can send and receive email just fine, never had an issue with that. The only thing that doesn’t really work is the account setup (when you add your account to an email client). It doesn’t detect the settings, so I have to add them manually and I have to ignore the certificate warning but maybe I’ll get around to fixing it someday.
Autodiscovery needs DNS SRV entries to be added for each domain. The legacy Exchange- and Outlook-specific way was a file at
/autodiscover/autodiscover.xmlbut I don’t know if email clients still use that.I’m not familiar with Stalwart but you should be able to use Let’s Encrypt certificates.