this post was submitted on 20 Oct 2023
1 points (100.0% liked)

Self-Hosted Main

502 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

After having hosted my own postfix server, including SPF, DKIM and DMARC for years, I finally gave up since there were still fluctuating delivery issues for outgoing mail. So the plan is to use an an external service as relay for outgoing mail, handling generated transactional mails like user registrations and such. (there's still a postfix running on that box)

For now, I've chosen smtp2go which requires sender verification, which is fine for those transactional outgoing mails whose sender is always the same.

With my completely self-hosted setup, I forwarded incoming email to an info address on that domain to my gmail address (to avoid an additional inbox). But unfortunately, that doesn't work with smtp2go because the actual sender for a to be forwarded email is obviously someone who's not a verified sender from smtp2go's perspective and therefor bounces. I suspect other smtp providers might handle that the same way.

The only option I see now is to leave incoming mail on that server, install dovecot or something and setup my main google address to pull messages from that server - which is kind of awkward...

How do you guys deal with such a scenario?

top 8 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 11 months ago (2 children)

Not what you asked for, but I started with self hosting my mail server ~ 1-2 years ago using mailu. Handles basically everything for me and I only needed to check my DNS entries + Reverse DNS.

Haven't really had any problems since then. Only thing I had to make sure to set SPF to strictest setting (I believe drop), etc.. that made the big ones MS and Google trust my mail instance without problems.

Only had a single mail rejected by Microsoft when I had my SPF set to junk instead of drop or something like that.

[–] [email protected] 1 points 11 months ago

That's an interesting anecdote about setting SPF to drop. Thanks!

[–] [email protected] 1 points 11 months ago (2 children)

Yeah, well, empirically, I had repeated issues with t-online and gmail recipients mostly. And I was never sure if it was my config, my IP (hosted on netcup), or something else, but it required constant attention. And that problem should really be gone with an smtp as a service (hopefully).

But maybe I'll have a look at mailu anyway...

[–] [email protected] 1 points 11 months ago

Check out mxtoolbox. Great website to check your mail server/ DNS etc.

[–] [email protected] 1 points 11 months ago

T-Online sucks for many years already. They wouldn’t even follow standard back in the days.

[–] [email protected] 1 points 11 months ago (2 children)

I haven't tried it myself, but SRS (Sender Rewriting Scheme) might work for your use case. It is designed to route bounces back through a chain of email servers and is specifically supposed to solve your forwarding scenario. There's PostSRSd that can add this capability to Postfix.

Otherwise you really need a SMTP relay that is not focused on transactional emails, but I'm not aware of any free ones (for obvious reasons). Services like pobox.com or mxroute.com might be usable as SMTP relays, but they obviously have a cost, which might not be worth it.

I was in the same situation and eventually caved in and just routed all my personal email and domains to Fastmail, and only use smtp2go for transactional emails sent by my servers.

[–] [email protected] 1 points 11 months ago

SRS is exactly the fix for this.

[–] [email protected] 1 points 11 months ago

Interesting, although I have to admit, this brings back memories of dealing with sendmail rewrite rules back in the 90s when I had to maintain a uucp based mailserver as an intern ;-) I’ll have look, thanks!