News for hackers. Stuff that matters.
Re:Running your own email is increasingly an artisanal choic... by tzs on Friday December 24, 2021 @10:34AM (#29674395)
I'd like to see something to make it easy to address the case where you are doing #1, but your provider does unilaterally kick you off with short notice for some reason. The email equivalent of a bug out bag [1].

This would be something that provides in a single package an SMTP server, an IMAP and POP server, pre-trained spam filtering, and maybe a web server with a web-based email client, and a simple setup program that asks a few basic questions such as your domain name and configures everything on your end and provides help for configuring things elsewhere (such as with DNS, such as telling you what to put in your SPF and DKIM and DMARC records).

This is meant as something to handle your mail during the time it takes you to find another provider. It is meant to be something you can quickly install on a VM somewhere, point your MX record at it, get a Let's Encrypt or similar certificate for it, and not be losing mail while you are between providers.

It should have a quick start guide that includes details on signing up and getting a Linux VM up at major inexpensive VM hosting places. Amazon Lightsail, Hetzner, and such.

It should make minimal assumptions about your Linux environment. Probably it should not use the SMTP, POP, and IMAP servers that are packaged by your Linux distributor. It should use minimal servers that are written specifically for the emergency mail kit.

[1] https://en.wikipedia.org/wiki/Survival_kit

Re:Running your own email is increasingly an artisanal choic... by rnotaro on Friday December 24, 2021 @10:47AM (#29674531)
https://mailinabox.email/ does most of that.

I have my own domain since when I was about 15 years old and used that for a while on a digital ocean droplets. It's incredibly easy to set-up.

The only issue I had was that other people were not getting my mail and I sometimes it was not even reaching their spam folders. Probably because Google/Microsoft were blocking that IP range of Digital Oceans.

Nowadays I just pay for a personal Gsuite license and use Google Infrastructure.

Much simpler that way and I'm almost guaranteed that my mail will reach the recipients. You only need to set-up your DMARC / SPF records and point your MX records to the ones that Google provides.

Re:Running your own email is increasingly an artisanal choic... by pas on Friday December 24, 2021 @11:22AM (#29674837)
We've been running a small mail host for ~10 years (less than 100 accounts, but outgoing monthly newsletter to a few thousand addresses) ... we had basically zero problem with delivering to Gmail. Their spam filter, while strict and applies throttling (and a bit of greylisting) is completely livable, compared to the balls-to-the-wall insane Outlook/Microsoft "protection" ( https://news.ycombinator.com/item?id=28982434 )
Re:Running your own email is increasingly an artisanal choic... by croutonwagon on Friday December 24, 2021 @01:10PM (#29676036)
Don’t even get me started on outlook.co/o365.

If you put an address or domain in the safesenders list; they do literally nothing. Like you can just totally spoof the domain entirely.

However if you use transport rules as per their rec, there’s all sorts of stuff that will still get flagged, and you have to to reference ATP, anti-phishing, anti-spam policies. Much of which aren’t even in the Exchange admin panel, rather they are in “security” and buried in hamburger menus galore.

And what’s best. They don’t even have any documentation for how these modules interact or what order mail is processed in. I had a case open for months thst finally got escalated to someone that was able to explain the issues we had with specific list serves/domains getting flagged.

In the end my only option was to whitelist emails classes as phishing and route them to junk rather than keeping them in quarantine. Even though it was a 99% accuracy rate sans this single domain.

The guy was really only able to commiserate with me. We are but a number and not a big enough one to get Ms to change a thing. Their best recommendation was to deploy an edge device like proofpoint/proofpoint hosted and just handle it from there.

I get what they want to do. They are trying to make the crazy email RFCs easy for devops guys thst don’t give a damn about how e-mail works. But it’s still hard to keep up with as they constantly just move stuff around and change their own standards on a near monthly basis.

Re:Running your own email is increasingly an artisanal choic... by anamexis on Friday December 24, 2021 @02:05PM (#29676681)
That safesenders list thing sounds insane. How many companies add their own domain to that?
Re:Running your own email is increasingly an artisanal choic... by croutonwagon on Friday December 24, 2021 @02:24PM (#29676871)
Well....that's how I found out about it when I took on my current role. We had pretty solid phishing attempt slip through. I was able to spin up a VPS as test it on mine and some other known tenants as well (with their permission). And since o365 uses a predictable name for their SMTP receivers for a tenant (domain-com-net-whatever.mail.protection.outlook.com)its easy to kind of....select targets and test it out.

So even if its not listed on the domains MX record but you can suss out they are an office365 tenant receiving mail, you may be able to relay off it and spoof to high heavens (especially if the edge device reccomends you....ahem...whitelist your own domain and not use transport rules). In fact especially if you can do this.

For example i think MS forced proofpoint to change their config recommendations as an outcome.[1]

from the page on [1]:

"Due to major complaints, Proofpoint has opted to change change to the format of ensuring Proofpoint mail is not scored via the O365 system. This rule will allow external email to come in still, but will follow O365 scoring. This is to ensure no mail is lost."

[1] https://web.archive.org/web/20200807173336/https://help.proo...

Re:Running your own email is increasingly an artisanal choic... by ananonymoususer on Friday December 24, 2021 @02:02PM (#29676641)
I've been running my own (and other) email servers for over 25 years. About four years ago I switched mine over from sendmail (with a bunch of add-ons like spamd/spamassassin, rbl, etc.) to mailinabox. Mailinabox is full-featured, secure, and reliable. It doesn't take anywhere near the level of effort required to maintain vs. other solutions.
Re:Running your own email is increasingly an artisanal choic... by Clubber on Saturday December 25, 2021 @12:51AM (#29680825)
Microsoft has blacklists the entirety of Digital Ocean and won't whitelist any IPs, even if it's a legit mail server. If I didn't know better, I would say that's anticompetitive behavior.
Re:Running your own email is increasingly an artisanal choic... by selfhoster11 on Sunday December 26, 2021 @08:10AM (#29692121)
If true, that is probably the last excuse I needed to migrate my own email server off Digital Ocean to another provider. Oh well, it's been a very good run, DO.
Re:Running your own email is increasingly an artisanal choic... by codazoda on Friday December 24, 2021 @10:39AM (#29674453)
I use a domain, registered at Namecheap, and I forward to my gmail account. If gmail “goes away” I simply configure my email to forward elsewhere. If I’m unhappy with Namecheap forwarding, I point my DNS at another forwarding provider. If I’m unhappy with Namecheap, I transfer my domain to another provider.

It gives me all the flexibility I need with almost no work or maintenance.

There are enough mail providers that I could easily switch to that I don’t need a piece of software. Switching from gmail to yahoo, proton, apple, outlook, or juno is a simple domain adjustment and has me back receiving mail within the TTL period.

Re:Running your own email is increasingly an artisanal choic... by zbuf on Friday December 24, 2021 @11:53AM (#29675149)
Does gmail actually trust the incoming forwarded email? Or mark a lot of it as spam.

My understanding is that SPF makes forwarding like this no longer possible if the original sender's address is to be preserved.

Re:Running your own email is increasingly an artisanal choic... by shartte on Friday December 24, 2021 @01:00PM (#29675903)
If they are using GMail for work, the DNS just points to GMails actual server and authenticates using DKIM as well. Google for Work will provide you with the necessary DNS entries to set. Obviously this will not work with their free offering, you'll need to fork over $6/month for this.
Re:Running your own email is increasingly an artisanal choic... by zbuf on Saturday December 25, 2021 @07:30PM (#29688452)
Yes, though this isn't forwarding. The mail is actively being delivered into gmail, who must be programmed to accept mail for that domain.

Forwarding, on the other hand, made it possible to do a simple redirect of one address to another (eg. ~/.forward) but strict SPF rules will deny the forwarder as a valid source for the mails.

Re:Running your own email is increasingly an artisanal choic... by XorNot on Friday December 24, 2021 @08:35PM (#29679481)
I used to do this but found every now and again I'd get multi-minute long delays before gmail picked it up. I've since moved to paying for Google Workspace to host my email (eventually hoping I'll move to something cheaper).

The goal is to get my personal domain to be my email domain for exactly this reason.

For my soon-to-be-born son, I'm registering him a personal domain immediately, and I'll turn it over to him when he's old enough to have email - save him some trouble.

Re:Running your own email is increasingly an artisanal choic... by kaetemi on Friday December 24, 2021 @11:53AM (#29675144)
But what if... the TLD owner decides to 10x the domain price?
Re:Running your own email is increasingly an artisanal choic... by deadbunny on Friday December 24, 2021 @12:14PM (#29675340)
As someone who de-googled about 5 years ago by buying a nice three letter .io address this hits right in the feels.

I could go through the process again (not fun) with some ridiculously long .com/.net or other OG tld which are probably somewhat more resistant to rent seeking practices like this or I just suck it up and hope it remains pricey but not egregious.

Re:Running your own email is increasingly an artisanal choic... by kaetemi on Friday December 24, 2021 @12:34PM (#29675562)
Are there any truly "community-owned" TLDs for the tech community? Would such a thing be possible and/or useful?
Re:Running your own email is increasingly an artisanal choic... by noizejoy on Friday December 24, 2021 @01:48PM (#29676486)
For Canadians, .ca seems a generally well behaved and managed TLD under community control.

EDIT: .ca is not particularly tech community related, but that doesn’t matter to me.

Re:Running your own email is increasingly an artisanal choic... by cubesnooper on Friday December 24, 2021 @04:08PM (#29677750)
For personal domains, I bite the initial cost and buy the domain for 10 years, then every year top it up to 10 again. For a $20/yr domain that’s only $200 up front, and if the cost suddenly goes up or some other TLD policy changes that I hate, I have plenty of time to gradually move to a cheaper/better domain.

One thing I’m not sure of is what happens if I want to switch registrars in that time—will the full 10 years of ownership transfer to the new registrar?

Re:Running your own email is increasingly an artisanal choic... by AnonC on Friday December 24, 2021 @10:51PM (#29680220)
Like you, I have domains registered for 10 years and extend it every year so that it always remains at 10 years.

If you switch registrars, your domain validity continues as before. Your registration information is with the registry for your TLD, not with the registrar alone. So your 10 years of (future) ownership will carry over. Two caveats to note. The first is that you can’t transfer a domain within 60 days of purchase or renewal. The second that I’ve seen is that a transfer to another registrar requires a one year renewal for the domain. So I’m guessing you may not be able to transfer a domain that’s already at 10 years (even taking into account 60 days after the renewal to keep it at 10 years). But if your domain is at nine years, you’d surely be able to transfer, and it would become 10 years at the time of transfer.

The expiry date never changes through all these actions.

Re:Running your own email is increasingly an artisanal choic... by boogies on Saturday December 25, 2021 @01:39AM (#29681049)
Epik lets you buy domains more or less permanently for a large upfront cost (~$600 for a typical otherwise $10/year domain IIRC). Anyone know any other registrars that do?
Re:Running your own email is increasingly an artisanal choic... by kQq9oHeAz6wLLS on Friday December 24, 2021 @02:12PM (#29676745)
Transfer the domain. You can generally find a deal for transferred domains.
Re:Running your own email is increasingly an artisanal choic... by mwexler on Friday December 24, 2021 @10:56AM (#29674589)
When you reply to emails, does google let you put your custom domain address as the sender so folks don't see the underlying gmail address?
Re:Running your own email is increasingly an artisanal choic... by pas on Friday December 24, 2021 @11:02AM (#29674645)
In fact Gmail requires you to add your SMTP if you want to send from a non-gmail address.
Re:Running your own email is increasingly an artisanal choic... by trillic on Friday December 24, 2021 @11:01AM (#29674640)
Yes.
Re:Running your own email is increasingly an artisanal choic... by rocho on Saturday December 25, 2021 @12:26AM (#29680733)
Do you use Namecheap's email inbox or is that accomplished just with DNS records?
Re:Running your own email is increasingly an artisanal choic... by gnopgnip on Friday December 24, 2021 @01:00PM (#29675908)
Cream does cloud backups for office 365. Most other business focused backup software will do mail server backups in some form
Re:Running your own email is increasingly an artisanal choic... by SteveNuts on Friday December 24, 2021 @11:32AM (#29674929)
iredmail does this pretty well

https://www.iredmail.org/

Re:Running your own email is increasingly an artisanal choic... by raphman on Friday December 24, 2021 @06:57PM (#29678968)
Indeed. I set up my personal email server on a Hetzner VPS using iredmail. It just took a couple of hours and everything actually works pretty well with very little maintenance. Even Hotmail/Outlook.com accepts my emails.