This Microsoft outage being the last drop in the bucket, I’m looking to get my email/calendar/contacts somewhere under my control.

As I already self-host a number of things (e.g. my Linux ISO collection), and have services exposed to the internet, it would make sense to run it at home.

After all, it’s not heavy lifting. It’s not hosting 500+ mailboxes for 100+ people. It’s just little old me, with a handful of domains, catch-all receiving and a few dedicated sending addresses.

However email is a bit more mission critical than my smarthome control or self hosted LLMs. Downtime could be critically bad, and I still don’t trust my home setup to be truly 99.999999% available.

I don’t mind paying for a service but if I do I’d prefer something European, given I’m based in the UK (and otherwise am an EU citizen).

I’m really curious how y’all solve it. I guess I’m interested in some kind of hybrid solution where there’s my own server and a hosted service, latter which acts as a backup solution, but still fully synced, so if my internet or power goes out (or my server goes down), I can still get mail sent and delivered.

So I’m not only just interested in the stack you run for email but the entire infrastructure, especially if you’ve solved this sort of off-site fallback service.

  • 31ank@ani.social
    link
    fedilink
    English
    arrow-up
    68
    ·
    edit-2
    9 days ago

    Mail is something I don’t want to touch. I use mailbox which is hosted in germany for some years now. For calendar & contacts I use the built-in Nextcloud apps, they also work pretty well

    Edit: I self-host Nextcloud, so contacts & calender are on my private server

    • Esjott@feddit.org
      link
      fedilink
      English
      arrow-up
      13
      ·
      10 days ago

      Same here in terms of don’t want to touch mail. I use migadu, swiss company hosting in france. Works flawlessly. There was a good blogpost some time ago comparing mail services, let me check… there it is: Blogpost

      • NanoooK@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        2
        ·
        9 days ago

        Where did you find where are they hosted? I couldn’t find it on their website last ve looked them up. Too bad they only accept $, I had considered them heavily because I like their mindset regarding inbox/folder.

        I went with Soverin to have unlimited alias included in my plan.

        • Esjott@feddit.org
          link
          fedilink
          English
          arrow-up
          5
          ·
          9 days ago

          https://www.migadu.com/procon/#in-switzerland-but-servers-are-not

          In Switzerland, but servers are not

          This may come as a surprise, but we do not host our servers in Switzerland. Current data centers are located in France. We may in the near future add Swiss data centers too but this is not our priority.

          We find EU privacy laws much more elaborate and restrictive than the Swiss ones. Switzerland used to be famous for banking secrecy, but that has nothing to do with digital data.

    • vogi@piefed.social
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      10 days ago

      Yea, me aswell. Also in the mailbox and am really happy with their service, but don’t they use Open-Xchange? I don’t think its Nextcloud.

      • cron@feddit.org
        link
        fedilink
        English
        arrow-up
        3
        ·
        9 days ago

        Mailbox uses Open-xchange, but the user most likely has nextcloud selfhosted.

  • tacogoon@lemmy.world
    link
    fedilink
    English
    arrow-up
    31
    ·
    edit-2
    10 days ago

    I’ve self-hosted email for over 20 years but I’m now moving to Fastmail for two reasons: (1) succession, I’m the only one in my house that understands how it works, and (2) email is never fully under your control and the large providers may decide to filter/drop email from your domain. But this is self-hosted, and I did enjoy my years doing it, so go for it if you want. I had good luck with OpenBSD/OpenSMTPD/Dovecot stack. Good luck!

    Edit: I forgot to mention you can do a hybrid approach; handle receiving yourself and use a service like smtp2go.com to do delivery.

    • smorks@lemmy.ca
      link
      fedilink
      English
      arrow-up
      6
      ·
      10 days ago

      I’ve been using smtp2go for the past 2 ish years for outbound email, and it’s been great! I have no complaints.

      • AHemlocksLie@lemmy.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        10 days ago

        I’ve been meaning to set up something similar. I really don’t feel like dealing with reliable delivery, but I also don’t want to give my plentiful incoming mail to someone just so I can send like 5 emails a year.

    • pHr34kY@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 days ago

      I selfhost. My ISP has a mail relay so it doesn’t appear to come from my residential IP. The problem is that the relay is on more blacklists than I am.

  • SHY_TUCKER@lemmy.mlBanned
    link
    fedilink
    English
    arrow-up
    22
    ·
    9 days ago

    I own a business. We hit 9 years in September. When we started we did O365. At that time, a business as small as us had to go with a Microsoft “partner” because MS wasn’t going to deal with a business as small as us. We were immediately “man in the middle” hacked. We’d been in business 3 months and someone was grabbing our incoming emails and replying as if they were us. We had no idea. They changed payment terms and re-routed our checks as direct payments to some digital accounts in Miami (USA). I have no doubt that it was our Microsoft “partner” that set us up with O365 and Lync (this was a long time ago). When we pressed Microsoft about it they became totally unresponsive or nasty. We lost about $25,000 dollars right at the very beginning of our business. It was a very dark time for me. But, honestly, that was the best $25K I ever spent. Talk about “attack Surface”.!!! Now I do Fastmail, Nextcloud a nd other self hosted services. I am absolutely convinced that losing $25k was an absurd bargain. People on O365/ SharePoint/Teams get hacked every fucking day. But they don’t tell you about it.

  • i_stole_ur_taco@lemmy.ca
    link
    fedilink
    English
    arrow-up
    18
    arrow-down
    2
    ·
    10 days ago

    Self-hosting email is like making your own butter.

    It’s possible, but most people don’t want to take it on themselves.

    Calendar and contacts I’d argue are good candidates to self host. If a config is off and you can’t access them for a day or two, does it matter?

    But if email is down, you risk missing something important. If you have a trust issue and everything you send is getting flagged as spam? Hard and slow to fix.

    If the problem you’re trying to solve is Flaky and Unethical Big Tech, I would look at finding another, smaller provider and paying for it. Rolling it yourself is a great way to learn entirely too much about mail servers and spending way too much of your free time on it.

    • pHr34kY@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      9 days ago

      Servers retry delivery. It needs to be offline for a while before you miss stuff.

      Receiving everything is the easy bit. It’s sending that’s hard. Every recipient is looking for a reason to spambox you.

  • tatterdemalion@programming.dev
    link
    fedilink
    English
    arrow-up
    16
    arrow-down
    1
    ·
    9 days ago
    1. Get cheap Hetzner VPS with redundant volume.
    2. Get a domain name.
    3. Run Stalwart for you mail server.
    4. Run Bulwark for your inbox web app.
    5. Run Kanidm for an identity provider.
    6. Configure these DNS records: MX, SPF, DKIM and DMARC

    There are more details, but those are the basics.

        • Squizzy@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 days ago

          Yeah I have heard of issues with websites accepting the addresses as legitimate and the like of outlook auto filtering

          • tatterdemalion@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            8 days ago

            I believe the main thing to consider beyond just correctness of your email server configuration is that large email providers evaluate the reputation of a sender’s infrastructure. So for example, if your mail server has an IP address associated with large-scale spammers, that would hurt reputation. And if you are your own ASN or something, you have to build your reputation from nothing. I believe I mostly dodge this problem by just putting my email server in Hetzner.

      • drkt@scribe.disroot.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        10 days ago

        Yes, unfortunate timing on my part, but my inbox has been unaffected because I don’t store emails long-term and evidently I’m here, on their instance. It sounds way worse than it is.

  • eksb@programming.dev
    link
    fedilink
    English
    arrow-up
    9
    ·
    10 days ago

    I have run my own mail server for 20+ years. I set up everything correctly, including DKIM and DMARC. I have had the same IPs for 10 years. I send <100 emails a month. A few years ago Google started putting most of my emails in spam, and Microsoft started silently deleting them. They will not fix it. I had to start paying for a relay for outgoing messages.

    Use migadu.com.

  • manwichmakesameal@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    10 days ago

    I repeatedly see people saying “don’t host your own mailserver”. So what are we supposed to do? Just give up and let megacorps own all of our mail? I get it, it goes to those servers anyways. F-that. I’m not giving up yet another service to them. Personally, I have a VPS with racknerd and use docker mail server. Been using it for a couple years now and no issues so far. Just make sure your DKIM/SPF records are good.

    • lemmyvore@feddit.nl
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 days ago

      Just give up and let megacorps own all of our mail?

      But there’s no shortage of email providers who aren’t megacorps.

      As long as you own the domain and have an archive of all your mail past and present in your own storage, does it really matter whose server you currently use to send and receive the email?

      I see email as a carrier service, like the broadband line or the mobile service. They move the messages through, it doesn’t matter who they are (privacy withstanding, as with any carrier).

  • tburkhol@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    10 days ago

    My domain’s mail is hosted at https://purelymail.com/ $10/year. They seem to run on AWS hardware, so it’s not free of US big tech. It’s dirt cheap, but I’ve never had any problems, either receiving or sending. They have very clear instructions for getting your domain’s mail set up.

    • farting_gorilla@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 days ago

      I thought they looked too good to be true…and with this AWS reveal, they are too good to be true. Oh well…wish posteo would allow me to use my own domain

  • dihutenosa@piefed.social
    link
    fedilink
    English
    arrow-up
    6
    ·
    9 days ago

    I self-host it with https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.

    • I had to set it up with all these SPF and DKIM and DMARC stuff. Wasn’t too hard, just follow the guide. Test with GMail - the message details view says exactly what you have, what you haven’t, and what’s wrong.
    • Every now and then I have to jump through some hoops to get my IP allowlisted in some weird provider or antispam system.

    Email is a very old protocol, it originates from the time when computers were connected only occasionally. It is very much possible to come an agreement to power up the antennas at something o’clock every day to exchange emails, and the rest of the time they just sit in the queue.

    Practically speaking, if your home lab is down for something like 12h, it should not impact email delivery much at all - the sending servers would just keep retrying. Usually for 48h. From https://www.rfc-editor.org/rfc/rfc5321#section-4.5.4.1

    mail that cannot be transmitted immediately MUST be queued and periodically retried by the sender.

    The sender MUST delay retrying a particular destination after one attempt has failed.

    Retries continue until the message is transmitted or the sender gives up; the give-up time generally needs to be at least 4-5 days.

    Microsoft documents this: https://learn.microsoft.com/en-us/defender-office-365/mail-flow-about#mail-flow-delivery-faq

    Deferred messages remain in our queues for one day.

    I guess technically they’re RFC-compliant, but 1 day is not as much as I’d like…

      • dihutenosa@piefed.social
        link
        fedilink
        English
        arrow-up
        5
        ·
        9 days ago

        No idea. I keep hearing the term, “IP reputation”, but I don’t know any official registry where I could look up mine.

        • I can deliver to GMail, because I set up SPF, DKIM, DMARC, and that special GMail-only TXT record in DNS: "google-site-verification=<base64-or-what>"
        • I can deliver to Outlook, because I registered by IP in https://check.spamhaus.org/
        • Every now and then, I encounter a new, weird and wonderful kind of spam protection, and I have to figure out how to get my IP listed in the “known legit email servers”

        All told, I can deliver email, AFAICT. If it lands in spam, well, tough luck - email from large providers also does.

  • BeigeAgenda@lemmy.ca
    link
    fedilink
    English
    arrow-up
    6
    ·
    9 days ago

    One thing you should know, the SMTP protocol is designed to work with intermittent network connections like modem, each email has several days of grace period, with many retries, so you don’t need 99.999% uptime.

  • Ooops@feddit.org
    link
    fedilink
    English
    arrow-up
    5
    ·
    10 days ago

    I use Radicale for my calendars and contacts as basically every program, app or device can handle caldav/carddav.

    Self-hosting email however is too painful. Not that it isn’t easy on principle… but because the basics are simple all the big mail providers have developed a lot of ways to automatically filter out all those quickly put up mail servers mainly used to distribute spam. So having your own mail server while also constantly jumping through all the hoops so your mails are actually received is barely worth it.

  • Brewchin@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    10 days ago

    I self-host a metric fuck tonne of services and (with my extensive email background) I choose to outsource my email services.

    You CAN do it today. But should you? Given DMARC, SPF, etc… No.

    Since I left Gmail’s free GAFYD feature, I moved to Fastmail (Australian) years ago. Does it cost money? Yes. Does it do everything I want? Yes. Does it have features Google would never provide? Yes.

    Do I have any reservations or regrets? No.