linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sendmail not masquerading domain
@ 2005-02-16 10:54 urgrue
  2005-02-17 18:03 ` Glynn Clements
  0 siblings, 1 reply; 2+ messages in thread
From: urgrue @ 2005-02-16 10:54 UTC (permalink / raw)
  To: admin

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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sendmail not masquerading domain
  2005-02-16 10:54 sendmail not masquerading domain urgrue
@ 2005-02-17 18:03 ` Glynn Clements
  0 siblings, 0 replies; 2+ messages in thread
From: Glynn Clements @ 2005-02-17 18:03 UTC (permalink / raw)
  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 <ruleset> <address>
	> 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 <glynn@gclements.plus.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-02-17 18:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-16 10:54 sendmail not masquerading domain urgrue
2005-02-17 18:03 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).