News for hackers. Stuff that matters.
Re:IPv4 pricing by syshum on Wednesday July 28, 2021 @12:17PM (#27985578)
Or more strict enforcement by the world on SPF, DMARC and DKIM policies

The problem of spam is actually solved, the problem is no one setups any of these security parameters correct, large and small companies alike all have bad SPF Records, bad or no DMARC, etc etc etc

Re:IPv4 pricing by friendzis on Wednesday July 28, 2021 @01:18PM (#27986321)
Go to any internet-related forum and search history for those keywords. You will find countless stories of seemingly technically people who in the end give up on self hosting and switch to managed mail provider. Because even if you solve those policies perfectly, a personal mail server will have such a low rate of outgoing mail that all the big players will effectively treat it as history-less server and will occasionally route the mail into the black hole. There is no recourse for that.

If 99% of contacts you want to send mail to are on google/yahoo/microsoft you have to play by their rules. And those rules are effectively "send mail internally or gtfo".

Re:IPv4 pricing by nanidin on Wednesday July 28, 2021 @02:21PM (#27987505)
I have self hosted personal mail for over a decade. There are occasional hiccups with deliverability to new gmail addresses, but that is it. In those cases, once a recipient marks me as not spam once, there aren’t any more problems.

I think maybe once in the last 3 years I ended up in someone’s spam box, total. In fact I just sent to a new gmail address and to a university I have never contacted before this week and both were delivered without issue.

Setting up DKIM/SPF/etc isn’t that hard and it’s fairly easy to verify with existing tools FYI.

Re:IPv4 pricing by generalizations on Wednesday July 28, 2021 @03:56PM (#27988944)
It would be amazing if those of you who have successfully self-hosted would get together and make a comprehensive write-up of how to self-host without getting blacklisted. I frequently see comments on both sides of this ("I can't send anything!" vs. "You just have to do it right") and it seems like if there could be some resource (that cuts down the complexity as far as is reasonable) on how to do this from the ground up, there could be much more wide-spread adoption of self-hosting.

Personally, I'm hesitant because I don't know if the end of all my effort will be constant blacklisting. If I could be confident that if I do it right I won't get blacklisted, I probably would.

Re:IPv4 pricing by pbhjpbhj on Wednesday July 28, 2021 @04:30PM (#27989328)
I think the parent is perhaps just lucky. A reason given for mail not getting to Microsoft servers was that a server IP controlled by the same hosting company had in the past been on a blacklist.

I was happy to move hosts to one that was considered trusted, but there was no way for me to know the IPv4 addresses the company had in the past, never mind if they'd been on a pertinent blacklist at some time.

Based on that I think it could work, but there are no guarantees that outside, historical characteristics won't screw things up for you.

Re:IPv4 pricing by nanidin on Wednesday August 04, 2021 @08:17PM (#28068156)
I think I agree with you (RE: make a comprehensive write-up), but I also seem to remember thinking the same thing when I was setting up the latest iteration of the server and then googling it and finding that such a guide already exists :) Part of the problem is that it's an evolving system and things change over time.

Spam is an interesting problem. Assuming one self-hosts and makes their email address publicly available, then one can get a metric for how much spam is flying around. Eventually one will try to stop spam from coming to their inbox, and on doing so one might build a mental model for how the big mail providers combat spam and realize why one's emails are not being delivered. Then one might realize that one is sending mail that one would not willingly receive! And then take action to resolve.

In general though, there is some base effort to establish trust, and as long as you don't ruin it by sending spam, then you shouldn't end up on a blacklist. If you find that your IP was on a blacklist before it became yours, then work with the people that are blacklisting - but at that point it does become a bit of a job. I actually ran into an issue in my professional life where an AWS WAF rule started alerting on one of our own servers hosted in AWS because someone had previously used the IP for malware C&C.

Anyway - I will think on this and see if I can write something up. It's a good idea. My main concern is that there is a gap between the way I did things (sysadmin style) and the "new" way of doing things (containerized).

Re:IPv4 pricing by exporectomy on Wednesday July 28, 2021 @05:23PM (#27989911)
I use shared hosting and my trick is to only send emails that are more important to the recipient than to myself. In this way, if they don't receive it, they complain and then I resend it from gmail instead.
Re:IPv4 pricing by tomschlick on Wednesday July 28, 2021 @04:24PM (#27989272)
The biggest thing people do wrong with self hosting email is using residential IPs which are almost universally black/grey listed. Using a provider like linode, and checking the IP reputation ahead of time gave me better results when I self hosted.
Re:IPv4 pricing by Dah00n on Wednesday July 28, 2021 @06:44PM (#27990717)
That's not them doing something wrong though. There's nothing wrong in hosting a server at home. The problem is clearly the black/grey lists if they black/grey list residential IPs just because.
Re:IPv4 pricing by syshum on Wednesday July 28, 2021 @07:47PM (#27991165)
Might want to check the Terms of Use / AUP on your Residential service, because every one I have ever read says you can not host email, and 80% of them say you can host any server of any kind.

Now most of them do not actually enforce it unless you become a problem, but most of them do put active measures on the network to stop SMTP Servers

For example here is a Exerpt from Comcast AUP prohibiting email and web hosting [1]

>>>use or run dedicated, stand-alone equipment or servers from the Premises that provide network content or any other services to anyone outside of your Premises local area network (“Premises LAN”), also commonly referred to as public services or servers. Examples of prohibited equipment and servers include, but are not limited to, email, web hosting, file sharing, and proxy services and servers;

[1] https://www.xfinity.com/corporate/customers/policies/highspe...

Re:IPv4 pricing by nanidin on Wednesday July 28, 2021 @08:03PM (#27991269)
Google Fiber AUP[0] allows for hosting of anything for non-commercial purposes. Email is allowed as long as the email sent is not "unsolicited bulk commercial email". Time to update that worldview :) Every time we repeat something like "no one allows self hosting", the more people that will hear it and repeat it and make it a self fulfilling prophecy.

[0] https://fiber.google.com/legal/accepteduse/residential/

Re:IPv4 pricing by syshum on Wednesday July 28, 2021 @08:35PM (#27991469)
> Time to update that worldview :)

Why? Google Fiber is Available to less than 1% of US Households. Comcast is the largest Residential ISP last I looked in about 60-70% of US Markets...

ATT has the same policy, and I believe most of the other Cable Providers do as well. My guess would be over 90% of Residential Internet Plans today have a policy inline with Comcast not Google Fiber

Pointing to an outlier to the norm does not mean i need to update my worldview at all.

Re:IPv4 pricing by nanidin on Wednesday July 28, 2021 @08:56PM (#27991570)
Regardless, “every one I have ever read” is no longer true. “Almost every one I have read”, perhaps?

I looked for market share info on Google Fiber but was unable to find it. Mind sharing your source?

Re:IPv4 pricing by rootw0rm on Wednesday July 28, 2021 @10:18PM (#27992095)
i don't know about that. i've always used leased gigabit connections for my email. this article is about Hetzner specifically, which I've leased tons of servers and additional IPs from. AFAIK you don't know the IP you'll be getting until you pay for it unless things have changed recently.
Re:IPv4 pricing by syshum on Wednesday July 28, 2021 @07:46PM (#27991155)
With Tools like Mail-In-a-Box it is not really the tooling

The people that say "I Cant send anything" are likely trying to setup it up on a Residential or "Business" (which is really just a Residential with a slightly better SLA and less overselling) Internet Circuit... Not an Enterprise Internet Circuit

Hint: If they are trying to bundle TV Services with your Internet you are not on an Enterprise Line.

Even if you buy a dedicated IP from these services they still make is hard to impossible to send email on the circuit

Re:IPv4 pricing by MrStonedOne on Wednesday July 28, 2021 @04:43PM (#27989463)
you are confusing spam filtering with blocked emails.

The issue people have trying to send mail is with the latter, where the email won't even show up in the spam filters, it will either be blocked by the mail system or silently ignored.

Re:IPv4 pricing by nanidin on Wednesday July 28, 2021 @06:20PM (#27990511)
When mail has gone undelivered due to non-spam reasons, I typically receive a bounce.

On my server, when I block a message due to trust, I reject the connection. When I block due to spam, the message is received but goes in the spam folder.

I get reports from Google/Microsoft/etc when other people try to send using my domains but their messages fail due to DKIM/SPF failures.

I just want to push back against the “it’s impossible to self host email” meme that seems comes around occasionally. Every time I’ve run into an issue there has been a solution.

Re:IPv4 pricing by kelnos on Wednesday July 28, 2021 @08:34PM (#27991460)
> On my server, when I block a message due to trust, I reject the connection.

Is that how Google/Microsoft/etc. do it too? If not, then your practice really doesn't matter. Most of my friends have an @gmail.com address, so if Google would pretend to accept mail from my hypothetical mail server, but instead just drop it on the floor, that's a non-starter for me hosting my own mail.

Re:IPv4 pricing by nanidin on Wednesday July 28, 2021 @09:09PM (#27991666)
I have never had a problem sending to gmail or Microsoft addresses that didn’t involve at least making it to the spam box. I can’t speak with absolute certainty how every email admin handles things, but I have run into issues sending mail to some domains where I got a bounce and was able to reach out to the admins and get it corrected. Accepting mail for delivery but failing to deliver must be a violation of some RFC or email standard as it makes it impossible to send mail as a non-megacorp.

What I would like to get across is that self hosting is not impossible or unacceptably unreliable. If Google and Microsoft have policies that make it difficult to send messages to gmail or hotmail users, that isn’t a reason in and of itself that we should not self host. It’s a reason that we should work with Google/Microsoft to have better policies - but accepting things as they are and writing off self hosting as impossible is eventually accepting control of email by a limited handful of corporations, which I don’t think is a good thing.

Re:IPv4 pricing by rootw0rm on Wednesday July 28, 2021 @10:06PM (#27992019)
I've also had luck with self-hosted solutions. Gawd, email is a really backwards technology these days isn't it?

But...I've also been in the unfortunate position of leasing IPv4 addresses which were already blacklisted by various sources. It's not a terribly easy problem to solve if you need to contact customers NOW without using a 3rd party solution.

Re:IPv4 pricing by hnick on Thursday July 29, 2021 @09:27PM (#28003475)
I'd imagine personal emails trigger different flags than a bulk newsletter from a small business. One of the key suggestions on setting up a mail server (or even something like Amazon SES) is to 'warm up' by progressively sending more and more emails. Volume and uniqueness are a big part of filters.
Re:IPv4 pricing by nuker on Wednesday July 28, 2021 @10:00PM (#27991999)
> I have self hosted personal mail for over a decade.

Maybe thats why it works for you. Try making new one?

Re:IPv4 pricing by nanidin on Wednesday July 28, 2021 @10:43PM (#27992232)
As the saying goes, the best time to plant a tree was 10 years ago, the next best time is today. Maybe it is tough to get trusted by the major providers in a short time period today, but if it’s something you’re interested in, don’t let that stop you!
Re:IPv4 pricing by nh2 on Wednesday July 28, 2021 @05:56PM (#27990255)
Running a mailserver with correct DKIM, DMARC etc is not that difficult.

I recently made a presentation that has a full explanation of the techniques, why they exist and how they work, on Hetzner Cloud (from the original post):

https://nh2.me/recent/Running-your-own-mailserver.pdf

I find it very easy to configure with simple-nixos-mailserver (much easier than the manual setup on Ubuntu that I ran the years before):

https://gist.github.com/nh2/6814728dc3bea1508323e9bf2213c28d

Re:IPv4 pricing by syshum on Wednesday July 28, 2021 @05:06PM (#27989715)
Self-Hosted Mail servers have the problem that most ISP's will automatically add all of their Service IP;s to BlackLists specifically to prevent people from running mail services on their Internet connections.

Unless you have a Commercial Line that has be specifically designated for hosting content then it is likely any IP you are issued is added to Google/Microsoft/etc Blacklist by the ISP. Most of them clearly spell out in their terms that running a Mail Server on the circuit is forbidden.

Re:IPv4 pricing by SilverRed on Wednesday July 28, 2021 @09:51PM (#27991944)
No one self hosts email on their home internet. You rent out a cheap VPS to do it on.
Re:IPv4 pricing by jtchang on Wednesday July 28, 2021 @12:44PM (#27985865)
How is that solved then if no one setups any of the security parameters correctly? That sounds like the exact opposite.
Re:IPv4 pricing by teknopaul on Wednesday July 28, 2021 @03:41PM (#27988735)
https "solves" Internet security, your bad of you don't use it.
Re:IPv4 pricing by Avamander on Friday July 30, 2021 @06:50AM (#28006593)
Spammers have no trouble making those perfect, you're massively inexperienced on the topic.
Re:IPv4 pricing by judge2020 on Wednesday July 28, 2021 @03:42PM (#27988748)
I don't see why this is downvoted. Domains assign reputation to mail instead of the source IP, and it's fairly obvious that just buying a new domain and spamming from it would tank that domain's reputation for quite a while, even with proper spf/dkim and dmarc p=reject. If all of these are set up, you won't have issues sending from bad shared IPs like the default SES ones.