News for hackers. Stuff that matters.
Re:Running your own email is increasingly an artisanal choic... by baobabKoodaa on Friday December 24, 2021 @09:07AM (#29673676)
> If you put some decent effort [...] it works

Well, I put in more than some decent effort, and I didn't get it "to work". I detailed my efforts here:

https://www.attejuvonen.fi/dont-send-email-from-your-own-ser...

Please stop spreading falsehoods. If you were able to somehow get your own email server to deliver email to Gmail and Outlook, great, good for you - but stop pretending that anybody can do it.

Re:Running your own email is increasingly an artisanal choic... by sam_lowry_ on Friday December 24, 2021 @09:41AM (#29673940)
I did run my own email server for 20+ years. As you may imagine, I had to learn a thing or two about DMARC, DKIM and SPF, but spread over the years it is not a big investment to make.

Most of the time, delivery problems were of my own creation. Like running out of disk space or accidentally disabling TLS.

Once in a while, Microsoft would start swallowing emails or Google would push everyone to use DMARC.

But overall, the experience has been very pleasant. I host my mails, I own my data. I am not shy of using Google, but my work is not defined by their whims. When Google tells me I ran out of space in my account I just delete stuff because I have copies of everything outside of Google infrastructure.

Re:Running your own email is increasingly an artisanal choic... by throwaway27727 on Friday December 24, 2021 @10:48AM (#29674539)
Lots of sister comments here saying that they've been running a mail server for X amount of years, where X is a rather large number. That will obviously come with some reputation for your mail server, reducing the curve of being classified as down. I would be interested in hearing from someone who tried to setup a new mail server in the last 1-2 years who was able to run it without a hitch.
Re:Running your own email is increasingly an artisanal choic... by cm2187 on Friday December 24, 2021 @12:46PM (#29675712)
In my case x>10y for a personal server, but that reputation got ruined when some test email account I had created with a weak password and forgotten, got breached and some spammers started sending spam. My mail server (smartermail) notified me within an hour of the abnormal number of emails and I disabled the account immediately. But that was it for the reputation of that IP. Fortunately I could switch to a spare, clean IP.

That being said, now I monitor and auto-ban failed authentication attempts to smtp/imap (among others) and running the service is fairly low maintenance.

But the morale of the story is that you are only one weak password from one of your users away from your mail server getting blacklisted as a spam server. So while I think it is fairly easy to run a personal server, running one for a small organisation is another matter.

Re:Running your own email is increasingly an artisanal choic... by behringer on Friday December 24, 2021 @02:19PM (#29676819)
i use a very low sending limit in my mail server. If a user were to send out spam, it would end up being relatively few by the time i noticed.
Re:Running your own email is increasingly an artisanal choic... by baobabKoodaa on Friday December 24, 2021 @11:51AM (#29675117)
According to AWS, most mail servers will not even count statistics for low-volume senders. If that is true, then it won't matter whether your personal email server has been up for 20 years or 1 year, it won't have any reputation.
Re:Running your own email is increasingly an artisanal choic... by peteri on Friday December 24, 2021 @02:17PM (#29676785)
Yeah, I have that problem with gmail, I had a test account with a weak password get exploited a few years ago. Now for any new gmail address I want to send to seems to endup in spam. The problem here is there is no getting out of jail easily for low volume email users.

My personal gmail account is full of spam and emails I do want from email lists end up the spam folder randomly.

Re:Running your own email is increasingly an artisanal choic... by zbuf on Friday December 24, 2021 @12:05PM (#29675244)
This matches my exprience. I switched recently after 10+ years, and was cautious that this might be a problem but it hasn't been at all. I think it has more to do with the choice of ISP.
Re:Running your own email is increasingly an artisanal choic... by pseudalopex on Friday December 24, 2021 @01:48PM (#29676487)
I think they meant servers with no reputation are punished. Other comments said so at least.

What ISP should someone choose?

Re:Running your own email is increasingly an artisanal choic... by zbuf on Friday December 24, 2021 @05:17PM (#29678300)
Interesting, I misinterpreted what was being said!

I'm doubtful a default block would work, as that would even penalise the 'big boys' of email when they make basic network changes and piss off existing customers of both sender and receiver... Its easier and logical to conclude something without reputation yet is therefore sending too few mails to be useful to a spammer.

I've had good experiences with smaller ISPs (currently Mythic Beasts). In contrast, OVH was a poor experience.

I find that reputation (beyond the known "block-lists") appears more likely being tracked for the whole AS number, therefore a lot more to do with your "neighbours" than anything else.

Re:Running your own email is increasingly an artisanal choic... by oblib on Friday December 24, 2021 @11:15PM (#29680330)
>What ISP should someone choose?

What matters most is if the IP address they issue you has been blacklisted for spamming. DigitalOcean is fine but you need to check the IP address before you do the work of building a mail server. Some of their IPs are on a lot of blacklists.

If it's only on a very few you need to look into who's blacklisting it. There are some that offer a way to get delisted and make it easy, there are others that block pretty much every IP address DigitalOcean has (or large ranges of them) and they won't de-list anything within them. Many of those blacklists are managed overseas and not used much in the U.S.

No matter the ISP you should check the IP address they issue for a VPS before you build the email server.

Re:Running your own email is increasingly an artisanal choic... by oblib on Friday December 24, 2021 @10:44PM (#29680192)
I've been running my own email server for around 7-8 years and just setup a new email server on a DigitalOcean vps earlier this year using "Mail-in-a-Box".

That's about as easy as it gets but it still requires some work and you need to check the IP address DigitalOcean issues to see if it's blacklisted before you set it up.

Google makes it easy to get whitelisted. Microsoft email services (Hotmail/Outlook) are a pain though. I tried to get through their process but got nowhere. Other services I had to submit a request to get de-listed. So it does take awhile to go through all that.

Still, I prefer that to hitching that wagon to a 3rd party provider like Google, or any other.

Before I set mine up the 1st time I'd been screwed a few times by 3rd party providers. The last one, I can't recall which, but it was either "MailChimp" or whomever bought them, that I'd configured an app to use and almost as soon as I'd released it they announce they'd been acquired and I would have to use the new services APIs, and of course they cost more, and their services were geared towards mass mailing, and that's not what my apps do, and their API sucked for my needs.

It was about 12 years of dealing with 3rd party bullshit that motivated me to set up my own email server.

If you just want to fiddle around with one to get a feel for it Mail-in-a-Box is a good place to get started: https://mailinabox.email/

Re:Running your own email is increasingly an artisanal choic... by jacquesm on Friday December 24, 2021 @09:11AM (#29673703)
And even if you did get it to work there is absolutely no guarantee that they won't block you tomorrow morning for no reason at all.
Re:Running your own email is increasingly an artisanal choic... by IncRnd on Friday December 24, 2021 @10:41AM (#29674473)
I setup and have been running an email server for around 20 domains for over a decade. There have been no issues delivering to Gmail or Outlook, AOL, or Hotmail. There was some work I did initiallity to remove our IP addresses from blackhole lists, which had resulted from whatever the prior owners of the addresses had done. That was, however, minor and didn't take much time. Similarly, setting up DKIM, SPF, and the like were necessary and ugly to do, but they didn't take much time.
Re:Running your own email is increasingly an artisanal choic... by ireflect on Friday December 24, 2021 @10:41AM (#29674464)
My mail server running on DigitalOcean has been relatively trouble free over the last 9 years. It runs docker-mailserver and is used by me and a dozen employees of my various small businesses.

It requires some effort to maintain and understand, and I’ve had a few deliverability issues over the years but they are generally with niche providers. I’ve never had trouble sending mail to the big providers.

Every time I read comments about the impracticality of self-hosted email, I scratch my head. Maybe I’ve just been lucky.

Re:Running your own email is increasingly an artisanal choic... by dqv on Friday December 24, 2021 @01:52PM (#29676530)
I think DO is really good about policing their IP space. When I signed up for the Microsoft JMRP [0], DO was already a contact of record for the IP I was using. I just appended myself to the list to get any abuse reports as well.

>Every time I read comments about the impracticality of self-hosted email, I scratch my head. Maybe I’ve just been lucky.

I feel the same. I've had one or two hiccups but smooth sailing for the most part. I'm also happy to provide receipts that show how the recipient's mail server is responding when I send the emails. It's a powerful tool to say, "your mail provider is misbehaving, look!" They will wonder how many people tried to send them email that didn't get to them.

[0]: https://postmaster.live.com/snds/JMRP.aspx

Re:Running your own email is increasingly an artisanal choic... by fapjacks on Saturday December 25, 2021 @02:16AM (#29681187)
That's what I've been using for some years and it's never been a problem for me. You are right that you have to have at least a basic understanding of how a mail server works, and there is some configuration to know about. But I think of all the things I host myself, docker-mailserver is the least cumbersome and among the most reliable.
Re:Running your own email is increasingly an artisanal choic... by eps on Friday December 24, 2021 @07:05PM (#29679007)
Easy on generalizations, mate.

I've been running my own mail server since mid '00s. Initially hosted with one of West coast Canadian colos and subsequently moved to an EU colo. Had some deliverability issues with Outlook and Yahoo, but these were episodic and rare even though I set up DKIM only last year and have been running with just SPF and DNS/PTR before that.

I know at least a dozen of others with similar setups and timelines. But we all use dedicated colo'ed boxes on IPs from clean netblocks that weren't previously used for shared hosting. I strongly suspect that attempting to run a mailserver on Digital Ocean, OVH, 1and1 and similar mass-hosting providers will not go well. Just like it will be an uphill battle to run it on a residental IP.

Re:Running your own email is increasingly an artisanal choic... by baobabKoodaa on Friday December 24, 2021 @08:27PM (#29679442)
> Easy on generalizations, mate

What did I generalize, exactly? Parent poster was claiming that anybody can set up a mail server with good deliverability - that's a generalization. I said good for them (acknowledging they managed to make it work) and said that I also tried and couldn't make it work - therefore, clearly not everybody can make it work. Did I not argue against generalization there?

Re:Running your own email is increasingly an artisanal choic... by jjav on Saturday December 25, 2021 @03:53AM (#29681612)
> I strongly suspect that attempting to run a mailserver on Digital Ocean, OVH, 1and1 and similar mass-hosting providers will not go well.

I run my mail server on Linode, no issues at all.

Re:Running your own email is increasingly an artisanal choic... by deng on Friday December 24, 2021 @09:31AM (#29673858)
> If you were able to somehow get your own email server to deliver email to Gmail and Outlook, great, good for you - but stop pretending that anybody can do it.

Yes, that's probably true. I've been running my own server for 20 years now, and I guess that in itself helps with getting my mail delivered (apart from t-online, but who cares about them). At some time I also hosted some mailing lists, but I quickly abandoned that because that's a surefire way to get your IP blacklisted sooner or later. If you set up a completely new mail server, there probably is a lot of luck involved, and I wouldn't recommend it to anyone, at least not for your critical business mails. I pretty much keep doing it only out of nostalgia, it doesn't really make any sense otherwise.

Re:Running your own email is increasingly an artisanal choic... by ftrobro on Friday December 24, 2021 @10:37AM (#29674429)
Haha I have the same experience... I have given up trying to send emails to t-online, but every other email-provider accept emails from the server I manage. It sends a few thousand emails per day.

A few years ago we had problems, but then I realized some of the emails sent from our servers had non-ascii characters in headers (subject, from, to) which caused email-providers to distrust our server. Using encoded-words syntax ("=?UTF-8?B?" + BASE64(text) + "?=") fixed that problem:

https://en.wikipedia.org/wiki/MIME#Encoded-Word

Re:Running your own email is increasingly an artisanal choic... by mehdix on Friday December 24, 2021 @10:26AM (#29674331)
My little server on Hetzner is delivering to gmail and outlook since two years with no hiccups: postfix,dovecot,rspamd.
Re:Running your own email is increasingly an artisanal choic... by jjav on Saturday December 25, 2021 @03:52AM (#29681606)
> but stop pretending that anybody can do it

I do it as well and apparently so do many others.

Not sure why it seems problematic for some, but it hasn't been an issue at all for me.