How to configure sendmail and avoid localhost.localdomain?

I was added to the CBL list because our servers with fedora 17 (we updated them) now send letters identifying themselves as localhost.localdomain.

I ran this command from a single server using fedora 17

echo "This will go into the mail body." | sendmail -s "Hello World" abraham.sustaita@gmail.com

And this is what is in the mail:

Received: from app03.site.com (localhost.localdomain [127.0.0.1]) by app03.site.com (8.14.5/8.14.5) with ESMTP id q6UHk0xp018117; Mon, 30 Jul 2012 17:46:00 GMT 

But from another server with fedora 12, the same command sends mail with this:

 Received: by app05.site.com (Postfix, from userid 0) id 2DFFF24E67E; Mon, 30 Jul 2012 17:46:38 +0000 (UTC) 

How to configure sendmail so that it does not send localhost.localdomain? I follow this guide: http://www.redhat.com/magazine/025nov06/features/email/index.html , but this did not work ...

+4
source share
1 answer

I can fix it.

The only thing I needed to do was add

 dnl define(`confDOMAIN_NAME', `app05.site.com')dnl 

To

 /etc/mail/sendmail.mc 

And then

 make -C /etc/mail/ 
+3
source

All Articles