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

52 points

I’ve been told running an email server is the final boss of self-hosting

permalink
report
reply
26 points

The ultimate boss fight is hosting your email server AND making your family use it

permalink
report
parent
reply
20 points

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.

permalink
report
parent
reply
7 points

Everyone keeps saying that but I just can’t see it. The only time my mails were rejected was because I didn’t know what I was doing at the beginning of my journey. Now, whenever I changed my stack or did some major updates the past 20 years or so, I just go to 2-3 sites that analyze my mail server from the outside and tell me if there is anything wrong. The free tier is always more than enough. Just make sure there is at least one service in the list where you send an email to a generated mailbox and have it analyzed. Just looking at the mail server is not enough to find all potential configuration issues.

I aim at a100% score. It’s time consuming the first time around but later it’s just a breeze.

permalink
report
parent
reply
2 points

This! Never managed to get this achievement 😃

permalink
report
parent
reply
11 points

Would never want to do it. I don’t wanna be responsible for the outage and them needing an important email.

permalink
report
parent
reply
20 points

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.

permalink
report
parent
reply
11 points

Did you mean OpenID perchance? OAuth is not an authentication protocol.

permalink
report
parent
reply
6 points

Oright, yes, I haven’t studied it properly yet, thanks for the correction.

permalink
report
parent
reply
9 points
*

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.

permalink
report
parent
reply
9 points

Buy yourself a cookie!

permalink
report
reply
9 points

If you are looking to do this then go check out Mail in A Box

Great collection and super helpful forums

https://mailinabox.email/

permalink
report
reply
-1 points

Lol you could have read the post, he’s been doing that for 20+ years

permalink
report
parent
reply
3 points

I had read his post. There were plenty of other comments asking how/where and this makes it an easy option.

permalink
report
parent
reply
7 points

As someone who has zero experience hosting anything, what are the benefits of doing this?

Thank you!

permalink
report
reply
10 points

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

permalink
report
parent
reply
5 points
*

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.
permalink
report
parent
reply
2 points

Are there any good recources on how to host you e-mail-server?

I guess slapping it on my local raspberry pi wouldn’t be enough no? So you probably need a quite sophisticated setup so that there are no downtimes?

permalink
report
parent
reply
1 point

Thank you!

permalink
report
parent
reply
7 points

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?

permalink
report
reply
4 points

That’s not true. I run my own email server for 15+ years now. There are only 5 of 6 mailboxes. I never had a problem with any other host. Not Microsoft, not Google. Maybe, the reason was, the IP was also 15+ years assigned to the same domain. I have only known senders, family and friends.

The last days, the hole subnet was blacklisted on some blacklists. So that was not my fault, the growing business of the provider lead to this situation. Eventually I moved to a very small provider and run a mail cow on a vps. On a fresh IP without any reputation. Same ‘customers’, the only issue was with T-Online in Germany, but a mail solved this. To keep this kind of issues away, I use sendgrid as a SMTP forward. With only a few mails per day, this is free. Mailcow provides a lot of features, rspam filtering, a lot better and faster than spamassin. Active sync, imap, webmail, everything. Solid backup, runs without any problem.

permalink
report
parent
reply
1 point

Fun with email was a great talk.

permalink
report
parent
reply

Selfhosted

!selfhosted@lemmy.world

Create post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

Community stats

  • 4.8K

    Monthly active users

  • 3.5K

    Posts

  • 79K

    Comments