Google App and Sendmail: Why doesn't the mail go?Asked byholly hatfield rogai
The mail server has been configured for Gmail by Google Apps. There was a need to configure SPF and DKIM checking of outgoing mail from the server, generated by scripts via php mail and sendmail. It turned out to be configured only by raising the mail server on the local machine. Mail goes, comes, passes checks.
But if the script sends the letter to the internal mailing address (one of the created ones), then sendmail sends it to the local machine, and not to Gmail. DNS are configured. If you remove a host from local-host-names, then everything starts working correctly again, but does not pass the SPF and DKIM checks.
Where to dig? What to do?
CentOS 6, sendmail, dovecot.