Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail append my domain name to sender!!

Status
Not open for further replies.

LewisLam

Programmer
Dec 30, 2002
2
HK
Hi,

I have a question on sendmail. I am using sendmail to receive emails for several domains and forward the emails to the appropriate email servers. I noticed that when the "From:" field of incoming emails do not contain a domain name, the domain name of my mail server will be appended to the "From:" field of the email. For example, when there is an email with the following "From:" field:

From: "ABC"
To: somebody@somedomain.com
Subject: Test

sendmail will append its domain name to the email as:

From: "ABC"@mydomain.com
To: somebody@somedomain.com
Subject: Test

Anybody knows how to prevent sendmail from doing this?
Any help is appreciated. Thanks.

Lewis
 
Check to see if either of these is in you sendmail.mc file:

FEATURE(always_add_domain)dnl
MASQUERADE_AS(`yourdomain.com')dnl

If so, delete or comment them out by putting "dnl" in front of those lines. Then you must run m4 to recompile sendmail.cf and restart sendmail.
 
Thanks. I have tried it but it still doesn't work. Any idea?

Lewis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top