Solved

Change outgoing domain in Sendmail

Posted on 2008-11-03
4
1,090 Views
Last Modified: 2013-12-18
Hi
When I send an email address I get these two lines in the header:
Received: from mydomain.com (localhost [127.0.0.1])
Received: (from ali@localhost)

I did add

MASQUERADE_DOMAIN(localhost)
MASQUERADE_DOMAIN(localhost.localdomain)

Hostname does display mydomain.com

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 mydomain.com (mydomain.com [127.0.0.1] (may be forged))


Thanks

0
Comment
Question by:http:// thevpn.guru
  • 2
  • 2
4 Comments
 
LVL 26

Expert Comment

by:jar3817
ID: 22866993
Add an entry to /etc/hosts for mydomain.com mapping to 127.0.0.1 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.
0
 
LVL 19

Author Comment

by:http:// thevpn.guru
ID: 22867018
Hi I already have that entry in hosts,

As for masquerading from what I understand


MASQUERADE_AS(`mydomain.com')

and

MASQUERADE_DOMAIN(localhost)dnl
MASQUERADE_DOMAIN(localhost.localdomain)dnl


That should masquerade localhost + localhost.localdomain to mydomian.com rihgt ?


0
 
LVL 26

Accepted Solution

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

Author Comment

by:http:// thevpn.guru
ID: 22867206
Thanks I did remove those two lines but the output is still the same..any other ideas ?
0

Featured Post

Are end users causing IT problems again?

You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

Question has a verified solution.

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

Suggested Solutions

MS outlook is a premier email client that enable you to send and receive the e-mails with various file formats of attachments such as document files, media file, and many others formats. There is some scenario occurs when a receiver of an e-mail mes…
Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…

895 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now