News for hackers. Stuff that matters.
Re:Make the internet yours again with an instant mesh network by aftbit on Sunday January 09, 2022 @06:12PM (#29868421)
>Nowadays, running a website from home is just about impossible. You may not have a public IP, and if you do, it likely changes from time to time. And even then, your ISP probably blocks you from running servers on it.

I'm not sure about the author's country / ISP, but here in Midwest USA, our residential ISPs (cable or DSL, fiber if you are lucky) generally do not change IPs frequently (unless your router/modem is restarted), and generally only block port 25 (SMTP). I've been running a web/ssh server from home in some form or another since 2002, originally with DynDNS to paper over the IP changes.

Re:Make the internet yours again with an instant mesh network by jaytaylor on Sunday January 09, 2022 @07:02PM (#29868836)
Blocking port 25 is pretty annoying. I know there are explanations, but a month ago I really wanted to run a mail server for jaytaylor.com myself. Only to find out it's basically impossible with mainstream ISPs. It's not a realistic option, regardless of Comcast, AT&T Fiber, no big boy ISP supports it at this point.

I don't know if ATT even provides email with my service, much less for a custom domain.

How did the de-facto solution become "Just use Gmail" or pay a third party to do it? It's a little sad for those of us who like running our own servers, total uphill battle. All that work in the early days of the internet to ensure such a feat was possible, only for it to become near impossible for most, regardless of technical prowess.

Just give all your data to a huge company, it's fine. Pft.

Sorry for the rant. Am I really becoming those old hags I used to make fun of on slashdot? Shoot...

p.s. It's easier than ever to do, too, because high-quality docker images are abundant. Tragic for nerds like us!

Re:Make the internet yours again with an instant mesh network by NorwegianDude on Sunday January 09, 2022 @07:27PM (#29869050)
Port 25 is blocked by default for many ISPs around the world, and it makes sense. Look at it this way: If it was open by default, a lot of IPs would be blacklisted, making them basically unusable for email anyway.

You can always rent a subnet or a server including network and host mail yourself.

Re:Make the internet yours again with an instant mesh network by zrail on Sunday January 09, 2022 @09:00PM (#29869685)
Residential IPs are generally proactively added to RBLs by the ISPs themselves as a form of spam protection. Before they started doing that it was basically whack-a-spammer all day every day for them.
Re:Make the internet yours again with an instant mesh network by gfody on Sunday January 09, 2022 @08:18PM (#29869399)
you can also call your isp and get port 25 unblocked, gp's experience hasn't been my experience
Re:Make the internet yours again with an instant mesh network by jethro_tell on Sunday January 09, 2022 @11:15PM (#29870545)
I suppose you can, but in my experience, I think you'll find that people proactively find the dynamic ranges of IPs in eyeball networks and make it very difficult to get mail accepted. If you want to send email from your own server, you will either have to get a 'business/static IP' account or use an IP in a block where you can both control the RDNS and servers are expected to be. i.e. a VPS provider or colo IP range.
Re:Make the internet yours again with an instant mesh network by pooper on Sunday January 09, 2022 @11:50PM (#29870802)
On a related note, what if I want to run a mail server but only for incoming emails? As in I want to buy a domain and create basically a sinkhole email address and create email addresses like [email protected]

I never need to reply from that email. I just need to be able to read emails I get. Should be much easier, right?

Re:Make the internet yours again with an instant mesh network by jethro_tell on Monday January 10, 2022 @12:17AM (#29870937)
That should be pretty easy. It mostly depends on the exact configuration of the networking where your mail host is and your ability to correctly lock it down so it's not a spam machine.

Receiving email is pretty straight and forward, filtering it can be a little tougher but should be fine.

Re:Make the internet yours again with an instant mesh network by genewitch on Sunday January 09, 2022 @07:21PM (#29869006)
Which docker images? I've been having trouble finding "simple" mail servers for incoming and outgoing. Stuff like postfix and dovecot make my eyes cross, I just want to point DNS at an IP and send and receive mail there, securely.

It's not that I can't set those other ones up, I just don't want to, nor should I have to for a small service...

Re:Make the internet yours again with an instant mesh network by doublerabbit on Sunday January 09, 2022 @08:04PM (#29869303)
I've been using Zimbra 8 for years. Not a docker image but has a single install script and sits on ubuntu. It's a poor-mans enterprise email client for free.

It's a bit chunky and when it doesn't fall apart it has a nice friendly client with support for mobile. Includes all the bells and whistles of spam assassin, dkim, briefcase etc. Mobile view is a bit dated but it works for elementary sending / receiving.

The free version has no backups which is a pain and makes me scared to reinstall/move away from. But for a all-in-one email server client it does have a charm.

Zimbra 9 looks nice but licensing.

Re:Make the internet yours again with an instant mesh network by prox on Monday January 10, 2022 @06:21AM (#29873149)
Is it for non profit? Maybe you can apply for a license that way?
Re:Make the internet yours again with an instant mesh network by dspillett on Monday January 10, 2022 @06:40AM (#29873287)
I've been using Zimbra's free edition for quite some time myself too, since v4 IIRC (back before it moved from TomCat to Jetty). Ran DayJob's mail server from it for a fair few years too.

> The free version has no backups which is a pain and …

I “simply” rsync the key parts off to my usual backup locations (where snapshots are made etc.)⁰. There are a few articles on how to do this floating around. The restore procedure is basically the same as transplanting a Zimbra instance from one install to another¹. For paranoia's sake I have a small extra VM that automatically restores itself from the latest backup daily, and I check occasionally to make sure it is running fine and has recent mail. That VM is not publicly addressable, but if my main instance dies irreparably I could make it so easily and flip DNS over to point its way, probably bumping up its RAM allocation too, losing at most what happened since the last backup. The VM actually thinks it is the “real” primary instance, even with the same local network addresses, as they live behind a split DNS arrangement. A copy of this VM can be used to test upgrades and other major admin to an extent too.

> makes me scared to reinstall...

I've found upgrades work smoothly, if you wait a bit after major versions to let the quick adopters iron out the issues first, so I've not had to completely fresh install. Just don't upgrade the base OS at the same time as Zimbra. For OS upgrade when an Ubuntu TLS release nears its own EOL or Zimbra's support for it does. I do by reinstall rather than upgrade but for Zimbra in the process things are the same as the backup restore operation. There has always been sufficient overlap between Ubuntu LTS lifetimes and what versions Zimbra supports that this has worked for me.

> makes me scared to … move away from

I've successfully used imapsync³ to move mail between various servers in the past, including into, out of, and between, Zimbra instances. Obviously that doesn't cover calendar data, config, and other features, if you use them, but for mail it is a good option. Regular syncing to something else could be an extra fall-back backup option too though I've only used imapsync for one-off bulk transfers.

> Zimbra 9 looks nice but licensing.

Same. Given how many times Zimbra has changed hands I'm surprised similar hasn't already happened sooner and I've had a good run with it! Maybe closer to 8's EOL others will start maintaining reliable builds of the OS parts, though I'm thinking I'll shift to something else next year. I've mainly stuck with Zimbra because it just works, given my needs have changed considerably over the years something lighter will probably be better and if I'm going to have to do more work (or pay, of course) to keep using Zimbra it is definitely time to properly reconsider the state of the many alternatives. At least we've got a decent amount of time to transition.⁴

[0] Hot rsync to local LAN backup first to speed up the part where the instance needs to be down, stop Zimbra, rsync to local LAN again to get a consistent backup there, restart, then soon after that the local backup is rsynced off to the offsites.

[1] Install same OS+Zimrba versions, stop, restore data from backup over the top, some steps to check/fix perms, off you go. Again, there are examples in the docs & forums.

[2] As [1] just with the new OS.

[3] https://github.com/imapsync/imapsync

[4] IIRC 8.x is due to EOL and stop getting security updates at the end of 2023, I'm intending to have something else in place by the end of 2022. If I have time to look around properly and make a decision by then, maybe I'll get around to it over the extended bank holiday weekend at the start of June.

Re:Make the internet yours again with an instant mesh network by songzme on Sunday January 09, 2022 @09:27PM (#29869886)
Stuff like postfix and dovecot also make my eyes cross

I've been using nodemailin to receive all emails as POST requests. Set the DNS ip address to a vps on hostwinds (they don't seem to block incoming port 25) so it worked for me right away.

https://www.npmjs.com/package/node-mailin

https://www.hostwinds.com/

Re:Make the internet yours again with an instant mesh network by ireflect on Sunday January 09, 2022 @08:08PM (#29869333)
docker-mailserver is pretty good. It does use postfix and dovecot, but at least the default config is very good and you don’t have to touch it much.
Re:Make the internet yours again with an instant mesh network by nsotelo on Tuesday January 11, 2022 @02:16AM (#29888544)
maddy

It's a single go binary that supports IMAP and SMTP, with a CLI (maddyctl) to help you set it up. TLS can be added with acme.sh.

Re:Make the internet yours again with an instant mesh network by cft on Monday January 10, 2022 @12:44AM (#29871075)
I pay $15/mo for static IP with att. I just sent a message through the chat in their site, please unblock port 25. They replied ok, and it got unblocked next day
Re:Make the internet yours again with an instant mesh network by fragmede on Sunday January 09, 2022 @08:18PM (#29869398)
The solution is to pay for business-class Internet at your home.
Re:Make the internet yours again with an instant mesh network by jaytaylor on Sunday January 09, 2022 @08:39PM (#29869541)
That's true, even though I'm not a business.

Would it be more cost effective to do a DO droplet? (haven't tried it personally yet).

Re:Make the internet yours again with an instant mesh network by willjp on Sunday January 09, 2022 @09:25PM (#29869875)
You can tunnel wireguard from a local server to a cheapie DO droplet for about 5$ USD/mo. Only one ipv4 pre dropte though. I read a blogpost that mentioned a free tier cloudflare service for public ips, but have not investigated.
Re:Make the internet yours again with an instant mesh network by zrail on Sunday January 09, 2022 @09:04PM (#29869716)
At least where I am, the business class internet that I have access to doesn't come with static IPs and is approximately three times as expensive as residential for the same service level.
Re:Make the internet yours again with an instant mesh network by jethro_tell on Sunday January 09, 2022 @11:17PM (#29870567)
yes, a VPS would absolutely be cheaper. Even if you get the port unblocked, you're still not going to be able to set reverse DNS for spf records unless you have a business connection with static IPs. An IP alone will probably cost you the same as a VPS that will run a tunnel back you your home box.

In my experience, a business connection is usually twice the price and half the bandwidth.

Re:Make the internet yours again with an instant mesh network by jaytaylor on Monday January 10, 2022 @12:23AM (#29870964)
Actually I just remembered, I can probably use my free Oracle OCI VM, not sure if they'd set up reverse DNS, though. Will have to file a ticket or search about it to learn more.

Disclaimer: Currently I work there, and it's true anyone can get a free VM "forever" (I've had one for 4 years).

Re:Make the internet yours again with an instant mesh network by chayleaf on Monday January 10, 2022 @03:45AM (#29872016)
you need to have a "paid" account to open a support ticket, but it's still very much free

also, newer accounts (from June I think) have port 25 closed by default, you need to open a ticket for that too

Re:Make the internet yours again with an instant mesh network by waynesonfire on Monday January 10, 2022 @01:40AM (#29871366)
I almost did this; but my residential account has a "life-time" price contract which the business-class internet does not have. I worry that the business rates will increase with a higher probability.

:(

Re:Make the internet yours again with an instant mesh network by SturgeonsLaw on Monday January 10, 2022 @12:28AM (#29870987)
Even if it was open, it's very common for spam lists like Spamhaus to block residential dynamic IPs by default
Re:Make the internet yours again with an instant mesh network by Gigachad on Monday January 10, 2022 @12:48AM (#29871113)
A fair measure imo. You are probably going to see 1 legitimate email server mixed in with 1 million infected spam machines. For the legitimate user, its easier to tell them to rent a $5/month VPS.
Re:Make the internet yours again with an instant mesh network by gspr on Monday January 10, 2022 @03:48AM (#29872041)
> For the legitimate user, its easier to tell them to rent a $5/month VPS.

Quite often blocked, too.

Re:Make the internet yours again with an instant mesh network by xwolfi on Sunday January 09, 2022 @11:24PM (#29870609)
There are free tier at some third parties to redirect for you - usually port 25 is blocked outbound, not inbound (at least mine does this), so you can receive email easily, sending them out you use a free service but they can read all your emails.
Re:Make the internet yours again with an instant mesh network by waynesonfire on Monday January 10, 2022 @01:38AM (#29871357)
> How did the de-facto solution become "Just use Gmail" or pay a third party to do it?

But, also, havn't you read all the cry babies on hackernews talking about how complicated it is to run a mail server? Why would you even try??? And, don't take calculus when you're in high school. That's hard too, I heard.

Re:Make the internet yours again with an instant mesh network by onion2k on Monday January 10, 2022 @03:32AM (#29871942)
But, also, havn't you read all the cry babies on hackernews talking about how complicated it is to run a mail server?

Complexity isn't the issue. It's about the utility of doing it. What you gain from running your own mail server is so minute that it's not worth the effort even if you think it's simple and easy. I could run my own MTA from my house, but I pay someone else to because being a sysadmin is so boring.

Re:Make the internet yours again with an instant mesh network by vladvasiliu on Monday January 10, 2022 @01:41AM (#29871370)
In France, it depends on the provider. The ones I've tried:

Orange DSL would change the IPv4 fairly often, sometimes while using it during the day. Huge PITA. You could pay for a fixed IP. No IPv6 on DSL. I have no experience with their fiber offer.

SFR used to have a fixed IPv4 on FTTH, but now they're rolling out CG-NAT. Which is even worse, because not even DynDNS can save you. Not sure if there's the option of paying for your own fixed IP. You do get a fixed routable IPv6 prefix (/56 I think). Older installs based on FTTC + Docsis get a new IPv4 on reconnection; no IPv6.

Bouygues still seems to have a fixed IPv4 on FTTH. They're rolling out IPv6 with a fixed /60.

There are "pro" offers, but they usually require you to have an actual registered business, which does incur some other costs.

--

Edit: Added IPv6 info.

Re:Make the internet yours again with an instant mesh network by alcover on Monday January 10, 2022 @05:58AM (#29872986)
I'm at OVH dsl. My IP has not changed in years.
Re:Make the internet yours again with an instant mesh network by Arkanosis on Monday January 10, 2022 @04:03AM (#29872149)
Free also has been doing CG-NAT for years now.
Re:Make the internet yours again with an instant mesh network by waynesonfire on Monday January 10, 2022 @01:35AM (#29871345)
when i signed up for verizon fios maybe.. 3-4 years ago, they blocked http port(s). i'm not sure if they still do.

also, the author makes the point that you quote,

>> You may not have a public IP, and if you do, it likely changes from time to time.

you then go and deny this claim and contradict yourself,

> generally do not change IPs frequently (unless your router/modem is restarted)

That's the point the author is making. How frequent and what may cause it doesn't matter, the point is, your IP address will change. When it does and if you ignored that in your infrastructure, you'll have problems. Regardless of how frequently it happens, you have to deal with dynamic IPs.

Re:Make the internet yours again with an instant mesh network by userbinator on Sunday January 09, 2022 @10:36PM (#29870292)
From what I've heard and experienced, Southeast Asia is mostly "interNAT" -- you don't get a publicly routable IP unless you pay a lot more, CGNAT is all you get.
Re:Make the internet yours again with an instant mesh network by xwolfi on Sunday January 09, 2022 @11:25PM (#29870615)
I have a fiber in Hong Kong and it seems "normal", even if I think we have what you say for mobiles. How do I check ?
Re:Make the internet yours again with an instant mesh network by userbinator on Monday January 10, 2022 @12:31AM (#29871006)
Start a listening service, portforward to it if you're behind a NAT router, then use one of the online port scanners or some other host you have access to from somewhere else on the Internet to attempt connecting to it.

Yes, mobile internet has AFAIK always been behind a NAT --- I'm not sure if you can even get such a service with a publicly routable IP, since there's not much interest in e.g. hosting a server on your phone while you carry it everywhere, as useful as that could be.

Re:Make the internet yours again with an instant mesh network by lettergram on Sunday January 09, 2022 @10:05PM (#29870112)
You can get 5 static IPs from AT&T for $5/month. I’ve done this recently, the techs were confused but I was able to configure well enough on my own
Re:Make the internet yours again with an instant mesh network by piperswe on Sunday January 09, 2022 @11:27PM (#29870633)
Wow! Is this for residential or commercial service?
Re:Make the internet yours again with an instant mesh network by lettergram on Sunday January 09, 2022 @11:48PM (#29870784)
Residential
Re:Make the internet yours again with an instant mesh network by csdvrx on Monday January 10, 2022 @01:39AM (#29871361)
Do you have the name of the offer, or how to ask for it?
Re:Make the internet yours again with an instant mesh network by lettergram on Monday January 10, 2022 @02:32AM (#29871638)
Re:Make the internet yours again with an instant mesh network by csdvrx on Monday January 10, 2022 @07:18PM (#29885195)
And I did, and I got that for just $15 for 5 IP. I think I may take their 16 IP (leaving 12 usable) if it works well enough
Re:Make the internet yours again with an instant mesh network by cft on Monday January 10, 2022 @12:46AM (#29871093)
Same here. They've also unblocked port 25.
Re:Make the internet yours again with an instant mesh network by sneak on Sunday January 09, 2022 @06:36PM (#29868621)
Cox (USA) blocks inbound port 80, rendering it impossible to get Let's Encrypt certs via http validation.

This started in the last year and affects millions of people.

Re:Make the internet yours again with an instant mesh network by chana_masala on Sunday January 09, 2022 @07:18PM (#29868982)
I used to think "who cares? why would I want to self host?" but even if I or anyone doesn't care about self hosting, the fact that they block everyone from doing so is wrong.
Re:Make the internet yours again with an instant mesh network by sneak on Sunday January 09, 2022 @07:26PM (#29869041)
Pointing a dyndns at your home connection for vhosting toy apps and sites on existing hardware with no additional cost is a long tradition in tech.

Not everyone wants to give monthly Danegeld to Bezos.

Re:Make the internet yours again with an instant mesh network by jessechahal on Monday January 10, 2022 @04:30PM (#29882882)
I have the same problem with my ISP. Solution was easy, just use DNS validation. All my home service's have valid Lets Encrypt certs using this method.
Re:Make the internet yours again with an instant mesh network by wingmanjd on Monday January 10, 2022 @11:51AM (#29877622)
At my previous home, Xfinity let me host my personal webpage/ webapps on 80/443. IIRC, they did block 25.

I moved to a new location a few miles away, and Xfinity doesn't cover this area. The new ISP blocks the following:

"TCP 25, TCP 80, TCP 443, TCP 445, TCP 1080, TCP 6667-6669, TCP 1433-1434, TCP&UDP 135-139, TCP&UDP 67 are blocked for security and network management reasons"

The only way I can get high speed service that doesn't block these is to purchase a business plan from PennTeleData, but they won't even talk to you unless you have a federal tax ID for an actual business.

I ended up putting haproxy on a free Oracle instance and changing what port I listen at here at home.

Re:Make the internet yours again with an instant mesh network by H1Supreme on Sunday January 09, 2022 @10:01PM (#29870090)
I'm outside of Pittsburgh, and I've had two different IP's in the last 10 years. The IP change only happened when I upgraded my service a few years ago. I suspect it would still be the same if I didn't change plans.
Re:Make the internet yours again with an instant mesh network by Semaphor on Monday January 10, 2022 @05:50AM (#29872910)
I get rare IP changes (not sure when exactly as I don’t care much because Dynamic DNS is a thing), have the option of a 5€/month static IP, and have no ports blocked. Germany, Vodafone cable.
Re:Make the internet yours again with an instant mesh network by hello0990911 on Tuesday January 11, 2022 @11:50AM (#29893984)
This is one of the use case for the tor network. Gives access to local machine even if all the ports are blocked by isp
Re:Make the internet yours again with an instant mesh network by MauroIksem on Monday January 10, 2022 @03:28AM (#29871925)
I do the same..
Re:Make the internet yours again with an instant mesh network by codetrotter on Sunday January 09, 2022 @07:13PM (#29868940)
> our residential ISPs [...] generally only block port 25 (SMTP)

While outbound connections to port 25 may be blocked, the ISP we are with still allows inbound connections to port 25.

I have a few accounts on the net tied to an old domain, and what I've done with that domain is that I now have the MX record for that domain set to my home IP address, but I reject connections to port 25. Then, when I need to reset a password for an account tied to an email address on the old domain, I start a simple mail server on my computer that accepts incoming mail, and I open for incoming connections on port 25.

I receive the password reset mail, and then I block port 25 again and shut down the mail server program.

For services that are actually important, I’ve changed the email address associated with the account to a hosted one, so that I receive mails about billing and such related to those services.

For less important accounts where I only need to be able to receive password reset mails but otherwise don't want mail related to the service, I keep them associated with the mail address of the old domain that has its MX record set to my home internet IP address, and where I only accept incoming connections when I am doing a password reset.

This way I can receive those password reset emails while avoiding most spam since I only keep port 25 open for incoming connections for short and infrequent periods of time.

It’s certainly too peculiar of a setup for most people. But I figure some others here on HN may find that they might want to do something similar.

So if your ISP allows incoming connections on port 25, you could set up MX records on a new domain or on a subdomain of an existing domain, and run your own server for the sole purpose of registering accounts or receiving password reset emails, and like I do only run that server when you are creating an account or resetting the password for an account.

It’s sort of a fourth option to other alternatives that I more often see other people use. The four ways that I commonly see others do it is:

- Some use “+” addressing with your Gmail account. Not ideal because spammers know of the “+” trick and can just strip the suffix.

- Some self host catch all mail. Not ideal because spammers also blast out email to commonly used names for email addresses. So if you have a domain and you accept mail to any address at that domain you will get spam for addresses like bob@ your domain, sales@ your domain and all sorts of random names @ your domain.

- Some generate a uuid as name portion of email address, unique for each service, or some other scheme with unique name portion per service. This is pretty good but has a couple of drawbacks still. One of which is that you need to explicitly create a new account in your mail system each time, which also can take time – this can be set up so that the operation is pretty simple but still.

- Some use a throwaway email from a free service like Guerrilla Mail or similar. Mostly fine if the account you are registering is really just some temporary thing, but if you do decide that you want access to it later then because the mail address was temporary you will not be able with most throwaway mail services to read mail for that address after like 1 hour or 24 hours or whatever limit they have set. So then password reset becomes difficult or impossible. Also some sites maintain lists of domains from such services and will not allow you to create an account with an email address using any of those domains.

Whereas what you might do instead, which is what I am doing now, is to run catch all but only during the moments where you know you will be receiving an account creation or password reset mail.

For this I use a very basic mail server that receives the mail and just dumps the mail in the terminal that the program is running in. Portions of some mail may be base64 encoded, but you can just copy the encoded text, run a base64 decoding program in another terminal and paste it into that. macOS, FreeBSD, most Linux distros etc all come with a base64 encoding and decoding program shipped with the default install of the system. At a glance it may seem like a bit of work, but I find this the simplest and fastest for the purpose of receiving one-off password reset mails.

First of all, forward port 25 TCP from your router to your computer.

Then, create an MX record on the domain or subdomain that you'll be using.

Install aiosmtpd:

  pip3 install aiosmtpd
And then run it:

  sudo aiosmtpd -l 192.168.x.x:25 -n
where again 192.168.x.x is the LAN IP address of your computer.

Then when an email is sent to any address at your domain you should see the message show up in the terminal where you have aiosmtpd running.

When you've received the mail, shut down aiosmtpd on your computer and disable the port forwarding of port 25 TCP on your router. Also, remember to update the MX record next time you want to receive an email if your global IP address has changed in the meantime.

Also, instead of running aiosmtpd as root you should find out how to bind it port 25 as a non-privileged user. See for example https://stackoverflow.com/questions/413807/is-there-a-way-fo...

See also https://aiosmtpd.readthedocs.io/en/latest/cli.html for aiosmtpd command line usage and https://aiosmtpd.readthedocs.io/en/latest/ for other details about aiosmtpd.

If you are feeling adventurous you could write some code to make this even simpler to use. Perhaps going as far as to both automatically enabling and disabling the port forwarding for your router (for example by emulating the login and other HTTP calls that your browser would send when you manually manage the router), and updating the MX record for your domain if needed, as well as to write received mail to disk in Maildir format. https://en.wikipedia.org/wiki/Maildir

Re:Make the internet yours again with an instant mesh network by Karrot_Kream on Monday January 10, 2022 @03:42AM (#29871994)
Wow the idea of using a throwaway MTA to block marketing emails is super interesting. Do you reset your MX record after the reset is finished, or do you just go back to blocking 25?

But at that point, why not run your own MTA all the time and then just have your firewall cut port 25 off? When you want to start accepting mail again just turn the firewall rule off temporarily. That way you don't need to muck with setting up the MTA.

Re:Make the internet yours again with an instant mesh network by codetrotter on Monday January 10, 2022 @12:41PM (#29878451)
I keep the MX record all time and just block port 25. Before using it again I just double check that the global IP is the same still or if the MX record needs to be updated.

> But at that point, why not run your own MTA all the time and then just have your firewall cut port 25 off?

You could do that as well for sure. Mainly I do it the way I do simply because the mail server I am running on my desktop that I linked to is run from the terminal and I routinely close terminals which I am not using.

But for example instead of running the server from your desktop you could use the same general idea and have it always running on a Raspberry Pi and block port 25 like you say.

Re:Make the internet yours again with an instant mesh network by Karrot_Kream on Monday January 10, 2022 @02:45PM (#29880808)
I was thinking of just having my MTA sit in a daemon process and then messing with firewall rules. Thanks for the idea!
Re:Make the internet yours again with an instant mesh network by codetrotter on Monday January 10, 2022 @04:37PM (#29882984)
You’re welcome :)