Subject: user-domain doesn't work when it's a subset of hostname?

From: [email-masked] (Howard Goldstein)
Date: 30 Mar 1995 04:01:21 GMT

This is strange!  My hostname is penny.n2wx.ampr.org, but I have
n2wx.ampr.org CNAMEd to it and wish to use the shorter version on
my outgoing email.

For some reason 3.91 ignores my user-domain setting and it also disregards
the use-only-domain-setting when I tried that.

3.91 happily uses a user-domain parameter that differs from my hostname.

Is this intentional action?

Howard

---

From: Steve Hubert <[email-masked]>
Date: Fri, 31 Mar 1995 12:06:02 -0800 (PST)

There may be a sendmail in the loop doing this for/to you.  It is common
for sendmail rewriting rules to canonicalize hostnames in header
addresses.  If it sees a n2wx.ampr.org it looks up the CNAME and replaces
it with the canonical name, penny.n2wx.ampr.org.  You might try changing
the DNS setup to fix this.  You could get rid of the CNAME, and use an MX
record for n2wx pointing to penny instead.  If you also need there to be
an IP address associated with n2wx, then you can add an A record with the
penny address for n2wx. 

A more difficult approach would be to modify your sendmail.cf to cause it 
to rewrite penny.n2wx.ampr.org to n2wx.ampr.org late in the rewriting 
process (after the [] resolver lookups are done).

Steve Hubert <[email-masked]>
Networks and Distributed Computing, Univ. of Washington, Seattle

---

From: Howard Goldstein <[email-masked]>
Date: Fri, 31 Mar 1995 16:29:07 -0500 (EST)

> process (after the [] resolver lookups are done).

Steve, I'm grateful for your advice.  It was much easier to take the second 
approach, rebuilding sendmail.cf from the .mc file.  A quick 
MASQUERADE_AS() declaration took care of the problem.

Thanks for your help!

Howard