4 ms·
Ask HN: Best mail server practices for deliverability?
I've run my own mail server for a long time. It's not high volume; just me and accounts for various friends. I've never been an open relay or a spam source, but lately I've been getting reports of emails ending up in the spam folders of a major email provider. I'm looking to make sure I have all my email ducks in a row.
If you run your own mail server, what have you done to make sure your mail server's mail is getting delivered? And if you work at a major email provider, what do you recommend legitimate small email hosts do to look maximally non-spammy?
- wpietri 12y agoAnd for what it's worth, what I've set up lately includes SPF, DKIM, and DMARC.
- kazinator 12y agoSPF only protects your domain from being spoofed by others, and DMARC helps you get reports about who might be doing that. You have a different problem here in that you are somehow being identified as spammy by this big organization's filters. The only way to combat that is to discover why. It could simply be that you are co-located with spammers: your outgoing SMTP is emanating from a spammy IP block, and you are collateral damage. One important consideration for "deliverability" is who you choose for passing on your SMTP.
- wpietri 12y agoReliable sources inform me that some big providers are using SPF, DKIM, and possibly DMARC as a sign of non-spammyness. I would love to discover any other reasons why my mail is getting filed with spam. For what it's worth, searching various blocklists for my and neighboring IPs doesn't turn up anything.
- kazinator 12y agoAh, your message contains a clue that you're using your own (hopefully) static IP to send SMTP mail, rather than using a forwarding host from your ISP. Speaking of looking up in databases, you can check multiple block lists in one step for your IP using: http://www.anti-abuse.org/multi-rbl-check/ http://www.anti-abuse.org/multi-rbl-check/ If that's not the issue, there could be other problems. For instance, does your SMTP-sending IP address have consistent and reliable reverse DNS? Does the reverse DNS match the forward DNS? Some SMTP receivers perform DNS checks. You need clean forward and reverse DNS for reliable mailing. As a minor point, probably it is best if, in addition to clean DNS, the HELO string used by your server is a fully qualified domain name identical to a reverse lookup. You might want to have a "plan B": that is, have some SMTP forwarding host that you can fall back on if things go wrong with your direct mailing.
- kazinator 12y agoIf so, those big providers are wrong. SPF, and those other mechanisms, are about authentication; but spam is not defined as e-mail which is not authentic, but rather as unsolicited, bulk mail. That is to say, any scoundrel with a domain can publish an SPF record. For example owner of "cheappharmaonline.com" can create an SPF record which says that the SMTP servers of "dirty-spammers.com" are allowed to send messages with "cheappharmaonline.com" as the SMTP sender. So when a machine from "dirty-spammers.com" connects to to receivers and sends "MAIL From: whatever@cheappharmaonline.com", that connection will cheerfully pass SPF checks. What the check indicates is that the mail is not a forgery: yes, it really is a genuine spam from the owner of cheappharmaonline.com, and not a competitor forging that domain. Receivers must implement SPF checks in addition to existing anti-spam measures, not instead of them. Anyone who thinks that messages which pass SPF are "non spammy" will eventually learn otherwise.
- kazinator 12y agoSPF could backfire if it is incorrectly configured. If your SPF record authorizes domain X to deliver mail on your behalf, but the actual path is so that it's coming from domain Y, then your genuine mails will fail SPF checks. When I rolled out SPF, I checked that things are working by sending mails to an account with a mail provider which checks SPF.
- kazinator 12y agoAlso, I would create an account with "major email provider" and send test mails to that account. Then go into that account's spam folder and see if any headers have been added to these mails that might hold clues to why they were classified that way.
- ivegotmailyayyy 12y agoI have no issues with mail delivery. Here's what I did. Step 1, get a Gmail account. Step 2, live your life. If you're worried about privacy, don't. I've personally taken email data from co-located machines to give to the government. If it's a hobby, find a better one. Email administration is terrible.
- wpietri 12y agoWhy hello, newly anonymous account created just to be a dick. How surprising! http://www.penny-arcade.com/comic/2004/03/19 http://www.penny-arcade.com/comic/2004/03/19
- ivegotmailyayyy 12y agoDon't attack me, attack my arguments. You really aren't being any more private with your own mail server and it is a very difficult thing to get right. Large providers have peer agreements to help ensure delivery. You cannot get better delivery than Gmail on your own.
- wpietri 12y agoI'm not attacking you, I'm pointing out your shitty behavior. If you would like people to pay attention to your arguments, try standing behind your words. Similarly, try not being a dick. You could also try making some actual arguments. All I noticed was some value judgments.
- jlgaddis 12y agoOff the top of my head: Don't emit backscatter. Don't allow spam to be sent out. Have matching A and PTR RRs in place. Create SPF records. Sign outgoing mail using DKIM. Make sure you accept mail for abuse@ and postmaster@.
- 27182818284 12y agoI am pretty interested in the Gmail alternative / run your own mailserver threads. Gmail simply lacks the "WOW!!!" it had when I first signed up. A few other issues that have had me looking for alternatives: * False choices for new tech. If don't say Yes to transitioning to something like Google Hangouts, they make it really easy for you to push the button that says yes to hangouts. * Google Apps for Business is pretty expensive when I actually see how people use it. 9/10 it is just for them to have the Gmail interface with their own domain. A lot of people forget that Google Docs exists until they accidentally click the "Open in Drive" or whatever. * Spam protection has degraded with time. I receive more junk mail now then ever before. I think part of the email is because of the next bullet * Wrong emails happen very frequently. Probably 2-3 times a week for me I receive a wrong email from someone thinking they own my Gmail account. It has happened three times with Apple purchases alone. A custom domain would help mitigate this. These aren't malicious. They have my last name, but a different first name, but we have the same initial so I can easily see how they mess it up. Also the majority of people still don't realize the Gmail + sign trick or that periods don't matter. * Lack of features. You added tabs? Thanks, ummm, I guess. Thank you for putting that in the Promotions tab when before every semi-clever person already had a filter set to move things like that into their own "Promotions" tab. That's the big innovation? In other words, almost everytime I check ShowHN I'm hoping for a new Gmail.