Redhat sendmail 550: Verification failed for <root@localhost.localdomain">

Running Redhat enterprise server 5.4 w/sendmail version 8.13.8,  Outbound emails fail with "550-Verification failed for <root@localhost.localdomain>"

When displaying sendmail version at command line ( /usr/lib sendmail -v -d0,1 </dev/null) the display shows:
============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = localhost
  (canonical domain name) $j = localhost.localdomain
         (subdomain name) $m = localdomain
              (node name) $k = removed here, it is correct
The node name is correct.  I removed it for confidentiality. The other names need to match it.
I understand that I need to change the default "local.domain" in sendmail configuration  to the correct domain name.  
But I don't understand how to change it.  

/etc/network is correct for the expected domain name.

I added the correct domain name in  "/etc/mail/local-hosts-names" and that is the only entry in that file.  I did restart sendmail.

One site suggests editing  "/etc/hosts"  by placing the correct domain name at the beginning of that file.  Currently that file shows:       localhost.localdomain   localhost
::1     localhost6.localdomain6 localhost       correct.domain.name6

I am concerned that reversing the /etc/hosts file entries  will break connectivity.  What do you think?

One site suggest there is a line in the file for DOMAIN that should be edited for the correct domain name.  I can't find such a line.  

This machine is not intended to be a primary email server.  We use sendmail to send system advisory messages to admins and other victims.  There is no virtualization or relaying or similar email activities involved.

Thank you.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You need to edit /etc/hosts and switch the entries around: correct localhost.localdomain   localhost
::1     localhost6.localdomain6 localhost       correct.domain.name6

It shouldn't break anything. You'll need to restart sendmail after you change it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gstanlAuthor Commented:
Excellent.  Worked.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Servers

From novice to tech pro — start learning today.