Hello,

I want to deploy a simple mail server so that it can be used for users to register themselves or reset passwords, etc.

Is there an easy one to deploy (in docker if possible) ?

  • Shimitar@feddit.it
    link
    fedilink
    English
    arrow-up
    0
    ·
    20 days ago

    I I agree with everybody else saying that the email server should not be self-hosted. But I have a specific exception to this rule, which I was keen to try, but I never did this or take this with a pinch of salt.

    I do self-host on my services, but at the moment I keep myself hosted email on a public server, not on my home server.

    Since I am using a tunnel to access my services from outside, my home server is actually using my public server ip. moving my email self-hosting to my home server would not actually change the front facing IP address of that email server, and no harm would be done to my mail server.

    But is it really worth it? Probably not. Since I would still need some kind of backup email server out on the internet for the rare situations where my home server is cut from the internet due to power outage or ISP being down.

    You want full reliability for your email server. So your home connection without UPS or backup connection isn’t going to cut the cheese fully.

    So, I would suggest you don’t self-host your email on your home server. You can still self-host your email, but on a public server. Be aware, though, that is a difficult task which will require lots of effort and many months to get it done right and accepted everywhere.

    • pHr34kY@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      20 days ago

      I host my own mail. When it’s down, the mail just gets delivered after I get online again. Almost all mail servers are configured to retry over a period of several days before giving up.

      Once my health insurer sent me mail by post to tell me that my mail server was down. That was kinda funny.

      • Shimitar@feddit.it
        link
        fedilink
        English
        arrow-up
        0
        ·
        19 days ago

        What if your home network goes down while you are away for a week and you cannot get it back online?

        Not a risk I am willing to take, so a backup server would be required.

  • NX2@feddit.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    20 days ago

    I wrote a blog some time ago why selfhosting email sucks

    https://nx2.site/email-selfhosting

    If you just want the email server for only you and your friends, or for internal messages, selfhosting email can be fun, but your main email should probably not be selfhosted.

  • smokinliver@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    0
    ·
    20 days ago

    There is Mailcow. But simple is relative I guess cause you still gotta configure a lot around it to not end up on every spamlist out there

    • Norgur@fedia.io
      link
      fedilink
      arrow-up
      0
      ·
      20 days ago

      Dmarc/dkim/SPF/certs. Fun times!

      I got a mall server running, yet it’s almost more as an inbox.

  • mojoaar@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    20 days ago

    I would no go down the route of doing it myself. Take a look at something like: migadu if it is simple mail hosting you are looking for.

    • smileyhead@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      0
      ·
      19 days ago

      Migadu is great but they state in their policy that automated (non-human) outgoing email like for password resets are not allowed.

    • ErwinLottemann@feddit.de
      link
      fedilink
      English
      arrow-up
      0
      ·
      18 days ago

      i self host my mails for almost 20 years now, it was hard work in the beginning, now it’s just a few updates a year. no problem with blacklists or anything, a good hoster is probably beneficial, 10/10 would recommend, even just to learn how all of this works

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

        That’s true. I did learn a lot, but the idea of setting it all up again gives me anxiety.

  • bastion@feddit.nl
    link
    fedilink
    English
    arrow-up
    0
    ·
    18 days ago

    Interesting how you use “simple” and “mail server” in the same sentence.

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    19 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
    IP Internet Protocol
    SMTP Simple Mail Transfer Protocol

    3 acronyms in this thread; the most compressed thread commented on today has 6 acronyms.

    [Thread #798 for this sub, first seen 11th Jun 2024, 08:15] [FAQ] [Full list] [Contact] [Source code]

  • Tetsuo@jlai.lu
    link
    fedilink
    English
    arrow-up
    0
    ·
    20 days ago

    If you do self host I suggest reading carefully the Gmail guidelines for mails. They are the leaders in the field and they dictate the level of security required.

    DNS forward and reverse, DKIM, SPF, DMARC, ARC, DANE, bounce signature etc. Email is indeed a very complicated thing to host. I work on emails system all day and and I wouldn’t host my own mail.

    Even worse I’m hoping email disappear and another technology takes it place. Emails are unreliable and outdated, they need to go.

  • retro@infosec.pub
    cake
    link
    fedilink
    English
    arrow-up
    0
    ·
    20 days ago

    If you need to throw in the towel on email self-hosting, don’t be ashamed. Mail servers are one of the more difficult projects to run. If you do end up outsourcing this, I recommend SendGrid, it’s reliable and free.

  • pcouy@lemmy.pierre-couy.fr
    link
    fedilink
    English
    arrow-up
    0
    ·
    20 days ago

    Things have been going well for me, using docker-mailserver.

    I followed the setup guide, did everything in the DKIM, DMARC and SPF documentation page. The initial setup required more involvement from me than your standard docker-compose self-hosting deployment, but I got no issues at all (for now, fingers crossed) after the initial setup : I never missed any inbound e-mails, and my outbound e-mails have not been rejected by any spam filter yet.

    However, I agree with everyone else that you should not self-host an important contact address without proper redundancy/recovery mechanism in case anything goes wrong.

    You should also understand that self-hosting an email address means you should never let your domain expire to prevent someone from receiving emails sent to you by registering your expired domain. This means you should probably not use a self-hosted e-mail to register any account on services that may outlive your self-hosted setup because e-mail is frequently used to send password reset links.

  • MHanak@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    17 days ago

    I’d advice against it, aside from spam filters, and it being a general PITA, there is a chance your ISP will block any outgoing mail traffic (in my case orange blocks it)

  • darklamer@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    20 days ago

    As already mentioned several times, selfhosting a mail server is not recommended unless you’re particularly interested in hosting a mail server, but with that said, you might find this project interesting:

    https://maddy.email/