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?

  • bz386@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    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.

    • ItchyWeight@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year 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!

  • florian_7843@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    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.

    • ItchyWeight@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      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…