So I’m migrating stuff from my old server to a new provider and only thing left is email.

The problem is I used luke smith’s emailwiz script ( the script and setup itself isn’t a problem ) because it uses system users for managing users with dovecot and friends to setup a mail server.

So now I’m looking for a new email server to selfhost (preferably docker/podman) that in the future I can easilly migrate.Would also love if somebody has a reccomendation on how I could backuo and import emails from the old server.

NOTE: I use caddy as webserver, so the server should have a simple way on getting ssl certs, or abikity to easilly make use if caddy one’s.

  • smiletolerantly@awful.systems
    link
    fedilink
    English
    arrow-up
    13
    ·
    edit-2
    5 days ago

    It’s a bit unconventional maybe, but I vote simple-nixos-mailserver - IF you are curious / willing to learn nix. It’s essentially just sanely configured dovecot, postfix, rspamd.

    My config for those three combined is about 15 lines, and I have never had an issue with them. Slap on another 5-10 lines for Roundcube as a webmail client.

    Since it’s Nix, everything is declarative, so should SOMETHING happen to the server, you can be up and running again super quickly, with the exact same setup.

      • smiletolerantly@awful.systems
        link
        fedilink
        English
        arrow-up
        3
        ·
        5 days ago

        In that case I can really highly recommend it. Nixos on the server is fantastic anyways, and the only hurdle to recommending simple-nixos-mailserver is that most people are not familiar with nix… 😄

  • ShortN0te@lemmy.ml
    link
    fedilink
    English
    arrow-up
    11
    ·
    6 days ago

    Mailcow is amazing.

    Importing exporting i would just use any mailclient and drag-drop them over. Depending on how many Mailboxes you have to transfer.

    • ShortN0te@lemmy.ml
      link
      fedilink
      English
      arrow-up
      3
      ·
      5 days ago

      This has been said over and over again. I have been hosting Mail now for over 2 years and have yet to encounter any problems. Although, i would not recommend to set it up manually and rather advise to use one of the ‘all in one’ suggested solutions here in the thread.

        • ShortN0te@lemmy.ml
          link
          fedilink
          English
          arrow-up
          2
          ·
          4 days ago

          It would be more reliable to use a ‘clean’ not blacklisted static IP.

          But in theory you could just use ddns and update the IP. But I actually never tried it.

          Mailcow comes ready out of the box. Just change the DNS entries according to Mailcow and you are good to go.

            • ShortN0te@lemmy.ml
              link
              fedilink
              English
              arrow-up
              1
              ·
              3 days ago

              Yes thats why i said in theory. I doubt that many residential IPs are blacklisted, but still not optimal.

              IPv6 only works but there are probably many Mail Servers that are IPv4 only, so you will not receive mails from them.

              If you are serious about it, rent a VPS or get a static IP on your residential connection.

        • Appoxo@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          2
          ·
          4 days ago

          In theory you could use an smtp relay.
          Which pulls the messages from the relay and also sends for you.
          This way you won’t have to fiddle around with IP reputation.

          But you are still interacting with a cloud service…

    • witten@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 days ago

      Same! Okay, not without problems, because running a mailserver isn’t maintenance-free. But Mailu has been generally solid and it works with Docker. (And Podman, unofficially.)

  • vext01@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 days ago

    I use OpenSMTPD for mail delivery, dovecot for IMAP, fdm for filtering and some tool I forget the name of for DKIM signing.

    To bulk move mail around, just move the maildirs.

    (Hosting email is a pain)

    • Shimitar@downonthestreet.eu
      link
      fedilink
      English
      arrow-up
      3
      ·
      5 days ago

      After 20+ years of hosting my email in a similar way (postfix…) I decoded to explore the “all in ones” like stalwart and mailcow.

      Stalwart looks promising because its a new approach, supposedly more streamlined and efficient. Will post back in a few months.

      I am not worried about stalwart dual license, the overall feeling seems to be of trust.

  • I was going to ask if anyone had experience with Maddy, which is an all-in-one solution I’ve been eyeballing for a while.

    Getting DKIM and postfix set up correctly was such a PITA, and then dovecot, I’m nervous about having to go through all that again and fretting about accidentally configuring an open relay, so I haven’t tried it yet. But it looks nice, and has been around for a couple of years.

    • catloaf@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 days ago

      fretting about accidentally configuring an open relay

      That’s easy enough to test. Try sending mail from the Internet to an address outside your domain, both from a real sender and a sender spoofing your own domain.

  • Shimitar@downonthestreet.eu
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 days ago

    I have started testing out stalwart, seems pretty nice, bit way too early to give you reasonable feedback.

    If you are looking for an innovative approach to email server stalwart is the new boss in town.

    If you want proven and stable, mailcow might be your easy choice.

    Both can be deployed with containers, I did with podman.

    • Shimitar@downonthestreet.eu
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      5 days ago

      A forum is good for searches. Social media is good for blind repost and “me me me” posting.

      That’s life

      So sad we abandoned the forum approach.