SUMMARY sendmail question

From: Ying He (yhe@shadow.is.jhsph.edu)
Date: Wed Sep 10 1997 - 14:48:46 CDT


I am attaching the e-mail from Daniel Kluge <danielk@tibco.com>
He is really helpful.
The solution is: upgrade to sendmail 8.8.7, it seems solve all my problems
and I am still testing.

Thanks for all you responsed.
Thanks again Danial.

Ying

------------------------------------------------------------

>From danielk@tibco.com Fri Sep 5 11:15:21 1997
Return-Path: <flash.tibco.com>
Received: from flash.tibco.com by shadow.is.jhsph.edu (SMI-8.6/SMI-SVR4)
        id LAA23848; Fri, 5 Sep 1997 11:15:16 -0400
Received: by flash.tibco.com (4.1/1.37)
        id AA08866; Fri, 5 Sep 97 08:16:54 PDT
Received: from tssgate.tibco.com(160.101.20.20) by flash.tibco.com via smap (V1.3)
        id sma008864; Fri Sep 5 08:16:35 1997
Received: from bern.tibco.com by tekbspa.tibco.com (4.1/SMI-4.1)
        id AA27248; Fri, 5 Sep 97 08:16:26 PDT
Received: from dell-laptop2.tibco.com ([160.101.130.70])
        by bern.tibco.com (8.8.5/8.8.6) with SMTP id RAA02706
        for <yhe@shadow.is.jhsph.edu>; Fri, 5 Sep 1997 17:18:59 +0200 (MET DST)
Date: Fri, 5 Sep 1997 17:14:51 +0200 (W. Europe Daylight Time)
From: Daniel Kluge <danielk@tibco.com>
To: Ying He <yhe@shadow.is.jhsph.edu>
Subject: Re: your mail
In-Reply-To: <199709051312.JAA21411@shadow.is.jhsph.edu>
Message-Id: <Pine.WNT.3.96.970905164349.-206173A-100000@dell-laptop2.tibco.com>
X-X-Sender: danielk@bern
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Content-Length: 4942
Status: RO
X-Status:

On Fri, 5 Sep 1997, Ying He wrote:

> To: sun
> Subject: sendmail question
>
> Hi, Sun managers:
>
> We recently changed old domain name to new domain name, in order to recieve
> the e-mail for both domains, we defined the both old and new domain name
> in the DNS. The two domains will exist same time for 6 months.
>
> There some problems when send e-mails, I could not define what caused the
> problems? DNS or sendmail.cf? or?? It seems no problem send/receive mails
> with outside of our doamin.
> Should I use sendmail-8.8.x ?
>

Yes, I defently would, it is easier to configure, and it really works.

I read through all of your posting, but I don't quite see the problems,
and easy solutions.

I myself found the sendmail supplied with solaris not very usefull,
outright annoying, to be more correct.

So I got myself the sendmail binary from ftp://opcom.sun.ca:/pub/freeware,
and the configuration files from the sendmail source from
http://www.sendmail.org.

I then generated the m4 macros, and built the cf-file with m4 (needed a
new version, also to be found on opcom.sun.ca)

Probabely for you, the most usefull feature will be this, quoted from the
cf/README file:

masquerade_entire_domain
                If masquerading is enabled (using MASQUERADE_AS) and
                MASQUERADE_DOMAIN (see below) is set, this feature will
                cause addresses to be rewritten such that the masquerading
                domains are actually entire domains to be hidden. All
                hosts within the masquerading domains will be rewritten
                to the masquerade name (used in MASQUERADE_AS). For
example,
                if you have:

                        MASQUERADE_AS(masq.com)
                        MASQUERADE_DOMAIN(foo.org)
                        MASQUERADE_DOMAIN(bar.com)

                then *foo.org and *bar.com are converted to masq.com.
                Without
                this feature, only foo.org and bar.com are masqueraded.

This should solve all your problems immediately.

Also I would analyze all Problems with multiple runs of
/usr/lib/sendmail -bt, the Test-Mode, in which you can test all the
rewriting rules, and will find out directly where the bug is, not this
'looking on the output and guessing what went wrong'-thing you seem to do
right now.

There is some fairly good sendmail doku out there, like the sendmail book
from O'Reilly (2nd Edition), or 'TCP/IP Network Administration'.

To your actual problems:

> **** problem 1:
>
> a) send mail from shadow.is.jhsph.edu (new doamin)
> to statepi.sph.jhu.edu(old doamin)
>
> command: mail sol@statepi.sph.jhu.edu
[...]
> To: sol@statepi.is.jhsph.edu ***** problems 1
> Subject: test using mail
[...]
> from yhe@shadow.is.jhsph.edu to sol@statepi.sph.jhu.edu
> ------------------------------------------------------
>
> ***problem: To: sol@statepi.is.jhsph.edu ***** problems 1
>
> sol@statepi.sph.jhu.edu changed to sol@statepi.is.jhsph.edu
> which is.jhsph.edu is defined in the sendmail.cf on shadow.is.jhsph.edu
>
> on shadow: Dmis.jhsph.edu
> Cmis.jhsph.edu
> Cmjhpsh.edu
> Cm sph.jhu.edu

Well, if you have a host, which is masquerading as a domain, it will use
this information for sending as well, prbabely you should instead of
chaning $m, change $w or $j instead, so it is just receiving as a host
from withhin the old domain.

> b) send mail from statepi.sph.jhu.edu(old doamin)
> to shadow.is.jhsph.edu (new doamin)
>
[...]
> *** problem: From sol@statepi.is.jhsph.edu Fri Sep 5 08:23:34 1997
> From: Sol#2 <sol@statepi.is.jhsph.edu>
> ...
> sol@statepi.sph.jhu.edu changed to sol@statepi.is.jhsph.edu
> which is.jhsph.edu is defined in the sendmail.cf on shadow.is.jhsph.edu
>
> on shadow: Dmis.jhsph.edu
> Cmis.jhsph.edu
> Cmjhpsh.edu
> Cm sph.jhu.edu

Sames as above, the host seems to be somewhat confused, on what hostname
he actually has. As far as I know, sendmail makes some funny
gethostbyname, gethostbyaddr, gethostbyname permutations to get its fully
qualified domainname, so probabely you should do the same (reverse-lookup
from shadow's IP-Adress).

> a) sending mail from shadow.is.jhsph.edu to statepi( without domain name)
>
> command: mail sol@statepi
>
> returned messages on sending machine shadow ( mail bounced back)
>
[...]
> 550 statepi.sph.jhu.edusph.jhmi.edujhsph.eduis.jhsph.edu (smtpl)... 550 Host unk
> nown
> 554 <sol@statepi>... 550 Host unknown (Authoritative answer from name server)

This looks real messy, no suggestions on sendmail

Hope this helps somewhat,

-daniel

-- 
Daniel Kluge / CTS-Engineer                            Tel: +41-1-212-7181
TIBCO                                                  Fax: +41-1-212-7182
Bahnhofstrasse 52          
CH-8001 Zurich                                         danielk@tibco.com
Switzerland                                            http://www.tibco.com



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:03 CDT