I have run my own mail server now for 20+ years. its is runnig postfix , with spamassain. the users have imaps, and roundcube www gui.
It had been running fine, and have been updated HW / OS a lot of time over the years, now its runnig on rocky O/S
I’ve been told running an email server is the final boss of self-hosting
The ultimate boss fight is hosting your email server AND making your family use it
Would never want to do it. I don’t wanna be responsible for the outage and them needing an important email.
Actually to be fair, mine works fine and always has. The final boss is making Hotmail/live/Microsoft actually accept your email despite you jumping through all the hoops to have perfect spam score.
I have my own mailserver just for me and it wasn’t that complicated to be honest. I set it up with Mailcow in Docker in under a day. So far it has been stable with regular backups and updates through Lighthouse.
Maintenance comes down to 5 minutes every three months because somehow Let’s Encrypt and Mailcow don’t like each other and I have to renew the certificate manually.
IMHO, as someone running his own mail server, the real final boss is LDAP and implementing SSO on all your selfhosted goodies. Bonus points if you then use it to login to other services that support OAuth 2.0.
If you are looking to do this then go check out Mail in A Box
Great collection and super helpful forums
Buy yourself a cookie!
As someone who has zero experience hosting anything, what are the benefits of doing this?
Thank you!
Well I didn’t want google to read my mails, and use the content to generate ads, or profiles on me or my family. Besides that it’s keep me up to date on mailserver and mailman . Besides I do it professionally so it was easy
Well I didn’t want google to read my mails
Sadly, it only works if no one in the recipients of the mail is on gmail (or if everyone use pgp, which I would tend to think is even more rare).
I host my own mailserver as well, and I would add as benefits:
- creating as many email address as you want easily, possibly regexp based address (awesome to give every site a different address and know where the spam comes from, without using the well known schema
username+something@host
). That also makes routing/filtering mails way more easy, you just have to match the recipient address. - delivering mails to software, to put email at the center of interapps messaging (basically, that means that postfix pass a matching email to the executable of your choice on your system instead of storing it in your mailbox)
- advanced rules for handling emails. When I want to block a spammer that managed to get my real email, I use regexps to match their mails and reject it with a “REJECT 5.1.1 Recipient address rejected: User unknown in local recipient table” error, imitating the error for unknown users, which often triggers a mail system to remove your address from their database
- easily configure apps to send me email. When I write an application that will send emails to me and only me, I configure it to use my smtp on port 25 without authentication instead of the usual smtps configuration they expect. It connects to it and asks to send a mail to me, which is accepted since I’m a local user. It makes everything way easier (try to do that with gmail and get your IP banned)
- easy backups. Both of the mail system (I backup the whole sdcard of the pi) and of the emails. Never lose an email again.
- creating as many email address as you want easily, possibly regexp based address (awesome to give every site a different address and know where the spam comes from, without using the well known schema
Thank you!
I watched a talk, “fun with email” by Dylan Beattie, and his personal advice was “dont bother self hosting unless you’re using it for contacting other self hosted users”.
Without the dedicated IT support and clout of a large company he said you’re gonna spend more time asking other servers to whitelist you than you’re gonna actually spend using your email.
Is that something you can corroborate?
I’m in a similar boat. The only major issue I’ve found people are likely to run into is mass IP blocks from MS/Google. Where do you host it? Cloud provider these days or colo type place?
I am currently working on this. I got a static IP and port 25 unblocked from my isp. I am trying to do opensmtpd and dovecot with dkim signing.
Do you know if this setup could run on 512mb of RAM? I tried to set up mailman 3 but it gets OOM-killed immediately
You can, as long as you aren’t trying to do virus scanning - ClamAV needs a couple of GB on its own
Nope sorry, that is to little ram. I don’t know how much ram my mailserver uses but will look
Those that are hosting their own mail server, did you stop using regular mail (gmail, outlook etc). Is possible to migrate to self hosted mail? I don’t think I can’t stop using gmail and other google services that’s stopping me from trying to do this.
I’m am stopping using Google services, mail moved ( newer was there to begin with ) Contact moved Missing calendar, but it will be moved.
I’m de-googling my setup 😁
Now for the Final Challenge, write an eli5 tutorial on how to host and maintain a mail server!
I can’t take credit for writing it, but here you go!
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:
Fewer Letters More Letters IMAP Internet Message Access Protocol for email IP Internet Protocol POP3 Post Office Protocol v3, for email; contrast IMAP SMTP Simple Mail Transfer Protocol SSO Single Sign-On
5 acronyms in this thread; the most compressed thread commented on today has 20 acronyms.
[Thread #38 for this sub, first seen 13th Aug 2023, 16:35] [FAQ] [Full list] [Contact] [Source code]