I have a web-app that runs on one server under two different IPs and domain names, on both HTTP and HTTPS for each:
<VirtualHost *:80> ServerName foo.org ServerAlias www.foo.org ... </VirtualHost> <VirtualHost 126.96.36.199:443> ServerName foo.org ServerAlias www.foo.org </VirtualHost> <VirtualHost *:80> ServerName bar.org ServerAlias www.bar.org ... </VirtualHost> <VirtualHost 188.8.131.52:443> ServerName bar.org ServerAlias www.bar.org </VirtualHost>
I'm using GMail as my SMTP server.
Do I need the reverse PTR and SenderID records? If so, do I put the same ones on all of my records (foo.org, www.foo.org, bar.org, www.bar.org, ASPMX.L.GOOGLE.COM, ASPMX2.GOOGLEMAIL.COM, ..)?
I'm pretty sure I want the domain-keys records, but I'm not sure which domains to attach them to. The Google mail servers? foo.org and bar.org? Everything?
All mail that the system sends comes from an
email@example.com address, regardless of which domain the user uses. The domains point to the exact same code and the code doesn't care about domains as far as email is concerned.