How to Masquerade Sendmail Domain and Make DKIM Use the Correct Domain

view full story

http://serverfault.com – I have a single domain with a dozen subdomains for different sites. Each has a separate virtual host in apache. I configured sendmail to masquerad as the top-level domain so that emails are always from the top-level domain instead of the subdomain. Unfortunately, DKIM header d= and i= fields show the subdomain. Since the DNS Record is stored at the top-level domain, the DKIM Check fails. How do I tell DKIM to use the top-level domain? Please help. p.s. I've tried every angle on this and I'm stumped. I can't figure out how Sendmail tells DKIM which subdomain to use. And I can't figure o (HowTos)