SUMMARY: sendmail problems

From: Gordon Kido SE12 4176 (
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, 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:,
not Something like the following
responses are shown by the mail program:
250 Hello{] why do you call yourself
  MAIL From:<>
250 <>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 by including the following in the mail configuration
For testing purposes, I used "" 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( wrote:

Find the definition of the "Dj" macro in your 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,
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

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

Then change rule 22:

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( wrote:

I set the macros to

to get nimbus identify himself correctly plus appending only
at the outgoing mails.

 Steen Linden( 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

R$+ $@$1<@$m> tack on our domain
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

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