[Webinar] Streamline your web hosting managementRegister Today


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

Posted on 2010-03-31
Medium Priority
Last Modified: 2013-12-17
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       correct.domain.name
::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 sendmail.mc 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.
Question by:gstanl
LVL 26

Accepted Solution

jar3817 earned 2000 total points
ID: 29251274
You need to edit /etc/hosts and switch the entries around:       correct.domain.name 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.

Author Closing Comment

ID: 31709530
Excellent.  Worked.

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article outlines some of the reasons why an email message gets flagged as spam on a recipient's end.
Microsoft Jet database engine errors can crop up out of nowhere to disrupt the working of the Exchange server. Decoding why a particular error occurs goes a long way in determining the right solution for it.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

612 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question