Fix: 'config error: mail loops back to me (MX problem?)'
To prevent receiving
config error: mail loops back to me (MX problem?) errors, you need to add each
virtualdomain.tld to the
/etc/mail/local-host-names file and re-compile your sendmail config via
You have asked mail to a domain (e.g., domain.net) to be forwarded to a specific host (in this case, relay.domain.net) by using an MX record, but the relay machine doesn't recognise itself as domain.net. Add domain.net to /etc/mail/local-host-names [known as /etc/sendmail.cw prior to version 8.10] (if you are using FEATURE(`use_cw_file')) or add "Cw domain.net" to your configuration file.