Change outgoing domain in Sendmail

Posted on 2008-11-03
Last Modified: 2013-12-18
When I send an email address I get these two lines in the header:
Received: from (localhost [])
Received: (from ali@localhost)

I did add


Hostname does display

I do want to remove those two lines and have them present my domain and my public IP.

Any hints ?

I am getting this

Received: from ( [] (may be forged))


Question by:http://
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 26

Expert Comment

ID: 22866993
Add an entry to /etc/hosts for mapping to to get rid of the "(may be forged)".

As for the two received headers, if you're submitting the mail locally, you're just going to get one of those. You should probably get rid of those two masquerade_as() defs and leave just one with your real domain in it.
LVL 19

Author Comment

ID: 22867018
Hi I already have that entry in hosts,

As for masquerading from what I understand




That should masquerade localhost + localhost.localdomain to rihgt ?

LVL 26

Accepted Solution

jar3817 earned 500 total points
ID: 22867055
In my setup, I don't have any masquerade_domain entries, only the one masquerade_as one.
LVL 19

Author Comment

ID: 22867206
Thanks I did remove those two lines but the output is still the same..any other ideas ?

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
This article outlines some of the reasons why an email message gets flagged as spam on a recipient's end.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

724 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