Oddbean new post about | logout
 @Machismo What kind of scenario are you thinking about? I’m not sure I follow how you get from PTRs to MX records. 
 @819b261b I have two (actually probably more than) domains that I want to serve email on. Currently I do this by just pointing them at the same IP, but I haven't set up the PTR yet so Gmail^1 is dropping me. So either I can set the PTR to both/all domains, or I can just MX the rest of them into one and set PTR to that.

1: at least they were polite enough to inform me of this - for all the shit people give Gmail about breaking the email ecosystem, I've never managed to get blacklisted by them despite screwing around a lot during my setup; I still wish they'd die 
 @Machismo with the caveat that I haven’t run a mail server in most of a decade, I think the best practice is to pick a hostname for the mail server, make sure its A and PTR records match, then use that host’s A name as the MX for everything else. I think it’s okay to use CNAMEs if you want the MX records to be “pretty”.

domain1.com A 1.2.3.4
1.2.3.4 PTR domain1.com
domain2.com MX domain1.com