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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Small annoyance with domain name 1

Status
Not open for further replies.

baldar538

MIS
Apr 12, 2006
8
US
Hi,
This is more than an annoyance than a real problem, and is currently making it a little more difficult to troubleshoot something we are testing. But, here goes:

We are using an architecture similar to this:

sender -> internet --> gateway -> mailserver -> client

gateway is a 3rd party appliance, mailsever is running sendmail/popper

Between sender and internet, my e-mail address is me@mydomain.com

Between internet and gateway it is still me@mydomain.com

Between gateway and mailserver it is still me@mydomain.com

between mailserver and client it is me@mydomain.com

However, somewhere between the e-mail server and the client it turns to me@mail.mydomain.com (the servers hostname)

I'm assuming sendmail is changing this for some reason, but I can't figure out why. Any ideas?

Thanks in advance.
 
Hi, thanks for your reply.

My virtusertable file is unmodified from the default on the system, its all comments.

If it would help, here is an example header:

Return-Path: <sender@sendingdomain.com>
Received: from mailgw.receivingdomain.com (mailgw [x.x.x.x])
by mail.receivingdomain.com (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id k3JJmuO31464
for <me@receivingdomain.com>; Wed, 19 Apr 2006 13:48:56 -0600
Received: from mailgw.receivingdomain.com (127.0.0.1) by mailgw.receivingdomain.com (MlfMTA v3.1r24) id h8q9ps0171sk for <me@receivingdomain.com>; Wed, 19 Apr 2006 14:46:38 -0500 (envelope-from <sender@sendingdomain.com>)
Received: from nproxy.sendingdomain.com ([x.x.x.x])
by mailgw.receivingdomain.com (SonicWALL 4.6.0.7527)
with SMTP; Wed, 19 Apr 2006 14:46:38 -0500
Received: by nproxy.sendingdomain.com with SMTP id a25so976389nfc
for <me@recevingdomain.com>; Wed, 19 Apr 2006 12:48:55 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
s=beta; d=gmail.com;
h=received:message-id:date:from:to:subject:mime-version:content-type;
b=rzAOL+wjuDzMWPACkbnog5j5PDBplW0kSYfy6AzrRVeH+3INWkFJrbfRbG0tOtMxAMby
D3XqrPUafghO5RYQcVAYuHUvf/CU+GEIP/eci/FkqxYcb8tq0qkEBW6LMpHbAayn2OjJ65
s8uJFVTC32NhXpswLfsBQBXMICso+tPzA=
Received: by x.x.x.x with SMTP id v11mr3401225nfk;
Wed, 19 Apr 2006 12:48:55 -0700 (PDT)
Received: by x.x.x.x with HTTP; Wed, 19 Apr 2006 12:48:55 -0700 (PDT)
Message-ID: <30cd8b630604191248t36852392y21d56933c2d58d2@mail.sendingdomain.com>
Date: Wed, 19 Apr 2006 14:48:55 -0500
From: "External Guy" <baldar538@gmail.com>
To: "Me Internally" <me@mail.receivingdomain.com>
Subject: Is it soup yet?
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_11713_25404613.1145476135249"
X-Mlf-Threat: nothreat
X-Mlf-Threat-Detailed: nothreat;none;none;list_addrbk_sender
X-Mlf-UniqueId: 200604191946370019263
X-UIDL: (@A"!)Ij!!X[X!!V23"!
 
Add this to your sendmail.mc
Code:
FEATURE(masquerade_envelope)dnl
rebuild the sendmail.cf
Code:
m4 [i]/path/to/[/i]sendmail.mc > [i]/path/to/[/i]sendmail.cf
and restart Sendmail

M. Brooks
 
Thanks for your reply. I think I had to do a few more lines than that, but your answer led to to the answer. What I ended up adding was:

Other MASQUERADE_AS(`mydomain.com')dnl
Feature FEATURE(`masquerade_envelope')dnl
Feature FEATURE(`allmasquerade')dnl

And, now it seems to work.

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top