Unless u have actual redundancy with 24/7 uptime and static IP, it may caused missed emails. Even if u do, the price is a factor u may need to consider.
setting up email is easy, configuring it so you don't get caught in spam filters, and you don't get a ton is a full time job. I did it for awhile and just didn't find it worthwhile any longer.
Honestly, not everything needs to be a firsthand experience to know it’s not something I want to do. Hosting my own email is definitely something I’m good with living through others vicariously.
i use to setup qmail to host a few domains, works really well, even mail blast is like really efficient. picked up a lot of fundamental about email, dns, ssl along the way.
just make sure you put a good filtering system before the email reaches your server. like mimecast, proofpoint, etc.
nowadays, you can further secure your access to pop3,imap on email server using service like cloudflare tunnel.
I've been hosting my own email server for 20 years. Not at home though, fuck trying to do it on a dynamic IP. Also fuck 123-reg for mangling my DKIM and making me think I was going mad.
I've hosted my own email for 2 years now. Using proxmox mail gateway on a 5€ hetzner VPS. it relays mail to my mail server which I host at home. I've dealt with my home public IP changing every now and then with 2 simple scripts. SPF, DKIM, DMARC is all set up.
All in all, it's relatively low maintenance. PMG makes a good job filtering all the crap and I have yet to receive and actual spam in my inbox (I only had a couple false positives).
I documented the whole setup, can share if you want.
I set one up for a while and it was a royal PITA! I have since switched to a managed email account using my own domain. So much less trouble. It's just not worth it in my opinion.
How many of you all here, using a hosted solution remembered to setup DKIM on their custom domain? hostname alignment can aid in email deliverability, i believe.
If you want to do it for fun and learning, ok I guess.
But nobody really does it anymore.
For actual mail that I would use, just go with a mainstream provider.
If you want to actually learn real-world skills, get yourself your own 365 tenant with a single license. Well worth the spend (or free if you can get a partner license).
Ask that question about anything, and ask these same questions about the same:
Do you want to learn?
Do you have a reason to want to have understanding and control over it?
Do you have the time, resources, energy and aptitude?
You've just answered your own question :)
Some people have a deep distain for the idea of self-hosted email, but there's literally no good technical reason you can't do it yourself. I think people react so strongly and insist it shouldn't be self-hosted because they couldn't hack it ;)
(yes, I'm poking them for fun)
Seriously, the only compelling reason they mention isn't compelling: if you're worried about deliverability, pay a reputable service for smarthosting through them. Problem solved, and you still get to 100% control your own filtering, logging, storage and access.
I'm using gmail with my own domain and I still get my email filtered out. You would need to warm your IP address for years to not get into spam folders in most places. Not to mention the uptime issue. I would not recommend. You may try fastmail or some similar service instead.
If you work in IT or similar these concepts may become important, and that makes the effort worth it to me. Otherwise, I agree with the other commenters.
No, it won't give you any good work experience. Everyone uses Office 365 or Gsuite these days, and most of the orgs still using on-prem Exchange are trying to switch.
It is much cheaper than a package on a ISP, where you pay monthly your Domain and most time have limited mailboxes.
Why should I pay 10 or more Euro for my ISP, getting randomly mailboxes without DNSSEC, DANE, DKIM and so in, when I can get all of this for monthly 5 Euro.
Ok I pay actually arouns 8 Euro, but have a fully featured plesk, which is nameserver for my domains, yes I said DOMAINS.
I have all actually security features working, all my domains are best rated by security checks, have automatic reputation check and prevention.
So why pay 10 or more for mid-class ISP mails or around 8 Euro for full featured own plesk, where I can host as much mails, subdomains and other.
Ok, I'm an IT person, but my configuration isn't that complex and also I dont have to do time taking maintainance, because plesk is automatically updating most things.
have been running my own mail server(s) since early 2000. If Hillary can, you can :)
but of course there are downsides as well, you need to expose services from the outside, you need to allow SNMP inbound, you need to deal with DNS and various mail security enhancements, deal with anti-spam and do mailware/virus scanning etc. on top of that you would need to consider some kind of "high" availability. if your server goes down = no emails..
for me its worth it, my exchange server have been running for the last 10 years or so, I publish both webmail and use the outlook and/or mail in my phone.
I have multiple domain (10+) and run my own DNS.
The only thing I can't do is send emails.... I have to rely on my ISP for outgoing emails, but that's a good thing as generally my emails are not marked as spam as they comes from a trusted source.
Waste of time, massive headache, constant security threat. Set a relay up for outbound so you can get consolidated root mails and system alerts. But skip the inbound and let Apple/Google/someone else manage the threat surface.
I remember that job and also building the server myself from scratch. Qmail, Squirrelmail, Dovecot and all that. It lasted about a year until we bought something as it was hell. Now days with IP reputation and spam filters - even if the server ran, you’d never get anything delivered outbound.
OP, the most I would do is an SMTP server that relays through Gmail for delivering alerts from monitoring systems. Anything else is pain.
That's all we do for clients that need on-prem equipment to scan that don't support integration with Gmail/outlook online. Spin up an SMTP relay for things like scanners, alerts, Databases, etc. and just run that straight into Google/Microsoft Mail servers.
Our latest migration was with MailEnable and going to Exchange online, which was a collosal mess.
I finally built my own mail server because if something broke my alerts would sometimes hit the maximum limit for a non-business gmail account and not get delivered.
I learned a lot, but it is a pain in this day and age. I had to set up SPF and DMARC records to get it to deliver to gmail. I guess the next adventure is DKIM.
I have an Exchange vm setup the last 3-4 years now. I use smtp2go for outgoing email. Works really well. I primarily use the system for alerts emails and mailing lists I use. If it breaks its an annoyance but nothing critical. I have a mail filter in front that all incoming mail goes through.
I've run my own mailserver for about 20 years. I don't know if I'd recommend others do the same, but I wouldn't recommend against it either.
Once it's up and running, it's surprisingly low-friction. I have a VPS with a provider I trust, and it's running nothing else. Other than keeping everything updated, it requires very little ongoing maintenance. Mostly making sure you keep up with dmarc, TLS, etc best practices before the big providers call them requirements, instead of after.
I think the real difficulty is starting fresh, greenfield. Not only can one misconfiguration ruin your day, but if it's an issue that other providers notice, the smell hangs around for a long time. Most the big providers (gmail, microsoft, yahoo) will do absolutely nothing to work with you, so if they take a dislike to you - well you're screwed. There's no way to get in touch with them, no way to ask them to look again, etc. The juggernauts will usually give the impression they don't actually have anyone working for them at all.
You'll also learn a lot more about DNS. Whether you like it or not :)
Things that aren't so fun .. OS updates are always the terrifying one. My provider is really good about letting you spin up a new instance while keeping the old one around for a month so you can switchover when you're ready. I use that for most things - but for my mailserver, I don't want to because I don't want a new IP. I like that it's my ball and I can pick it up and go play somewhere else if I want, but the amount of reputation that the big providers pin to IP, makes this a lot more difficult than it sounds.
The other fun sticking point is monitoring. I get emails if my mailserver (or DNS) go down .. but because my mailserver is down, I don't receive them until it's back. That's not ideal, but I never seem to get around to doing anything about it. (because when it's working, I want to leave it alone. When it's not working, it's too late.)
I think the main thing to keep in mind is that it's difficult to "lab" outbound mail. There's very little "just trying something", very little experimentation, etc. Getting things wrong has too many long-term effects. You wanted to try a new MTA and now Google think you're a spammer? Putting the old one back does not fix your reputation. Putting the old config back does not fix your reputation. Doesn't matter how much you clean, that smell is going to take a long time to go away.
That's a lot more difficult to put into words than I thought it'd be.
I think the big thing is that they're not in the race to the bottom. Their customers choose them for their level of services, not because they were the cheapest host in a list. So spammers don't want to use them because they're not the cheapest, and they don't want to host spammers because that ruins their value proposition to their regular customers.
What else .. small enough that they're not faceless. and I'm not nobody to them either. They've been at this at least as long as I have, so it doesn't feel like they're going to disappear tomorrow. And they're fairly active with their community through a good old-fashioned mailing list. Which also helps to get to know them and what level they're working on. It's nice knowing that when I mail them, I don't get through to an AI, or an L1 on a script, I'm gonna get Andy.
It's a tough one though, because trust is earnt, not researched. But I do prioritise putting a mailserver on a provider that keeps a clean house - because you don't want to find yourself getting blocked because your neighbours misbehave.
A provider that isn’t on the ball about managing outbound spam will quickly find their IPs (if not the whole prefix) blocked. If someone runs a spambot from a VPS, and then you get the recycled IPv4 address when the instance is removed, what’s to tell Microsoft you’re not also a spammer?
Depends. I have my private mail system working and for the most part it works fine. However, its indeed a bitch to deal with blacklists and ISP policies. Took me two years to convince the ISP to give me a business line with two IP addresses and no port filtering. The mail system has to be configured correctly.
Knowing I have full control over everything is great, but its not for everybody.
As other said. If you want to see if you can. Yes fun go for it.
Don’t use it for anything important. And know that your ISP will very likely have that port blocked already. And if you call them to ask them to unblock it they are unlikely to be willing to.
This is to prevent scammers and spammers.
Also. Know that even if you were able to. Getting other mail servers to not instantly junk your mail is actually quite difficult or impossible. So your emails would always land in spam, be outright blocked, or be in junk.
Been hosting my own email for over 20yrs. Get a vps at some reputable hoster, and make this a dedicated mailserver. Be sure to setup all dns records that are required, and rollout antispam measures.
I used a guide to setup an email server on couple of vps, and I have been running this for 7-8 years now.
Adding additional features and security implementations. My servers are scoring max scores on all test I could find.
Allowing me to have freedom to do with emails and domains as I wish to. And it just works.
I would not change my setup for anything right now as I would see it as a downgrade.
You need to understand a lot of things but it is doable and once all is setup it just works, as long as you follow up on things like domain and certificate renewals.
I am even considering moving my mail server to my homelab… just for fun, as I still would have a backup smtp on vps.
I have been an email administrator and I run my own, personal email server for about the last 4 years. I've administrated Microsoft Exchange, on-premise and online and GNU/Linux Postfix/Dovecot/SoGo. I prefer the open source email offerings to the M$ stuff.
As others have mentioned, email is something that you would probably want hosted in a cloud somewhere and definitely NOT running locally at home (most ISPs block port 25 anyways so, running a email server at home is a crazy challenge). A free-tier cloud somewhere should be enough to get you started with an open source email server. The two cloud services that I use block port 25. I had to open a ticket with their support to open port 25. But, once that port is open, you can have a full fledged email server.
Check out https://www.iredmail.org/. It's open source, easy to get started, rock-solid, secure, and they have tech support via their web forum. ( I say 'they', but it's literally like one dude). This is what I use for my personal email server. I have custom IPS and Geo-IP filters for security. It's been running issue free for the past 3 1/2 years. I've never missed an email lol.
Use https://mxtoolbox.com/SuperTool.aspx for troubleshooting delivery issues. And, to learn all about the different DNS records a healthy email server needs.
Running an email server is challenging, but it's not something to be afraid of. It is labor intensive, requires active administration and not something that you would want to simply "set and forget". But, with the right administration, running your own email server can be very rewarding.
After trials and errors, I find it good to work on as a hobby project / just for fun, but not for your day to day emails. In my case, my SMTP server literally only runs for my printer that has a scan-to-email feature on it, wouldn’t trust it for anymore than that
Doing it to actually use, fuck no. Email is the most vulnerable part of any org. You need to have a proper spam filter, dmz, web domain, several DNS records, certificates etc in order for mail to even flow in and out. It'll just be a headache and there are so many free options.
If you want your own special email domain, get suite for 1 person at 12 bucks a month and have it all just work.
Everything looks good, and wonderful but there's always a surprise waiting for your.
Coming from an exchange engineer with over 11+years experience
Honestly it's fun and all but I wouldn't recommend for anything work related. If I were to run a mail server at home I'd make sure I get a mail gateway you can proxy your mail through that manages blacklists and reputation.
Unless there's a strong academic reason, it's probably more work than it's worth for the average person. It becomes a vector for attack, and there's external infrastructure that has to be maintained as well (DNS, SPF, DKIM, etc)
Nay, emphatically. Out of the box, a new SMTP server is treated by peers as yet another spam delivery vehicle. You have to prove to the world you're not a fly-by-night spammer. There are certain things you have to do with your domain's MX record, as well as in terms of SMTP server configuration. Oh, and if you're ever caught with an open relay on port 25, that will get you blacklisted instantaneously...
I'm running my own mailserver on a VPS for about 4 years. I'm using https://mailinabox.email/ It's a one command installer that installs everything you need for a mailserver to run, including roundcube webmail, nextcloud, DNS server, static html page hosting, and it runs on low resources, I'm using a very cheap VPS server with 1 core and 1GB RAM, I pay 3.79 euros monthly for VPS and it's been running great.
Not sure why this isn't higher. Everyone seems to be talking about the complexity of the stack, but I've also been running MiaB for several years now on a digitalocean droplet with no issues at all.
I have my own mail server for using some of the service that requires mailing to my own domain.
It needs a static ip for best, which I have. But I’m currently lacking Ptr( if I named right, just a dns thing to do reverse checking) due to I’m not using business line and my isp doesn’t provide the service for home users.
Having one is great, but don’t use it as your main email service.
The only issue hosting your own non-bisiness mail server is that a lot of internet providers block incoming port 25, so you may not be able to recieve incoming mail.
Getting a reverse DNS setup may be an issue as well which will bring your mail score down.... But you can increase the score with SPF and DKIM implementation.
Just make sure that you secure your server from unauthorized relay or you'll be blacklisted in no time.
It’s an interesting exercise to learn about how everything interacts and works. Beyond that I would absolutely not bother. It’s high effort, it’s shit to maintain and secure. It’s shit to debug when mails don’t arrive.
In 2023 the threats to mail servers are so plentiful and ever changing, it’s the thing every business should give up — let the army of security pros at Microsoft and Google worry about those, honestly. Use the economies of scale of what they do protects millions of mailboxes, instead of you having to do all that same effort of work to protect 5 mailboxes.
I'm running my own over 20 years now. For my own domains and catch all and temporary email address. For very long time temp email was not available commercialy. Now we have simple login, I think Firefox has something similar and few others.
I would say it pretty self sufficient, no need to tinker when all is set up.
I have always been exim user and I only know exim.
The only pain I have now is that let's encrypt certificate gets renewed every 3 months and exim is unable to read it, so I need to fix permissions.
The bonus point and weired flex is the ability to read email via telnet to port 110 and sending email chatting to the server on port 25 lol
I run three of them now, one since about 2005 and haven't had any blocking issues on it. I have also always set up DNS records as well as had a static IP.
The biggest problem you'll run into is sending email from your residential internet connection. Most, if not all, residential ISPs either 100% block or severely throttle port 25 outbound traffic to cut down on spam. Even if you're able to find an ISP that doesn't block 25 outbound, if the reverse zone lookup indicates that it's a residential ISP most spam filtering solutions are going to flag all of your messages as spam.
Always fun to do if learning but in production even for personal i would recommend you pay for something like startmail or mailfence and use their custom domain features.
i learned exchange on my own and even had dreams of doing multi tenant exchange until exchange online came and jerked off all over that dream
I've run my own mail server for over 15 years. If you're going to do it, put it on a VM at a reliable cloud provider, such as AWS. You wouldn't want your email to go down while you're on vacation for a week with no way of fixing it. You need to make sure you use a static IP that you keep forever, because your mail server builds reputation and the IP must not have any reputation of spam that has landed it on block lists.
It's not difficult if you let reuse someone else's hard work to make it secure and keep it updated. This project is fantastic: https://mailinabox.email/
Would I recommend it? It's more rational to bring your own domain to have it hosted by Microsoft or Google, but doing it yourself is more fun and flexible, and possibly cheaper depending on how many users and domains you will be hosting.