Resolving “mail loops back to self” issues with Sendmail

If you are getting local email (to local users, eg root) bounced back with errors stating ‘mail loops back to self’, ensure that the hostname and domainname map to localhost and localdomain respectively:

hostname localhost
domainname localdomain

If you set these to be a hostname or domainname that you have for your MX DNS entry, this seems to give the error ‘mail loops back to self’

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.