Consider still using sendgrid, AWS ses, or some other service for outbound mail. Incoming email isn't bad, but outgoing email is where your more likely to run into issues with your IP being blacklisted/etc
post
I've run mail servers professionally since the 90s, I run my own mail via Mailcow. Be sure you know what you're doing on things like SPF and DKIM or you're going to have a bad time.
Can you elaborate on this?
I am looking into doing the same as op and I have no idea what I'm doing.
If you have been running servers since the 90s, can you provide the list of do and donts?
After setting up mailcow, configure the mailbox to use an external relay (mailgun, Amazon SES, etc). This will cut down your potential headache since the actual mail delivery is handled by someone else. Now you only need to focus on making sure you can receive mails.
I second mailcow. It’s what I’ve been using for years and it’s pretty great.
One thing I’ll add is before you take the plunge, make sure your VPS address isn’t on a block list somewhere. Pay a visit to mxtoolbox.com and you should find some resources there.
As everyone has mentioned SPF/DKIM/DMARC is the absolute minimum. If you're going to be sending your own mail then a PTR record is absolutely required. Also get registered dnswl.org and other whitelist sites. Be prepared to spend some time tracking down why the occasional email goes to spam. Then there's the onslaught of bots and hackers constantly trying to break in.
I've used Mailu to host my own mail server, and at my work we have a standard Postfix/Dovecot setup.
My recommendation is to use Fastmail, Proton, or some other service to save you the headache.
I understand all the pitfalls and caveats, I've maintained corporate mail services (i.e. exchange/o365) but I've not self-hosted before. I know the safe and sane solution would be a paid service, but like I said I'd like to experiment. I'll look at Mailu. Thanks.
Good luck. I'm just paying $1 a month for my mail account. I like my solution to degoogle my mail more. Well to be fair, a lot of my mail still goes through google and then my new account since I haven't updated my mail everywhere.
https://github.com/docker-mailserver/docker-mailserver No web adminiatration you have to use cli but its small an feature rich
i'm using virtuamin myself, gives you a pretty decent interface to work with.
I use iredmail, but I also made sure I had access to port 25 and my IP wasn't on any blacklist. This is the very first thing you should do or all your efforts could be in vain.
I'll certainly double check. I do not believe my VPS blocks port 25 but I'll double check. I'm not going to even attempt to run this on my home ISP. I'm not that much of a masochist.
Ditto. I was in an unlucky block of dynamic IPs from my ISP once. Not only was sending or receiving email out of the question, my IP addresses were somehow part of firewall blacklists as well. I couldn't get to banks at all and tons of random places were just dropping my traffic. It was a serious pain.
Not self-hosting email anymore, but back when I did all the hype was https://mailcow.email.
I use docker-mailserver which is just one docker container running the basic services without the complexity of a webui an managing groupware
I'm really liking the look of stalwart, but it's quite new. Mailu seems to be pretty nice, good features and not too resource heavy. Mailcow does everything, but it's a 🐷.
OpenSMTPD. I run a private mail server for family, and it works flawlessly. No maintenance aside from backups and occasional OS upgrades. https://poolp.org/posts/2019-09-14/setting-up-a-mail-server-with-opensmtpd-dovecot-and-rspamd/
I also have a small domain that is relatively low traffic. A lot of the "all in one" software on the list you linked looks pretty cool, I can't deny.
What I found is that I make very few changes. I used to add mailbox aliases fairly often, but the fact is there are only two users and enabling the "+" syntax in addresses put a stop to me needing to make new aliases when I wanted a new address.
I just don't feel like I need a management interface. Because of this I've just sort of frankensteined my own setup together and I love it. It operates how I expect it to, and enforces the standards I care about to the extent that I desire (e.g. which SPF result codes am I ok accepting?).
- Postfix as SMTP/Submission server. I chose to go w/PAM based for outbound SMTP auth.
- Courier for IMAPS
- Dovecot for LDA (sieve is delightful)
- Snappymail for webmail (served by apache httpd)
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
| Fewer Letters | More Letters |
|---|---|
| IP | Internet Protocol |
| SMTP | Simple Mail Transfer Protocol |
| VPS | Virtual Private Server (opposed to shared hosting) |
3 acronyms in this thread; the most compressed thread commented on today has 6 acronyms.
[Thread #350 for this sub, first seen 14th Dec 2023, 02:55] [FAQ] [Full list] [Contact] [Source code]
If you are recently degoogled, then protonmail is a good option ( not self hosted) you get proton vpn, password manager, calendar , and 500GB drive storage.
New Lemmy Post: Self-Hosting Email - Software Recommendations? (https://lemmy.world/post/9541814)
Tagging: #SelfHosted
(Replying in the OP of this thread (NOT THIS BOT!) will appear as a comment in the lemmy discussion.)
I am a FOSS bot. Check my README: https://github.com/db0/lemmy-tagginator/blob/main/README.md
all 34 comments