New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Comments
Mail.baby with mailcow should not be an issue.
Mxroute would be the better option.
I have been self-hosting email since around 2019. Tried a few things like mail-in-a-box, iredmail and montoba (not sure I spelled it correctly). For the past few years I have been using mailcow and am very happy with it. Occasionally get issues with sending email to hotmail but I do not care much about hotmail/gmail/crapmail etc. Overall, pretty happy with self-hosting but need a bigger server now (running out of SSD).
mailu
It's been a while since i last talked here. Anyways, i got mailcow setup and everything configured. the thing i cannot understand is iptables rules. It's like trying to fix a backend of a server with multiple eth cables.
+got mailcow setup
+ setup nginx as a reverse proxy on the host and removed P443 for nginx inside the mailcow docker yml config (also got nextcloud setup behind nginx. still need to configure it)
+ tested sending emails to my tuta account and it worked. (Already sent a test email to https://www.mail-tester.com/ and got a 10/10 )
+ added a rule to allow myself and it somehow broke iptables (I had ufw disabled before i installed mailcow)
+ attempted to manually fix /etc/iptables/rules.v4 (still didn't work out and still saw broken ports... (open/closed/blocked ports))
tldr: i fucking hate iptables and got mailcow & nginx & nextcloud setup (iptables is so confusing. What the FUCK is a DOCKER-USER rules)
I dont use docker but what little I understand is your forward chain jumps to DOCKER-USER chain which accepts common mail ports , established and related, some redacted ips. Then it drops ssh and rejects the rest.
I would think a new topic will get you more traction
the 2 redacted ips are just 1: my home ip address and 2: another vps ip address. I was planning to just remove
but making a new topic? yeah, i could do that tomorrow (It's 10:08 PM UTC -7 rn)
if you're not a fan of docker, iRedMail can be given a try.
I'm sorry . Didnt realize you were the OP.
What I dont understand about what you posted is masquerading when the source and dest ip are the same.
-A POSTROUTING -s 172.17.0.3/32 -d 172.17.0.3/32 -p tcp -m tcp --dport 9443 -j MASQUERADEI am sure it is just a lack of understanding on my part
i don't remember setting that up. That's my portainer docker server.
i am using docker desktop on my laptop and docker on all of my servers. the thing i don't understand is setting up iptables correctly. in the mailcow docs it says something about "move your ruleset to the DOCKER-USER chain" https://docs.mailcow.email/getstarted/prerequisite-system/#firewall-ports
https://unrouted.io/2017/08/15/docker-firewall/ https://blog.donnex.net/docker-and-iptables-filtering/
might just disable iptables and re-read these blog posts. (and reconfigure my iptables rules useing DOCKER-USER). I can take a look at iRedMail and set it up in a vm in my homelab proxmox server in a ubuntu 22.04 VM. Thanks for the suggestion tho!
I've never gotten ufw+docker to work nor csf+docker to work.
Hell, thats one reason why I ditched docker for good.
Its my personal preference, but do give iRedMail a try in a hobby vm when you can!
Why?
Cheaper I guess and less self hostable maintaining stuff crap bugs.
Easy way = set up cyberpanel it comes with postfix, dovecot and rainloop. It doesn't take much resources and ui is user friendly. Moreover cli and API can be used. One more thing it's free and open source.
Hard way: Setup postfix, rainloop, dovecot and for database use SQLite or mysql. Best thing is that if you don't like the ui you can use it as smtp or usw different ui app like roundcube or others. Most of the ui is compatible with postfix.
@Fubukibox
Sorry, I'm just now seeing your thread for the first time right now. I'm late to the party.
Could I please suggest that you might enjoy looking at:
Setting Up an Email Server; Delivery Issues When Sending From A Clean IP
Fix Gmail Deliverability Problems Inexpensively With Migadu!
I've been using Migadu for several years with zero problems. One of my friends also uses Migadu like me, every day. If you decide to try Migadu, let me know, because I might be able to get you 50% off.
Since you like command line so much:
For context about command line email within the Unix philosophy, you might take a look at Marcus Schnalke's Master's Thesis as well as other parts of Schnalke's website. Schnalke's site includes links to a couple of video presentations about mmh.
As a possible alternative to Schnalke's mmh, you might like:
Here's a blog post comparing mmh and mblaze:
You might want to check out:
I've subscribed to mailop for many years. It's fun to read messages from the true email insiders. Sometimes @jar posts in mailop, and I enjoy reading his posts.
Congrats!
But, sadly, nowadays, even a perfect mail-tester score sometimes is not enough to get delivery to Gmail. See Part II of my first link, above.
Personally, I've used Mail-in-a-Box and some of my friends use it too. Mail-in-a-box is well maintained and has worked well for me and my friends over the years. Mail-in-a-box has a helpful forum.
I used nmh as my main email user agent for a long time. If you want to try nmh, I could share my nmh configuration. I haven't tried mblaze. Right now, I'm using a fast i9-13900 bare metal server, and I am thinking of putting Schnalke's mmh on it. If you might want a shell account, maybe with sudo, we could talk about it. Hope you continue having fun with email! Best wishes!
Sorry for the late reply. Im mostly stuck on configuring iptables. i like reading mail through web gui that mailcow provides. I don't send emails to gmail or hotmail since i don't usually care to send any emails to gmail/hotmail or any other major public mail servers. Although i will check the links you have provided and yeah. I'm mostly setting my mailcow to send emails to my proton/tuta email that is sent from my home proxmox server/nextcloud server so it's something like
Proxmox Homelab --> Contabo VPS (1.2.3.4) --> tuta/proton (10.x.x.x) or something like that. Thanks for the replay tho!
this is cool but i woud prefer sticking with mailcow for now. (and the terminal) Thanks for the suggestion tho!
just read your post, i created my first email server using mailcow. It was pretty easy, and I was lucky to have a clean IP. All is well for sending/receive. I also tried to integrate mailbaby to it, and sending an email was little bit faster. Not sure why. I had 4core and 8gb ram, and have cloudpanel installed as well. Its using about 5.5Gb at the moment with all services up. But then again cloudpanel is still empty, havent migrate anything yet to it. Just to test out stuff at the moment.
Check out https://mailu.io/2024.06/ too, it's pretty nice and easy to install and manage.
I think better cloud solutions. No one it's better for spam like google or outlook
I found stock Sendmail to be more appropriate for most mail server needs, When I found out how configurable it really is, and rarely deviate anymore. That's just my experience, And there are lots of solutions for integrating a web interface because of it's universal or stock Fs based inclusivity. I've dealt with nightmare setups like lots of people have, But knowing how to setup Sendmail as a proper mail server is in my opinion invaluable. It can do more than many think until they read into the Official Documentation.
I have been using Mailcow to set up my email service for nearly two years now, and it has been running well. Choosing Mailcow has proven to be a good decision.
If it's just for personal use, you might also consider the Zoho Mail Lite plan, which is quite affordable and supports unlimited aliases.
I use Virtualmin