Technical article 107666

I'm getting "local configuration error" messages when using sendmail.

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

Problem

I'm getting "Local configuration error" messages when using sendmail, such as:

553 mailhost.domain.com config error: mail loops back to myself 554 <user@domain.com>... Local configuration error

or
554 MX list for domain.com points back to mailhost.domain.com
554 <user@domain.com>...  Local configuration error

where 'mailhost.domain.com' and 'domain.com' are your mailserver and your domain name.

Cause

Mail is configured so that mail to the domain (domain.com) is to be forwarded to a specific mailhost (mailhost.domain.com) using an MX record in domain name service, but the mail server doesn't recognize itself as that domain (domain.com).

Solution

Sendmail can be modified to accept mail for a specific domain by editing the sendmail.cf in the following manner:

As root, edit the file /usr/lib/sendmail.cf.
In the definitions section of the file (after the initial
copyright comments) you should have an entry for "Cw" (if you
don't have a "Cw" entry you can add one).  The entry should
look similar to the following:
##################
#   local info   #
##################
# Our local (e.g. LAN) domain name
DDdomain.com
# all the names this host is known by
Cwmailhost.domain.com mailhost

Add "domain.com" to the "Cw" line so that it looks similar to this:

##################
#   local info   #
##################
# Our local (e.g. LAN) domain name
DDdomain.com
# all the names this host is known by
Cwmailhost.domain.com mailhost domain.com

You must kill and restart the sendmail daemon after you change the configuration file (sendmail.cf) for these changes to take effect.

See also

sendmail.cf(SFF), sendmail(ADMN), sendmail(ADMF)

From the Xinuos technical article database, record 107666. Reproduced with permission. The original is at www.sco.com/ta/107666, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.