Re:Self-Host Everything
by reidrac on Sunday February 17, 2013 @12:50PM
(#5235988)
I've never had problems to get my email accepted by gmail, but well... I don't think Google gets a 100% either.
There must be a checklist somewhere, but off the top of my head:
- Your server's IP must be static and must have a reverse map (IP -> name); check your IP is "clean" and not in a blacklist, specially when you get it from your ISP range (may be someone used it before you and it has a poor reputation).
- Setup your DNS correctly using MX records.
- Use SPF or DKIM so other servers can detect forged emails not coming from your server(s); besides this is nice to filter backscatter spam.
- Obviously don't configure your mail server as an open relay, use SMTP with SSL or TLS, always with user authentication.
I've been using this setup for years and most of my problems are receiving mail and never sending it (ie. misconfigured servers not playing nice with graylisting, Google servers blacklisted by my DNSRBL, etc).
There must be a checklist somewhere, but off the top of my head:
- Your server's IP must be static and must have a reverse map (IP -> name); check your IP is "clean" and not in a blacklist, specially when you get it from your ISP range (may be someone used it before you and it has a poor reputation).
- Setup your DNS correctly using MX records.
- Use SPF or DKIM so other servers can detect forged emails not coming from your server(s); besides this is nice to filter backscatter spam.
- Obviously don't configure your mail server as an open relay, use SMTP with SSL or TLS, always with user authentication.
I've been using this setup for years and most of my problems are receiving mail and never sending it (ie. misconfigured servers not playing nice with graylisting, Google servers blacklisted by my DNSRBL, etc).
EDIT: formatting