SUMMARY: sendmail problems

From: Gordon Kido SE12 4176 (se12gsk@mercury.nwac.sea06.navy.mil)
Date: Thu Oct 15 1992 - 01:50:49 CDT


     I received several responses to the sendmail problem that was
described as follows:

  We are running SunOS 4.1.1 on a Sun 4 server. The machine was
recently made a primary name server(DNS) and mail server for the
local domain, nwac.sea06.navy.mil. The problem occurs when mail
is sent outside the local domain. The hostname part of the full
e-mail address of the sender is stripped before it is sent out.
So that the recipient sees something like: gordon@nwac.sea06.navy.mil,
not gordon@mercury.nwac.sea06.navy.mil. Something like the following
responses are shown by the mail program:
  HELO mercury.nwac.sea06.navy.mil
250 Hello{137.67.0.31] why do you call yourself mercury.nwac.sea06.navy.mil
  MAIL From:<se12gsk@nwac.sea06.navy.mil>
250 <se12gsk@nwac.sea06.navy.mil>sender ok

I have received with the full hostname or just the domain name, but it
is confusing. I defined the m macro, the domain name one to be
nwac.sea06.navy.mil by including the following in the mail configuration
file: DMnwac.sea06.navy.mil
        CMnwac.sea06.navy.mil
For testing purposes, I used "DMmercury.nwac.sea06.navy..mil" and that seemed
to work from our machine but I'm not sure how it would work with other
machines that would use our Sun as a mail server. I would appreciate
any assistance that I can get on this.

                                                                             
 Ivor D'Souza(ivor@occs.nlm.nih.gov) wrote:

Find the definition of the "Dj" macro in your sendmail.cf. It looks like
you have enabled the line "Dj$m" instead of "Dj$w.$m". Read the comments
in that section before proceeding with the change. Good luck!

  Art Schoenstadt(0085P@CC.NPS.NAVY.MIL) wrote:

    Are you sure this is all bad?

    The way it looks now, ALL return main will come to nwac.sea06.navy.mil,
so if a local user changes host machines, etc., that change will be
transparent to the "outside" world, and all you should need to do is
ensure a current .forward file exists on the DNS (mail)host.

  Margaret Kapica(margaret.kapica@sunesc.East.Sun.COM) wrote:

Try this:
/usr/lib/sendmail -bt
>0 user@sun.com

If mailer($#) is ddn then you need to change S22 in order to
change From line.

Then change rule 22:

S22
R$*<@LOCAL>$* $:$1
R$-<@$-> $:$>3${Z$1@$2$} invert aliases
R$*<@$+.$*>$* $@$1<@$2.$3>$4 already ok
R$+<@$+>$* $@$1<@$2.$m>$3 tack on our domain
R$+ $@$1<@$m> tack on our domain

                               ^^
replace m with w ( w is your hostname)

Eckhard Rueggeberg(Eckhard.Rueggeberg@ts.go.dlr.de) wrote:

I set the macros to

Dmts.go.dlr.de
Dwnimbus.ts.go.dlr.de
Djnimbus.ts.go.dlr.de

to get nimbus identify himself correctly plus appending only @ts.go.dlr.de
at the outgoing mails.

 Steen Linden(unisli@uts.uni-c.dk) wrote:

I had the same problem. The solution was to change the rewriting rules
for the ddn mailer where the domain is tacked on to also tack on the
hostname.
change

R$+ $@$1<@$m> tack on our domain
to
R$+ $@$1<@$w.$m> tack on FQDN

 Since Margaret Kapica's solution was the simplest for our problem, I used
it and it worked. Just replaced "m" with "w" as Margaret wrote. Thanks
to all who replied.

Gordon S. Kido
NWAC
E-mail:gordon@mercury.nwac.sea06.navy.mil
   



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:51 CDT