From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glynn Clements Subject: Re: sendmail not masquerading domain Date: Thu, 17 Feb 2005 18:03:52 +0000 Message-ID: <16916.56456.217393.263871@gargle.gargle.HOWL> References: <20050216105406.GA11636@fede2.dev.ascom.fi> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit In-Reply-To: <20050216105406.GA11636@fede2.dev.ascom.fi> Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: urgrue Cc: admin urgrue wrote: > a sendmail of mine isnt masquerading the domains even though its > supposed to. > i got another sendmail where it works and comparing the configs i cant > find the difference, except for the fact that the working one is a > somewhat older version of sendmail. > > the relevant bit of sendmail.cf is: > CMblah.domain.com > DMrealdomain.com > > the hostname is configured to blah.domain.com. shouldnt the above two > lines be all i need for sendmail to masquerade mail sent as blah. > domain.com to realdomain.com? > > i even commented #C{E}root > > also tried Djrealdomain.com > > and, yes, restarted sendmail > > running out of ideas....any help appreciated. Use "sendmail -bt -d21.12" to debug address re-writing, e.g.: $ sendmail -bt -d21.12 ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter
> 3,1,HdrFromSMTP user@blah.domain.com This will show each rule which is considered, whether or not it matched and, for rules which match, the re-written address. -- Glynn Clements