I need to run my own email server for some of my domains, because the providers that I usually use don’t support them (they use Unicode characters, and not everyone supports that yet). I have a small VPS that I run a few Docker containers on, and I’m wanting to try and run an email server on it as well. What containers are good for a low-hassle email setup? I don’t need a mailbox webui (ex: round cube), but it would be nice to have a UI for management. I do need multi-domain support, however.

  • aksdb@lemmy.world
    link
    fedilink
    English
    arrow-up
    23
    ·
    8 days ago

    Stalwart

    Written in rust, contains SMTP, IMAP, JMAP, Sieve, CalDAV, CardDAV, WebDAV. Has an admin web ui. Sane defaults, minimal foot guns. No zoo of containers needed.

    • hackysphere@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 days ago

      I’ve been trying out Stalwart, and it seems to be working good, but it is having problems with IDN that seem to require some weird ways of fixing.

      (more specifically, Stalwart recognizes the punycode and UTF8 versions of domains as separate, which is difficult for some clients like Gmail web to deal with)

    • SK@utsukta.org
      link
      fedilink
      arrow-up
      9
      ·
      8 days ago

      +1 for mailcow, i’ve been running my mailserver for over 2 years now, very efficient, no hassle setup.

  • ikidd@lemmy.world
    link
    fedilink
    English
    arrow-up
    15
    ·
    edit-2
    8 days ago

    Mailcow-dockerized. I’ve used it for nearly a decade, it’s been flawless. Very easy to set up with the admin webpage and has a webmail client, or use Roundcube with it.

    Make sure you have your DKIM, SPF and Dmarc records in order and tested against MXtoolbox before you start.

    • johnnixon@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      7 days ago

      What happens if your server is offline and an email comes in? I’m genuinely curious what it would do. Or must you VPS host your mail server for maximum uptime?

      • ikidd@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 days ago

        The other server sends again until it times out? Never been an issue, that’s just how email works. Most SMTP servers will attempt for a few days if they know the MX is valid. Besides, I’ve never been out for longer than an hour or two.

      • lukecyca@lemmy.ca
        link
        fedilink
        English
        arrow-up
        4
        ·
        7 days ago

        All MTAs have retries baked in, so running a self-hosted email server that receives mail is actually one of the most forgiving services in this respect. If your server is offline, the sending server will retry several times over 24-48 hours before it gives up. Even the big cloud email providers will do this.

        That said, there are other aspects of running an email server that require some extra rigour, but they’re more on the sending side (making sure emails you send to other people actually land in their inbox). Doable, but one of the more challenging things to self-host.

    • CetaceanNeeded@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 days ago

      What’s the resource usage like? I’ve looked into mailcow before but the recommended system specs are too expensive to make it worth it on a VPS.

      • ikidd@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 days ago

        Seems really low. I run it on a docker LXC with Nextcloud and bunch of other stuff, on 8 cores of an ancient dual Xeon Dell. I never seem to have to deal with latency on it.

  • osanna@thebrainbin.org
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    8 days ago

    You’re gonna have a bad time if you have to email MSFT/GOOG. MSFT was worse in my experience. their DumbScreen tech was horrible. Even the tech couldn’t get my emails to not go to spam. Gave up in the end. The likes of MSFT and Google make it nigh on impossible for people to self host their own email.

    • hackysphere@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      7 days ago

      So I’ve been setting up Stalwart (but I probably won’t be using it), and I only had to unflag my emails as spam on Gmail and Outlook once; it even was able to send straight to the inbox of another Gmail account! I did have one email get quarantined by Outlook, but it was probably because the email and sender name didn’t match enough.

    • Shimitar@downonthestreet.eu
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 days ago

      Been running my own mailserve for last 20 years and never had big issues.

      Do dkim dmark stuff and DNS records properly and you will be fine. Also don’t spam and beware of spam-related subnets, and you should not have issues.

      • moonpiedumplings@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        7 days ago

        Have you considered that the reason why your mail server is trusted is because it’s been around for 20 years?

        Have you tried to set up mail from scratch on a new domain/ip recently?

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    edit-2
    7 days ago

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

    Fewer Letters More Letters
    DNS Domain Name Service/System
    IMAP Internet Message Access Protocol for email
    IP Internet Protocol
    LXC Linux Containers
    SMTP Simple Mail Transfer Protocol
    SSD Solid State Drive mass storage
    VPS Virtual Private Server (opposed to shared hosting)

    7 acronyms in this thread; the most compressed thread commented on today has 15 acronyms.

    [Thread #52 for this comm, first seen 1st Feb 2026, 10:01] [FAQ] [Full list] [Contact] [Source code]

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

    I’m still looking for a good solution that includes support for notes. I’m migrating off Exchange Online and using mailcow temporarily but the built in notes feature is sorely missed.