sendmail config help

Anton Shterenlikht mexas at
Tue Jan 5 14:13:47 UTC 2016

>From: Matthew Seaman <m.seaman at>
>On 2016/01/05 11:05, Anton Shterenlikht wrote:
>> The best I can get is:
>> 553 5.3.5 config error: mail loops back to me (MX problem?)
>> 554 5.3.5 Local configuration error
>This indicates that although the MX records in the DNS point to your
>machine to handle the e-mail for, the machine's sendmail
>configuration doesn't state that it should handle the final delivery for
> messages.
>You need to add to the file /etc/mail/local-host-names and then
>bounce sendmail.  What this does is add to sendmail's class w --
>the list of addresses which this instance of sendmail 'owns.'

Matthew, thank you, that solved the problem.

>Personally, I'd name the mail server as '' and use an MX
>record to direct the mail to it.  That's pretty standard and it will
>help avoid your messages getting classed as spam.

Sorry, I don't understand this fully.

After I set in MX record,
do I need to change anything on the server side
for this to work?

I naively thought that using makes
sense only if it refers to physically diffent
host than Am I wrong?

Sorry for taking your time.
Perhaps you can point to a good background
reading on this. I'm lost in multitude of
advice on the net.


More information about the freebsd-questions mailing list