News for hackers. Stuff that matters.
Re:How to run your own mail server (2017) by dpcan on Tuesday November 19, 2019 @02:30PM (#21577187)
Then you realize the true pain of having a near-zero reputation when trying to email anything to people on Gmail, Yahoo, Live, etc, etc. Expect to go to spam even if you have DKIM, SPF, and no relaying. If anyone actually knows the secret to not having your own mail-server's mail go to spam on these bigger systems, please tell, I've Googled it for years with no success.
Re:How to run your own mail server (2017) by jjav on Tuesday November 19, 2019 @06:31PM (#21579532)
There is no one secret you can google.

There is also no need to perpetuate the fear of running your own email. Decentralization of core internet services helps us all, not just the person doing it. So to anyone seriously interested and willing to learn, I highly recommend running your own email servers.

If you expect 100% delivery rate, you won't necessarily get that, no matter who is running your email infrastructure. At multiple companies, I've seen email end up in spam even though it is sent from gmail-hosted company account to gmail-hosted company account. So that's the bar you want to meet or beat and beating it is not hard.

From ~7 years experience now, I don't observe any problems with email delivery. I don't do anything special. I use postfix, it is well configured and everything works fine. I host several personal domains and a couple small business domains.

And by doing so I avoid giving google the power to cut me off from email because some arbitrary ML gone bad.

Re:How to run your own mail server (2017) by dasil003 on Tuesday November 19, 2019 @07:52PM (#21580101)
I’ve seen emails marked as suspicious/phishing attempt between two GSuite domains owned by the same company.
Re:How to run your own mail server (2017) by davchana on Tuesday November 19, 2019 @08:55PM (#21580453)
Heck I have seen emails from Google itself, not any gmail username, but information from @google addresses landed in my Spam emails, making me double check the headers that if it is spoofed or real.
Re:How to run your own mail server (2017) by vzttzv2 on Tuesday November 19, 2019 @09:51PM (#21580704)
I think that a good thing, since it mean they're committed to build a good algorithm, instead of just whitelist some big guy and throw everyone else to the trash.
Re:How to run your own mail server (2017) by js4ever on Tuesday November 19, 2019 @07:32PM (#21579976)
I'm doing the same for exactly the same reason (afraid of bad ML from Google wiping my whole digital life)
Re:How to run your own mail server (2017) by DJHenk on Wednesday November 20, 2019 @04:33AM (#21582402)
> And by doing so I avoid giving google the power to cut me off from email because some arbitrary ML gone bad.

Technically maybe. But if most of the people you want to mail are on Gmail, as is the case for many, a cut off from Google is almost as bad.

Re:How to run your own mail server (2017) by wpietri on Tuesday November 19, 2019 @02:35PM (#21577256)
Agreed! I've been running my own mail server for 20+ years, and I would not recommend that anybody do this on a lark. Deliverability to GMail is a huge problem for me and has been for years. I even asked friends at Google to find out what the story was. All I got back is that the mail group was so careful/paranoid it wouldn't talk to them either.

I would long ago have switched over to a vendor, but I use qmail-style tagging for sub-addresses (that is, instead of user+sub@domain, I use user-sub@domain). Almost nobody supports that. Especially not GMail (where my friends could tell me that was tagged as WONTFIX).

If anybody has solved this, please do let me know (on here, via Twitter, or the email address in my bio). It's maddening.

Re:How to run your own mail server (2017) by BenjiWiebe on Tuesday November 19, 2019 @02:56PM (#21577510)
Funny. I'm somewhat new to the game but my email server has had very few problems delivering anywhere (hosting a small business' email, and personal email for the employees.) I've got spf, dkim, and dmarc. I use tls on everything. Got a static ip (linode) with rdns. I've never had a problem delivering to gmail. For a while i had problems delivering to Hotmail/outlook, but participating in some sort of junk mail reporting program (JMRP i think it was) fixed that issue. Now, if i have deliverability problems, it's cause something broke, or my tls cert expired, or i added a new ip that the email server decided to start using. (Sorry for formatting, on mobile)
Re:How to run your own mail server (2017) by femto on Tuesday November 19, 2019 @06:28PM (#21579500)
Having run my own server for 20 years, my experience is also that it is relatively hassle free. I also run my own DNS and have a static IP, which might help with keeping email related DNS records up-to-date.

Running the server is generally "set and forget". Every few years an issue might pop up that requires attention. These issues are generally due to a tightening of other servers' requirements rather than an actual technical issue. When such things do occur, symptoms are an occasional email rejection, and a bit of digging reveals the cause and fixing the cause returns things to normal. I've never had a wholesale rejection of mail from my server

For example, when SPF and DKIM came in, I had to add those records to my DNS. When Let's Encrypt came on-line I proactively added TLS to the server. A number of years ago lack of a Reverse DNS record got me on a blacklist for a short time. That was fixed by contacting the IP address issuer (my ISP) and getting them to add a reverse DNS record. Just make sure the reverse DNS hostname matches the hostname that your email server uses in its HELO messages. A week or so later I was automatically off the blacklist and the few rejections went away. I've never bothered with DMARC. This is the sum total of my experience with running the server.

At times there have been physical problems with the server or network outages with my ISP, but I discount these on the basis that it is my decision to run a server on a desktop PC in my house rather than in a data centre. Easily fixed if I wanted to throw money at it.

Re:How to run your own mail server (2017) by GordonS on Wednesday November 20, 2019 @11:50AM (#21585560)
I've had a similar experience.

Setting everything up in the first place was a massive pain in the arse, definitely not for the feint hearted (I imagine there are tools/scripts to make it much easier nowadays), but it's been almost plain sailing since.

It's very rare that I have delivery problems, maybe once every year or two, which is roughly the same as through my O365 mailboxes!

Only issue is when there is a delivery problem, there is usually nothing you can do. Some of the block lists have a procedure for removal, many don't.

But after running my own mail server for something like 15 years, I've decided I just don't want the hassle any more (even if it isn't much work), and plan to move everything to O365.

Re:How to run your own mail server (2017) by thiagoeh on Tuesday November 19, 2019 @05:49PM (#21579193)
Where your IP came from? More specifically, who is the IP block owner? Ana ISP? A cloud provider, like AWS?
Re:How to run your own mail server (2017) by TheOtherHobbes on Tuesday November 19, 2019 @05:53PM (#21579226)
That's been my experience. I've been running a server since 2012. I've had more problem with incoming mail - specifically being unable to whitelist certain Yahoo servers which get killed by SORB and other spam trackers - than with sending email.
Re:How to run your own mail server (2017) by slenk on Tuesday November 19, 2019 @03:29PM (#21577920)
Sounds like you have the same setup I have.

I never get bounces from Google. And after the first day or two of removing yourself from 2 or 3 blacklists, its great.

I use mailcow FWIW

Re:How to run your own mail server (2017) by jwr on Wednesday November 20, 2019 @05:05AM (#21582529)
I've been running my own E-mail servers for the last 20 years or so, and have not seen these delivery problems.
Re:How to run your own mail server (2017) by Aaronstotle on Tuesday November 19, 2019 @04:55PM (#21578728)
Which mailserver are you using? I'd love to try hosting my own email.
Re:How to run your own mail server (2017) by berkes on Wednesday November 20, 2019 @02:43AM (#21581889)
I would advice to try with mailinabox.email . It is very opinionated, which, for a beginner, is a good thing with mail.

I'd encourage everyone to try this on a tiny droplet or linode with an unimportant domain (don't just migrate your entire companies' exchange into it on a Friday afternoon). It takes you an hour tops, after which you can poke around and see all the moving parts that make a good mailserver tick.

You'll also be contributing to a stronger, more resilient internet, by making it a tiny bit more decentralized.

Re:How to run your own mail server (2017) by wvh on Tuesday November 19, 2019 @06:17PM (#21579416)
I run my own mail server for receiving, but send through a commercial provider (Fastmail). I also use user-sub@domain style email addresses. If I have occasionally have to send email from those addresses, I edit the From line in the Fastmail web interface or my email client.

I don't have a problem setting up a full email server, but I don't want to babysit it for just one person using it. I have too many real life obligations these days to try and fix the mess if a problem would arise.

Re:How to run your own mail server (2017) by wpietri on Tuesday November 19, 2019 @06:22PM (#21579460)
Interesting! Maybe I should try doing the outbound via Fastmail or some other provider. I couldn't shut down my mail server entirely, but it might solve my deliverability issue.
Re:How to run your own mail server (2017) by nullwarp on Tuesday November 19, 2019 @10:01PM (#21580756)
I use postmark to do my delivery. They support outbound smtp that my internal postfix relays to and you pay per email even tho they gave me so many free credits I havent paid anything.
Re:How to run your own mail server (2017) by w0uld on Wednesday November 20, 2019 @10:15AM (#21584588)
I was thinking about doing the same with mailgun. Do you have any obvious delivery issues with outgoing mail marked as spam?
Re:How to run your own mail server (2017) by mgalgs on Tuesday November 19, 2019 @02:40PM (#21577329)
Curious why you're so attached to the qmail style subaddressing. Personal preference or is there a technical advantage?
Re:How to run your own mail server (2017) by wpietri on Tuesday November 19, 2019 @06:15PM (#21579399)
I've given out hundreds and hundreds of them. Almost any time I fill in an email address on a form, I'll tag it so I know where spammers and other miscreants get their addresses from. As have a number of friends I host mail for. Swapping to a mail provider that doesn't support them would be a giant pain for all concerned.
Re:How to run your own mail server (2017) by jethro_tell on Tuesday November 19, 2019 @05:39PM (#21579103)
Probably because s/he has those addresses out there in the wild starting from a time that it was still reasonable to run an email server, so like 10+ years and probably a bit more.
Re:How to run your own mail server (2017) by bdamm on Tuesday November 19, 2019 @05:59PM (#21579287)
That's exactly the case for me, but I've been handing out these addresses for nearly 20 years. I also suffer from the problems with gmail that the GP referred to. I can't even forward all my email to myself without having it dumped into gmail's trashbin!
Re:How to run your own mail server (2017) by big_chungus on Tuesday November 19, 2019 @02:56PM (#21577508)
Possibly not getting blocked. Many sign-up fields will block [email protected] if I try to use it.
Re:How to run your own mail server (2017) by dewey on Tuesday November 19, 2019 @04:21PM (#21578441)
I've ran into this issue maybe twice in years and I'm always using that for websites. I'm having a feeling that issue is a bit overblown.
Re:How to run your own mail server (2017) by yabadabadoes on Tuesday November 19, 2019 @05:30PM (#21579024)
I just add . in arbitrary places to distinguish sources. Since there's no telling what dots a gmail user thinks are a significant part of their address.. (plus I have seen fail and late enough to be a pain, but due to http parameter escaping, etc, rather than intentional fitering.)
Re:How to run your own mail server (2017) by 77pt77 on Tuesday November 19, 2019 @05:47PM (#21579172)
That's why I use "." as the separator.

Now try using an email from a domain name with more that 3 letters in the TLD.

Almost no one considers that a valid address.

Re:How to run your own mail server (2017) by zigzaggy on Tuesday November 19, 2019 @08:57PM (#21580461)
So if I bought my “name.rocks” I’ll have trouble using that as an email? I was looking forward to “[email protected]” and I never even considered it would be a problem. I’m disappointed
Re:How to run your own mail server (2017) by voltagex_ on Tuesday November 19, 2019 @09:54PM (#21580716)
I have something similar - I haven't had many problems with the not being accepted online. The few times I've had issues are with old point-of-sales or appointment booking systems.
Re:How to run your own mail server (2017) by 77pt77 on Wednesday November 20, 2019 @12:30PM (#21586093)
Yes. I'd say way more than half of sites won't accept that as a valid email.

And you'll be flagged for fraud as well.

It's very frustrating.

Re:How to run your own mail server (2017) by wcip on Tuesday November 19, 2019 @10:21PM (#21580845)
I have a .help domain for handing out to services and it works without issue.
Re:How to run your own mail server (2017) by goatsi on Tuesday November 19, 2019 @10:26PM (#21580857)
I use Migadu.com for my email and they allow you to create regex based catchalls [0]. I have one that accepts every email address that begins with "cat". it makes it dead simple to create a fresh email for new services.

[0] https://www.migadu.com/en/benefits.html#anchor_catchalls

Re:How to run your own mail server (2017) by pera on Tuesday November 19, 2019 @03:07PM (#21577691)
I don't have any problems with Gmail, but there is no way to know why :)

As far as I know the most important factor for deliverability is your IP address: my /24 have been clean for many years because the network operator actually respond to abuse@ reports.

If you have problems my first advice (aside from checking that SPF+DKIM+DMARC+PTR+banner+etc... are OK) would be to find a better ISP.

Re:How to run your own mail server (2017) by wpietri on Tuesday November 19, 2019 @06:30PM (#21579517)
This is a physical server (at Datacate [1] in Santa Clara), so switching ISPs is not a small undertaking, especially given that I'm only using 1U of space. Last I looked the netblock reputation seemed fine, so I'd only be inclined to switch if I had clear evidence that was the real problem.

[1] in this block if it matters: https://rdap.arin.net/registry/ip/198.167.232.0

Re:How to run your own mail server (2017) by pera on Tuesday November 19, 2019 @07:43PM (#21580046)
Yeah, the IP address of your MX looks clean indeed, and your config looks good too... I wonder, have you ever tried sending from @scissor.com instead of @williampietri.com?
Re:How to run your own mail server (2017) by wpietri on Wednesday November 20, 2019 @12:07PM (#21585773)
I definitely observe the problem on both domains. Maybe less on my name domain, but it's hard to tell.
Re:How to run your own mail server (2017) by abecode on Tuesday November 19, 2019 @05:34PM (#21579055)
+1 about the opaqueness of gmails spam filters. I once had an email from a google recruiter (@google address) go to spam in gmail so at least it's somewhat egalitarian (that was 5+ years ago).
Re:How to run your own mail server (2017) by ben_jones on Tuesday November 19, 2019 @06:02PM (#21579305)
That makes sense though. An aggressive recruiter overusing their work email to contact cold leads will get flagged a lot, even if the domain is clean I imagine they also train based off of individual addresses.
Re:How to run your own mail server (2017) by 77pt77 on Tuesday November 19, 2019 @05:45PM (#21579148)
same thing. Had an email from a recruiter and another from financial go to SPAM in gmail.

More, google knew this was a thing because they warned me.

Re:How to run your own mail server (2017) by JonathonW on Tuesday November 19, 2019 @02:59PM (#21577564)
Yahoo's disposable addresses are constructed in that form ([email protected]), but I'm not sure if they support them on business/custom domain accounts.

(The base name also has to be different from your real email address, but that's a fairly desirable feature for disposable addresses since it doesn't reveal the real address like the '+' suffix on Gmail does.)

Re:How to run your own mail server (2017) by berkes on Wednesday November 20, 2019 @02:46AM (#21581904)
Just to be clear: the plus(+) thing is not a gmail thing, it's part of the RFC for mail-addressing. A standard.
Re:How to run your own mail server (2017) by colonwqbang on Tuesday November 19, 2019 @02:54PM (#21577488)
I don't see why sub-addresses would be a problem with regards to sending mail. Isn't it wholly up to the receiver to interpret the username part of the address (or not)?
Re:How to run your own mail server (2017) by wpietri on Tuesday November 19, 2019 @06:31PM (#21579531)
It's not. It's a problem for me just paying somebody to host my mail entirely, as most vendors don't support it.
Re:How to run your own mail server (2017) by Jaruzel on Wednesday November 20, 2019 @02:51AM (#21581932)
I do two things:

1. Send mail via a static IP (that I pay extra for)

2. Send all mail through a reputable 'smarthost' (mine is provided by my ISP as part of the 'business' package).

This fixes all sending mail problems. For extra fairy-dust, I added SPF records to my mail server IP.

The BIG problem is Spam. Unless you pay for an intermediary spam filtering service, you will NEVER be on top of it. After self-hosting my own mail system for decades, I am now seriously planning a migration to Office 365.

Re:How to run your own mail server (2017) by huhtenberg on Wednesday November 20, 2019 @04:54AM (#21582482)
> The BIG problem is Spam.

YMMV, but a combination of graylisting, RBL and "sender address valiation" tends to drop inbound spam rate to nearly zero.

Re:How to run your own mail server (2017) by Jaruzel on Wednesday November 20, 2019 @06:00AM (#21582787)
I'm currently hosting a spamassassin instance, and route incoming mail via that, however a lot still gets through :(
Re:How to run your own mail server (2017) by wpietri on Wednesday November 20, 2019 @12:10PM (#21585823)
I'm using SA as well; it's fine for me. My big trick is to route a bunch of stuff right into the spam training system. E.g., when a tagged address I've given out is compromised, that goes right to training. The same goes for spam to random names: also right to SA spam training.

My theory here is that statistically, by the time a spammer tries to send one to an active address, they're likely to have already fed things into the trainer, often multiple times.

Re:How to run your own mail server (2017) by bluedino on Tuesday November 19, 2019 @03:24PM (#21577866)
That is such an overblown issue unless you're coming from a spammer network or trying to use something like a VPS to send mail.
Re:How to run your own mail server (2017) by dgl on Wednesday November 20, 2019 @04:45AM (#21582452)
I switched over to Gsuite and I use qmail style addresses, it’s not as friendly as using + addressing (as in it just works) but you can use regexp rewrites on the paid versions of Gsuite to fake it.

(Disclosure: xoogler, but still happy with Gsuite...)

Re:How to run your own mail server (2017) by throw0101a on Wednesday November 20, 2019 @10:06AM (#21584496)
> I've been running my own mail server for 20+ years ...

Out of curiosity, where does your MTA live? Do you have a VPS? VM/instance at a cloud provider? ISP with static IP? Other?

Re:How to run your own mail server (2017) by wpietri on Wednesday November 20, 2019 @12:19PM (#21585947)
I have a physical server colocated with Datacate in Santa Clara. As far as I can tell the address space is good, and I've had the server there for a number of years.
Re:How to run your own mail server (2017) by XorNot on Tuesday November 19, 2019 @04:51PM (#21578692)
Wouldn't tagging only affect inbound mail? I would've thought a domain forwarder would work around this for migration?
Re:How to run your own mail server (2017) by darkpicnic on Tuesday November 19, 2019 @02:58PM (#21577538)
Fastmail allows this, if I’m understanding your need correctly. I’ve been using it for years.
Re:How to run your own mail server (2017) by wpietri on Tuesday November 19, 2019 @06:18PM (#21579424)
This is true! But when I last talked with them, I couldn't figure out a disaster recovery plan. They had no way for me to back up my users' mail aside from IMAP syncing. Which means I'd have to know my users' passwords. Which seemed slightly more ridiculous than just continuing to host my own mail.
Re:How to run your own mail server (2017) by brongondwana on Tuesday November 19, 2019 @06:26PM (#21579486)
Two options:

1. share everyone's mailboxes to an admin user who does the backup via IMAP.

2. create an app-password for each user which can be used to backup that user. This can be done as an admin user on your account.

Neither of them require knowing the user's password - an admin can override into each account unless it's specifically locked down to deny that. It does require a separate app password per account, we don't have a way to create a single password which can view each user's account without them explicitly sharing the folders, but I'm not sure how you reasonably do anything else without it being a backdoor behind all the privacy settings on each account.

Re:How to run your own mail server (2017) by wpietri on Tuesday November 19, 2019 @06:35PM (#21579564)
Ah, interesting! Yes, I'd be fine with either of those. Right now I'm just backing up via rsync of the maildir tree, so it's not like these are any worse. I just didn't want to a) know my user's passwords, and b) have to have them give it to me any time they changed it.

Thanks for the tip. Maybe my Christmas present to myself will be to murder my mailserver!

Re:How to run your own mail server (2017) by brongondwana on Wednesday November 20, 2019 @03:37AM (#21582142)
Sorry - busy at IETF this week, didn't get to reply before. I would recommend the per-user app passwords over sharing all the folders to an admin account - because that way you see the \Seen flags as the user when backing up.
Re:How to run your own mail server (2017) by rytis on Tuesday November 19, 2019 @03:09PM (#21577711)
You mean you can send emails to <user>-<tag>@<domain> and it'll be delivered to <user>@<domain> account (assuming MX for <domain> is pointing at fastmail)?

Is there anything you need to enable to allow this? I just tried, and the email got bounced back.

Or are you talking about email aliases? As in, you register <user>-<tag>@<domain> first before sending emails to that address?

Re:How to run your own mail server (2017) by mxab on Tuesday November 19, 2019 @03:26PM (#21577888)
Check out uberspace.de. They are great and use qmail.
Re:How to run your own mail server (2017) by wpietri on Tuesday November 19, 2019 @06:20PM (#21579439)
For what it's worth, I don't even need to use qmail. I've been using Postfix for years, which allows this as a configuration option. But I'll check them out for sure.
Re:How to run your own mail server (2017) by jimmaswell on Tuesday November 19, 2019 @09:23PM (#21580591)
If nobody supports it then why did you choose it?
Re:How to run your own mail server (2017) by wpietri on Wednesday November 20, 2019 @12:17PM (#21585911)
This sort of snotty reply is one of the reasons I discourage people from using HN.

I chose it 20+ years ago because that's what qmail supported, back when subaddresing was a new idea. Over the ensuing years, most people ended up converging on + as the more common option, but that's only convention, not a standard. And what standard exists wasn't written until 2008: https://tools.https://tools.ietf.org/html/rfc5233ietf.org/ht...

Re:How to run your own mail server (2017) by jimmaswell on Wednesday November 20, 2019 @01:30PM (#21586818)
If you took that as snotty then that's on you. Maybe people who can't take every simple question not being a delicately delivered paragraph full of qualifiers should be discouraged from using HN, yeah.
Re:How to run your own mail server (2017) by wpietri on Wednesday November 20, 2019 @10:40PM (#21591236)
Yes, please continue to blame readers for your words landing badly. That will surely work out well for you.
Re:How to run your own mail server (2017) by perlgod on Tuesday November 19, 2019 @03:57PM (#21578216)
(I'm the author of TFA.)

I have never had this issue. Generally the issue is either IP reputation of your server (common with VPS providers if you get a recycled IP of a previous spammer) or your domain name.

Otherwise you are probably just unlucky enough to tickle the spam-prevention mechanisms in the almighty "algorithm" run by $BIGMAILER.

I keep one "normie" email address at a $BIGMAILER for situations like this, but at this point in my life I mostly just shrug if some big advertising/surveillance company's email system won't deliver my mail, I just won't email that person.

Be the change you want to see and all that.

Re:How to run your own mail server (2017) by nothrabannosir on Tuesday November 19, 2019 @06:35PM (#21579570)
Honestly, you should put this quote in bold letters atop that article:

> I mostly just shrug if some big advertising/surveillance company's email system won't deliver my mail, I just won't email that person.

Because that changes the tone of the opening paragraphs significantly:

> Luckily, running your own mail server is not as daunting as many would have you believe.

Sure, if you can afford to shrug off deliverability issues to major e-mail providers. Then it is, I daresay, a walk in the park!

Re:How to run your own mail server (2017) by zepearl on Tuesday November 19, 2019 @06:55PM (#21579730)
My IP reputation is absolutely >>pure<< and my domain name is ok.

Still, usually when sending emails to Gmail & Hotmail my emails are "lost" (they don't even appear in the spam-inbox of the receivers).

My usual workaround used to be to 1) login into my throwaway-account on their Gmail/Hotmail systems 2) send an email to my domain 3) reply to that email. After that usually my emails got accepted by those service providers, at least for a while.

I admit that nowadays I don't even do that anymore - when I see a Gmail/Hotmail recipient I just ask for another email address at a different provider or I send the email using my provider's system.

Re:How to run your own mail server (2017) by shiftpgdn on Tuesday November 19, 2019 @08:07PM (#21580184)
Is your domain name a .com? I've found that domains that are not .com domain names generally get flagged by the evil algorithim even if everything else is perfect.
Re:How to run your own mail server (2017) by zepearl on Tuesday November 19, 2019 @08:13PM (#21580217)
Come on - nowadays most domains are non-".com"... .
Re:How to run your own mail server (2017) by shiftpgdn on Tuesday November 19, 2019 @08:20PM (#21580254)
That's not even remotely true. I've worked in cloud/web hosting for years and 99% of users are using .com domains. Yes more new users may be registering ccTLDs or gTLDs but that's generally because they're cheap. And because they're so cheap it creates a nuisance as spammers use them. Look a the .xyz tld. It gives you a hugely negative score on any sort of mailbox spam scoring algorithm.
Re:How to run your own mail server (2017) by jlgaddis on Tuesday November 19, 2019 @10:49PM (#21580935)
I used to keep statistics on this, although I don't anymore. I remember seeing one day that not a single e-mail I received was a .info domain was legit -- that is, 100% of e-mails received from any .info domain was spam.

No idea if that's still the case, though.

Re:How to run your own mail server (2017) by 3xblah on Tuesday November 19, 2019 @07:32PM (#21579974)
However if you can get a correspondent to also set up their own mail server, then you may realise the pleasure of emailing directly from sender's server to recipient's, without using third party email "services" and third party email servers. First party to second party. No third party.

Every time these posts about setting up a mail server reach the HN front page, there are usually complaints and they always center around third party email services. Perhaps it is the use of those services that is the problem, not the process of setting up a mail server.

Spam is probably made easier by the fact that so many people use the same third party email providers. Spammers have less servers to target. (Not the same situation if every user had their own server.) As HN commenters oft point out, email, the protocol and software, is "decentralised". But the widespread "centralised" use of the same third parties to send and deliver mail has negated the benefits of being (theoretically) decentralised.

Re:How to run your own mail server (2017) by ransom1538 on Tuesday November 19, 2019 @02:39PM (#21577315)
Yes. After many years, I think the algorithm is this:

If the FROMs top level domain is in the top 500 websites OR is a .edu NOT SPAM, ELSE, send to "proprietary spam filter". The "proprietary spam filter" is some random crap code that is unique to each email server company. You could spend years trying to figure out how to game "proprietary spam filter" - but it is a fools errand.

Re:How to run your own mail server (2017) by donmcronald on Tuesday November 19, 2019 @02:59PM (#21577557)
I don't think so. I see @facebookmail.com in SPAM folders way more often than you'd expect on both Office 365 and GSuite. I also see mail from Microsoft and Google filtered into SPAM on their own platforms once in a while.
Re:How to run your own mail server (2017) by peterwwillis on Wednesday November 20, 2019 @01:00AM (#21581438)
facebookmail.com is not in the alexa top 500, whereas facebook.com is.

spam filters really are this dumb at big companies. usually the way we'd get around it is we'd call up $big_company and say, "hey, could you please remove our e-mails from your spam list? we would like to send your users a lot of mail right now." a few hours later, we'd be good to go.

this was ~2007. it may be harder to get them on the phone now, and the value of your company may need to be higher (we only had a few hundred million, which seems like chump change these days).

Re:How to run your own mail server (2017) by weaksauce on Tuesday November 19, 2019 @04:36PM (#21578582)
Is that a proper email from Facebook with all that entails or is it a email from a spoofer/scammer?
Re:How to run your own mail server (2017) by donmcronald on Tuesday November 19, 2019 @04:58PM (#21578757)
It's completely legit. I think it's the domain Facebook uses for notifications.

https://imgur.com/a/nzkMNDS

Re:How to run your own mail server (2017) by djsumdog on Tuesday November 19, 2019 @03:01PM (#21577597)
Yea I ran into the same issue. I've got SPF, DKIM, DMAC, and reverse DNS for IPv4 and v6 and still get flagged as spam. I wrote about this a while back:

https://battlepenguin.com/tech/how-google-and-microsoft-made...

It's not as bad now, so I suspect someone at Google is finally listening, but I still don't trust the reliability of e-mail. If I sent someone an e-mail I haven't e-mailed before, I'll let them know on Hangouts/SMS/Facebook that I sent them an e-mail and to check their spam folder.

Re:How to run your own mail server (2017) by deorder on Tuesday November 19, 2019 @02:43PM (#21577365)
GMail even considers some emails from Google to be spam. I missed some important (billing and security notification) emails from Google this way.
Re:How to run your own mail server (2017) by XCSme on Tuesday November 19, 2019 @05:47PM (#21579179)
SkyNet is not good enough for binary classification yet, we're safe.
Re:How to run your own mail server (2017) by djsumdog on Tuesday November 19, 2019 @04:13PM (#21578359)
Yea I was running into problems with my gmail address to other gmail addresses, even before I split off and started running my own server. Their spam filter has a super high false-positive rate.
Re:How to run your own mail server (2017) by Spivak on Tuesday November 19, 2019 @02:37PM (#21577285)
There is no secret, because if there was then it would be used by spammers and then cease to work.

And if there was a secret to building a reputation you could make a lot more money as a brand consultant with it than running an email server.

Re:How to run your own mail server (2017) by singron on Tuesday November 19, 2019 @02:35PM (#21577255)
I had DKIM, SPF, rDNS, etc. at first and went to Gmail spam. I registered on gmail postmaster tools and got some friends and family to add me to their contact lists and send me some outbound mail. Google now sends me more mail than I send them, and now I don't go to the spam list, even for gmail accounts I haven't contacted before. This was for personal email. If you are trying to send commercial email this strategy probably won't work.
Re:How to run your own mail server (2017) by hckr1292 on Tuesday November 19, 2019 @04:26PM (#21578487)
I've had a similar experience. Switching IP address of my mail server lost me some reputation, but mostly just using the directions mailinabox.email has worked for me
Re:How to run your own mail server (2017) by djsumdog on Tuesday November 19, 2019 @04:14PM (#21578365)
I don't have a high enough volume for my personal e-mail to even show up on the postmaster tools.
Re:How to run your own mail server (2017) by singron on Tuesday November 19, 2019 @06:00PM (#21579290)
Mine doesn't show up either, but I figured the verification process might have affected the spam classification.
Re:How to run your own mail server (2017) by rhizome on Tuesday November 19, 2019 @02:47PM (#21577405)
This criticism came up last time too, and I replied that I've been running my own mail server for 20 years off of a DSL line, and I have no trouble sending to anybody (that I've heard of from recipients nor MAILER-DAEMON).

I have DKIM, SPF and no relaying and the only issue in recent memory was when AT&T started bouncing me for some reason. I emailed postmaster@ saying "hey wats up," and the block was removed a day or so later.

Re:How to run your own mail server (2017) by syntheticnature on Tuesday November 19, 2019 @02:55PM (#21577506)
Do you know that your messages arrive in all cases? Not merely fail to bounce, but arrive?

I help with IT for a small non-profit membership org, and the problem isn't the places that throw errors when you send, but the ones that silently accept the message without complaint and route it to /dev/null. We get through fine to Google, but the other big providers are random at best about it.

Re:How to run your own mail server (2017) by rhizome on Wednesday November 20, 2019 @07:41PM (#21590295)
>Do you know that your messages arrive in all cases?

"I have no trouble sending to anybody (that I've heard of from recipients" might not be as artfully written as I would like, but that's what that refers to.

Furthermore, blackholing emails like you suggest is generally rare. RFC 5321 (SMTP) states:

"[D]ropping mail without notification of the sender is permitted in practice. However, it is extremely dangerous and violates a long tradition and community expectations that mail is either delivered or returned. If silent message-dropping is misused, it could easily undermine confidence in the reliability of the Internet's mail systems. So silent dropping of messages should be considered only in those cases where there is very high confidence that the messages are seriously fraudulent or otherwise inappropriate."

Re:How to run your own mail server (2017) by LIV2 on Wednesday November 20, 2019 @03:18AM (#21582053)
Some mail systems can tell you if a user is valid or not during the initial connection while some forward to another mail system or delivery process and therefore cannot tell your MX during their conversation that the recipient is invalid.

The downstream MX could be configured to then send an NDR email itself but this lands you on spam lists as "backscattering" will then send spam back to whoever owns the email address the spammer is spoofing so it's generally not done.

Re:How to run your own mail server (2017) by jasode on Tuesday November 19, 2019 @03:07PM (#21577681)
>I've been running my own mail server for 20 years

Yes, maybe rhizome is successfully running his own personal mail server but your anecdote isn't really relevant. We can't learn from your example because the hidden rules of reputation & spam may not affect you but will affect others.

For example, a commenter (lucb1e) argued[0][1] that I was exaggerating the difficulties of reliably sending email but a year later in 2019, he confirmed the same difficulties! [2]

Do you see why we can't reliably extrapolate from personal experience?

[0] https://news.ycombinator.com/item?id=15525505

[1] https://news.ycombinator.com/item?id=15526127

[2] https://news.ycombinator.com/item?id=19757607

Re:How to run your own mail server (2017) by rhizome on Wednesday November 20, 2019 @08:31PM (#21590602)
I'm at least an instance of one that demonstrates that it's possible. The person you link to sounds misconfigured to some degree, but in the main two things they don't mention are whether they are using static IPs (as I am), or if they tried emailing postmaster@ to try and smooth out their difficulties. There is still a collegial network of people who run this stuff all over the world, and I'm certainly not the only person running a closet mailserver.
Re:How to run your own mail server (2017) by shirro on Tuesday November 19, 2019 @04:57PM (#21578744)
The biggest problems for mail delivery across the board are probably lack of correct helo/reverse ip lookup and being on an IP blacklist such as being on an ISP dynamic address. I will bin those with my mail server as well. That is a very low bar but any naive mail server implementation on a home server is probably going to fail those instantly.

DKIM and SPF are really good signals to have. I have DKIM, SPF, DANE(nobody cares), DMARC, MTA-STS, TLS (lets encrypt) which are all potentially useful in preserving reputation and repudiating emails spoofing my domain sent from other sources.

I have never had issues getting throough to gmail. But for some mail systems, Microsoft in particular I think, they seem to penalise low volume mailers very heavily. You seem to need a certain volume for their systems to cache a reputation score and if you have a small vanity domain/mail server with very low mail volumes you may go straight to the spam folder.

Re:How to run your own mail server (2017) by curiousfab on Tuesday November 19, 2019 @02:34PM (#21577238)
For some reason I never had problems, even after a recent change of my IP address because I moved to a new VPS.

Hetzner VPS, proper reverse DNS, SPF, that's all, not even DKIM. The only big ISP that doesn't like my mails is AT&T and I couldn't care less (in Europe, rarely have to deal with people @att.net).

Re:How to run your own mail server (2017) by the_angry_angel on Tuesday November 19, 2019 @03:29PM (#21577912)
In that case you are very fortunate.

I was running my own mail server for nearly 10 years on Hetzner. Prior to that on other hosts and in the distant past at home. Running mail servers is something I have done professionally and successfully.

The last time I moved boxes as I had many times before. I was on clean IP range but I had no IP reputation at all. In the past this wasn’t such a problem, especially with SPF, DKIM, rDNS, DMARC, server-to-server SSL etc. Around the same time I started having to deal with organisations (legal, etc for a death in the family and later rent) rather my my own circle of friends. It became extremely apparent that my mails weren’t hitting the inbox. But they were being accepted. This was extremely problematic.

I was in the group stating that running your own mail server isn’t hard. I still say that. The hard problem is convincing the big players to let your low volume domains and IPs hit the inbox. I begrudgingly gave up my MX servers last year.

Re:How to run your own mail server (2017) by fiddlerwoaroof on Tuesday November 19, 2019 @04:33PM (#21578546)
I wonder if there's some sort of relay setup that could be used to mitigate this: e.g. if you want to run your own mail server, sign up for some kind of "mail ring" that transparently proxies the (encrypted) traffic from all the member mailserver administrators. That way, your public IP has a higher volume and more leverage getting delivered.
Re:How to run your own mail server (2017) by the_angry_angel on Tuesday November 19, 2019 @04:53PM (#21578708)
Integration with SPF and would be unfun and probably even impractical (max 10 lookups iirc?). I’d also worry about the inevitable abuse which would appear to originate from your range(s). If you can mitigate those though, it sounds interesting
Re:How to run your own mail server (2017) by jstimpfle on Tuesday November 19, 2019 @02:59PM (#21577551)
I just do reverse DNS on a cheap VPS. I believe I don't even have encryption. Almost no problems since I switched to that setup 9 years ago. Some mails to Gmail end up in spam, and just yesterday I had my first "refused due to poor reputation" problem due to an unknown problem with Cloudmark. Have been able to reset my score there by filling an HTML form.

Of course, there are some mails where I don't know if they landed in spam or I just didn't get a reply.

Re:How to run your own mail server (2017) by xiaomai on Tuesday November 19, 2019 @02:38PM (#21577294)
I also have no issues like this (I do SPF/DMARC but not DKIM)
Re:How to run your own mail server (2017) by tzs on Tuesday November 19, 2019 @05:32PM (#21579041)
Gmail has never been a problem for me, even when I only had SPF, sending from my server hosted at Rackspace. But I've had my domain for 20+ years, and Gmail since 2004, so they have had plenty of time to figure out its not a spam source, so this might not have been a fair test.

I just gave Yahoo a try, and that did go to spam, even though it was happy with both SPF and DKIM. I marked it as not spam, and then went and sent another. That went through fine.

I also tried Live. It says my SPF and DKIM are fine, but sends it to the spam box. I marked it as not spam. Nope. Next one still went to spam. Marked that as not spam and tried again. Still spam. Marked that as not spam, but didn't try sending another one yet. I'm going to wait a while, to allow for the possibility that it takes them a while to apply feedback.

I also tried comcast.net. Went through fine.

Re:How to run your own mail server (2017) by amelius on Tuesday November 19, 2019 @05:35PM (#21579070)
Can't running your own email server be done through pulling a well-curated library on a daily basis?
Re:How to run your own mail server (2017) by berkes on Wednesday November 20, 2019 @02:51AM (#21581930)
Not a library, because a mailserver consists of a lot of moving parts and external configuration (DNS etc).

mailinabox.email is probably close to what you want, though. It's opnionated and my tip is to follow those opinions to the letter (or use another such project).

Re:How to run your own mail server (2017) by aleku on Wednesday November 20, 2019 @05:59AM (#21582779)
I've been running my mail server off DO for the last ±5 years - Postfix with SPF no DKIM, DMARC - I get good delivery for Gmail and yahoo. Initially, I thought I would go full on spamassassin and clamav but thought I should hold off until I got spammed. Turns out in the last 5 years the only spammers I've got are 2 senders, one threatening to share video recorded of me on webcam to my contacts and another keeps telling me my domains' seo has expired blah blah. These are 1 or 2 times in 3 months, SpamAssassin would definitely be overkill. Apple Mail client junks them anyway. About 1 year ago I moved the setup into a docker container to better maximize the use of the $10 droplet.
Re:How to run your own mail server (2017) by roberto on Tuesday November 19, 2019 @06:56PM (#21579734)
I have the same problem. I've been running my own mail server since 2000, and last year my sister's account started being used to send spam (I assume she reused her email credentials in another site that got hacked, and spammers used the credentials to authenticate as her in my SMTP server to send spam).

Google shows that my domain has a bad reputation, but I can't fix it because it doesn't have enough traffic. https://www.mail-tester.com gives me a 10/10 (I have DKIM, DMARC, SPF, everything), but my email still gets flagged as spam by Google.

Re:How to run your own mail server (2017) by senorjazz on Tuesday November 19, 2019 @03:54PM (#21578181)
I've run our email server for the last 7 years. Don't have any trouble with gmail.

Setting up was a bit of hassle, but since it was up, I don't do anything with it.

Occasionally I will get the odd notification that a (usually German for some reason) email address doesn't like our domain. But the major providers, never had a problem.

No idea why we haven't had a problem, I didn't know what I was doing at the time (still don't) just followed an online guide. From memory, spf, dkim which I think is all pretty basic things to setup when setting up a mail server and all guides cover it.

Re:How to run your own mail server (2017) by kazinator on Tuesday November 19, 2019 @08:01PM (#21580150)
> If anyone actually knows the secret to not having your own mail-server's mail go to spam on these bigger systems, please tell, I've Googled it for years with no success.

I've been running my own mail server without sending problems for almost a decade. Right from the beginning, I had a clue and knew that sending SMTP directly from a subscriber IP address was going to be a nonstarter. Such IP's have a negative reputation due to abuse. Instead, from the beginning, I used my ISP's (big ISP in Canada) SMTP forwarding host, configuring my SMTP server to log into that server with my credentials.

(I had a couple of hiccups along the way with the ISP's SMTP service, and they wouldn't help me unless I reproduced the issue with a supported e-mail client. Naturally, an Exim server running on Debian isn't a supported e-mail client, because it's name doesn't sound like "Microsoft Outlook" or "Mozilla Thunderbird").

Anyway, the main advantage of running your own mail server is not the ability to send SMTP directly to someone's MX server, but rather that you have your own MX domain for receiving mail, via a machine you control. Your setup isn't "lesser" in any way just because you're sending through a more reputable SMTP forwarding host.

Re:How to run your own mail server (2017) by linsomniac on Tuesday November 19, 2019 @08:30PM (#21580315)
So your recommendation to having your mail not go directly to spam is to run it for a decade? Got it! :-)

I run a mail server for a few thousand users that has been going for ~20 years, and have regularly had to spend significant time figuring out adjustments the big mail providers make along the way. Spending a day roughly every year figuring out and implementing countermeasures isn't that bad, when you get paid for it. But I really don't have the time to do it for my personal e-mail.

Your answer reminds me of something I heard a greenskeeper say about the big garden he maintains, I think in the UK: Tourists come to me all the time and ask "How can I get my lawn to look like this?" I reply: "The secret is to roll the dew off the lawn every morning." "That's it?" "Just do that for 300 years and your lawn will look like this."

Re:How to run your own mail server (2017) by kazinator on Tuesday November 19, 2019 @08:35PM (#21580338)
If you have to do it for your personal mail compared to a few thousand users, the problems will obviously be fewer, because you don't send to as many different destinations as a crew of a few thousand users.

> "Just do that for 300 years and your lawn will look like this."

My point is that I've never had problems in that decade, not that it took a decade to fix. I think on two or three occasions, mail to a gmail user mysteriously bounced, but it went away on re-try.

I understood the reputation problem from the beginning instead of banging my head against it. Why I understood that is because I did some research into running mail servers before diving into it.

Re:How to run your own mail server (2017) by linsomniac on Wednesday November 20, 2019 @01:40PM (#21586956)
And my point, not to belabor it, is that reputation seems to be a pretty big deal these days, and your experience running a mail server with a decade of reputation may be different than the experience someone has setting up an e-mail server today. :-)
Re:How to run your own mail server (2017) by kazinator on Wednesday November 20, 2019 @07:32PM (#21590233)
I do not have an e-mail server that has any reputation.
Re:How to run your own mail server (2017) by linsomniac on Thursday November 21, 2019 @12:30AM (#21591682)
If you run a mail server for a decade, as I believe you said you have, then you've gotten a reputation. This site lists some places you can check the reputation: https://sendgrid.com/blog/5-ways-check-sending-reputation/
Re:How to run your own mail server (2017) by xelxebar on Tuesday November 19, 2019 @11:07PM (#21581007)
Be sure to have a PTR record in the DNS zone of whomever owns your IP address. I have DKIM, SPF and DMARC setup, but my mails were getting sent to spam before rDNS was configured correctly.

More to the point, I discovered this by reading Google's postmaster/bulk mail guidelines. All the other major email providers have similar guidelines, so definitely consult those as a first reference if you are having problems.

There is no mail conspiracy. As always, the problem is DNS.

Re:How to run your own mail server (2017) by swiley on Wednesday November 20, 2019 @02:39AM (#21581866)
This is not a problem I have or have had using a self hosted mail server on and off for nearly a decade now.

What I have had an issue with is the network (the whole ####ing network, those guys are less than helpful) I’m on getting added to spamhause(I think?) and people setting up their (smaller) mail severs to blindly reject mails from networks like that. That’s really dumb and I’m glad for things like dkim because of it.

Re:How to run your own mail server (2017) by hcarvalhoalves on Tuesday November 19, 2019 @04:13PM (#21578360)
Yes, there're a lot of tricks.

I used to run a mail server in the past, and initially had problems with reverse DNS resolution not setup correctly, it's an easy oversight depending on where you host.

https://mxtoolbox.com/problem/smtp/smtp-reverse-dns-resoluti...

Re:How to run your own mail server (2017) by yellowapple on Tuesday November 19, 2019 @04:14PM (#21578366)
Gmail seems to have no trouble with my mailserver. AT&T/Yahoo used to, but there was some online form I filled out at one point to get myself whitelisted (it was years ago; don't remember the details) and that stopped being an issue. The main problem right now is Craigslist (which outright refuses to deliver my server's mail, so I have to use my Gmail account or stick to SMS / phone calls).

Stack: OpenBSD VM (on 1984.is) running OpenSMTPd + Dovecot + a DKIM proxy + ClamAV + spamd.

The more relevant pain point is that the VM hangs every couple months and I have to hard-reboot it from the VPS web console. Also, I've been pretty lazy about staying on top of new OpenBSD releases. One of these days I'd like to go redundant (whether with both mailhosts on 1984 or putting one on a different provider), which would make it less stressful to do OS upgrades (I could keep one host running while doing an offline upgrade of the other, as opposed to hoping the online upgrade process doesn't break anything).

Re:How to run your own mail server (2017) by fpierfed on Saturday November 23, 2019 @01:46AM (#21612817)
I am writing this with sadness and frustration in my heart.

The only issue I have found seriously limiting my ability to use my own self hosted email server is the deliberate decision of Google, Yahoo and Microsoft to make it hard for me to do so.

Their decision is essentially un-appealable. I still get hotmail complaints about spam being sent from an IP I do not own anymore. For the life of me I could not find a way to solve this. Yes I did remove that address from their “responsible domain owner nonsense thingy” to no avail.

Often times I would send an email to a domain owned by one of the big three and that email would just disappear. No bounce back at all. The recipient would not even see it in their spam folder.

They tell you to implement various technical solution line DMARC and DKIM but in the end what really matters is the arbitrary and capricious decision of these three companies against which there is no recourse.

I agree that hosting your own email server is important but this is a battle that I gave up fighting.

Re:How to run your own mail server (2017) by eikenberry on Wednesday November 20, 2019 @01:41AM (#21581617)
Run your own MX servers but use an external service for your SMTP server. A good service will help you with your SPF, DKIM and DMARC setup as part of the service. As you are only using the SMTP service you can optimize for that and ignore mailbox sizes, etc. when shopping around. You should be able to get multiple App Passwords so no shared credentials.
Re:How to run your own mail server (2017) by dvfjsdhgfv on Tuesday November 19, 2019 @03:36PM (#21577988)
I run a couple of mail servers and the beginnings are always a bit rough, but then everything works (mostly) fine. I start by asking Microsoft to unban my IP (for some reasons the IP range with my favorite hosting provider are banned by default by MS servers). They lift the ban and since I'm a good netizen and use my servers strictly for the communication with the customers (and never for marketing), I never have any problems with delivering to outlook.com, hotmail.com, etc.

Google is a different beast. Last time I remember I had to do strange things like disabling IPv6 support in my MTA (which is a good idea anyway as I'm not an expert in IPv6) in addition to the usual SPF setup etc. E-mail is delivered in general, but once in a while some letters go into spam for unknown reason. But this happens rarely, maybe a couple a times a year.

Whenever I set up a new server, I have to start from scratch though.

Re:How to run your own mail server (2017) by amaterasu on Wednesday November 20, 2019 @01:01AM (#21581441)
Not just the big players, I had a conversation with the administrator of the Australian ISP Bigpond about why my server was being spammed. Their response was verbatim "We blocked Digital Ocean, because we get spam from there" Even with good reputation servers, admins are happy to reject legitimate mail for any reason.
Re:How to run your own mail server (2017) by ryandrake on Tuesday November 19, 2019 @02:36PM (#21577261)
Sample size of one but I’ve run my own mail server for years and have almost never encountered problems of this nature.

Right when I started with the VPS, rejections from Comcast started showing up in my logs, and I traced it back to the IP I got being in some blacklist. Requested a new IP and it has been smooth sailing ever since.

Re:How to run your own mail server (2017) by pbhjpbhj on Tuesday November 19, 2019 @05:48PM (#21579181)
I had problems with MS (Hotmail/Live/Outlook/whatever they're call it now) when I changed hosting provider which I traced back to the hosting provider owning an IP that had in the past been associated with spam (that for-real is what I was told) -- that seemed a bit over-zealous to me.

As it wasn't possible to pre-check IP addresses (it wasn't blacklisted, and in any case the email was being served from a different IP to the one that was apparently previously an issue) for any particular hosting company - and I could only afford cheap hosting - then I decided to relent and made an Outlook online account and sent the mail from that.

It seemed totally crazy to me to reject mail from a 15 year old domain that sent at most 30 emails to Outlook per month, _always_ in replay to an email; SPF/DMARC were set AFAIR and whitelisting the email address from within my own 20+yo hotmail account didn't make any difference, MS still wouldn't let _me_ receive the emails. Like if your user says the email address is fine, and sends an email to that address, .. then perhaps you should allow the user to receive that one email??

Re:How to run your own mail server (2017) by philpem on Wednesday November 20, 2019 @06:45AM (#21583019)
The trick to this is not hosting your mail server with a provider which has a bad reputation.

Mine goes through a DigitalOcean droplet and my mail usually gets through (based on the assumption that if I received a reply, the other person must have received it!)

By contrast a volunteer group I'm involved with was using OVH "because it's the cheapest". Suppliers and customers were routinely telling us the emails were going to spam. Moved to another provider (no idea who, the infrastructure team does that) and the complaints fell to a trickle.

Good IP block reputation (check RBLs) + valid SPF + valid DKIM is usually enough to get mail through. Except occasionally to Hotmail... but that's Hotmail...

Re:How to run your own mail server (2017) by ekianjo on Tuesday November 19, 2019 @09:22PM (#21580586)
Easy. Dont run your own SMTP server and instead use Mailgun or other reputable SMTP servers to send emails. they are used by all large newsletter/marketing systems. Free tier services are largely enough for personal users.
Re:How to run your own mail server (2017) by kikoreis on Tuesday November 19, 2019 @11:07PM (#21581005)
I have run my own server for the past 20 years. I don't spend a lot of time maintaining it but managed to enable SPF, DKIM, etc as they rolled in. The most disruption I have faced has been changing connectivity providers and IP ranges. But even then I have been able to insist on being allowed to relay and removed from blacklists consistently. I think it is important some of us do it even if most people live off big provider webmail.
Re:How to run your own mail server (2017) by baroffoos on Wednesday November 20, 2019 @01:05AM (#21581458)
I must have gotten lucky because mine just works. My exact setup is mailinabox installed on a vps at vultr. Have been sending to gmail addresses mostly fine. Had 1 email go to spam in 2018 but everything else has gone through correctly.

Since mailinabox configures everything for you maybe the issue is that when you set it up yourself you don't quite get it exactly right to what gmail and microsoft demand.

Re:How to run your own mail server (2017) by MrLabCoat on Wednesday November 20, 2019 @10:12AM (#21584546)
https://support.google.com/mail/answer/6227174?hl=en

I added my domain and have never had it marked as spam at any major email provider, only a few small, self-hosted servers and that was probably due to misconfiguration or high spam sensitivity. See if this might help you out.

Re:How to run your own mail server (2017) by ulrikrasmussen on Wednesday November 20, 2019 @12:32AM (#21581332)
I have been running my own mail server for over a decade, and still do. However, last year I had to throw in the towel and configure my server to send via an SMTP relay that my hosting provider (transip) provides. That solved all problems I had with sending to the big mail providers.
Re:How to run your own mail server (2017) by theqult on Wednesday November 20, 2019 @05:10AM (#21582553)
You have to configure a super complicated system of SEC-DNS and connect it to Postifix. Thanks to the Spaghetti Fly Monster, this guy made all of this automatically

https://mailinabox.email/

Re:How to run your own mail server (2017) by ianai on Wednesday November 20, 2019 @05:54AM (#21582756)
Gotta love dat curl pipe sudo bash!
Re:How to run your own mail server (2017) by pmlnr on Tuesday November 19, 2019 @05:54PM (#21579233)
It's nearly always a badly set reverse dns vs mail server helo name difference.
Re:How to run your own mail server (2017) by pgib on Wednesday November 20, 2019 @05:22PM (#21589237)
Not a perfect solution, but you _could_ relay through a provider like Sendgrid. For personal use, the cost would be very minimal if not free.
Re:How to run your own mail server (2017) by trekrich on Wednesday November 20, 2019 @01:06AM (#21581460)
the reputation is almost like a protection scheme when it comes to emails. Its prob to make it hard for people to run their own email server. Its better for the security services if most people are doing email from a few providers.
Re:How to run your own mail server (2017) by johnklos on Tuesday November 19, 2019 @03:53PM (#21578157)
Don't be so angry and negative. If you try, you might actually succeed. You just need some patience and perseverance.