Question about Mailcow on Netbird

forestgoat@lemmy.world to Selfhosted@lemmy.world – 26 points –

I set up Netbird with Nginx Proxy Manager to reach my self-hosted servers. But I can't get it to configure Mailcow. Does anyone have an idea how I can make Mailcow work with Netbird and NPM?

7

It should be easier to port forward SMTP to the mailcow installation for incoming mail and only use NPM for the web interface.

If netbird has enough DNS support you might be able to setup all the mailcow recommended settings there so you have auto discovery from mail-clients on the netbird VPN.

Incoming mail is pretty easy to get working anywhere, but outgoing is restricted if your IP adress is in any way suspicious. Using sendgrid, authsmtp, or something similar is the easy way.

For the hardcore, finding a VPS with a company that blocks outgoing smtp as default but will unblock if you convince them you're responsible can be fun and/or frustrating. You'll have a mail relay there for outgoing email at the minimum but can also get incoming email via that server. The smallest possible server should be enough.

Apart from that, I'd like to host Mailcow myself. I tried to do this via the option stream in NPM but that doesn't work.

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
DNS Domain Name Service/System
HTTP Hypertext Transfer Protocol, the Web
IP Internet Protocol
SMTP Simple Mail Transfer Protocol
VPN Virtual Private Network
VPS Virtual Private Server (opposed to shared hosting)
nginx Popular HTTP server

6 acronyms in this thread; the most compressed thread commented on today has 7 acronyms.

[Thread #836 for this sub, first seen 29th Jun 2024, 07:05] [FAQ] [Full list] [Contact] [Source code]

Its not recommended to put Mailcow on a home network. You also need PTR set, witch you normally do at your vps hoster.

What's wrong with it on a home network?

Sending email from home connections is extremely difficult because almost all providers blacklist home ISPs. You also need PTR to be accepted by Gmail. And with tunnels or VPN you most likely get network issues.

it used to run pretty well on one, but the lead dev made significant changes making it a bitch to run without doing it "his way". What I ended having to do was change my nginx configuration so that I was using the one in his docker-compose directly as opposed to running my own that would point to his for mail related needs.

I forgot what exactly broke but when I reported that breakage I basically got told "tough shit, it works on my set up", I don't remember being demanding or impolite just reporting the issue and asking if he was aware of/had plans to fix it. Not too long after the product was acquired and I chalked it up to enshittification and shitty dev being a shitty dev.

TLDR; good luck and ymmv