[comp.mail.sendmail] $=m problem

ee@lever.UUCP (Edward Elhauge) (08/28/90)

I seem to have a problem with sendmail. The gross symptom is that when I:
	mail fred@foo.com
I get the error:
	Never heard of host foo in domain com

My domain name is lever.com as is reflected in the "domainname" command and
my hostname is lever as reflected in the "hostname" command. I am running a
Sun 3/60 standalone with no yp server.

I traced my problem down to the $=m test and the $m macro which evalute to
"com" instead of "lever.com" as it should. Anyone with helpful ideas
please mail sugestions unless this is problem that hasn't appeared in the group
recently.

-- 
-------------------------------------------------------------------------------
Edward Elhauge    | {hoptoad,uunet}!lever!ee          | "Pollution is a symptom
Lever Industries  | ee@lever.com                      | of man's inability to
San Francisco     |                                   | transform waste"
Voice 415-550-6789|                                   | -- Patti Smith

ehrlich@cs.psu.edu (Dan &) (09/01/90)

In article <278@lever.UUCP> ee@lever.UUCP (Edward Elhauge) writes:

Edward> I seem to have a problem with sendmail. The gross symptom is that when I:
Edward> 	mail fred@foo.com
Edward> I get the error:
Edward> 	Never heard of host foo in domain com

Edward> My domain name is lever.com as is reflected in the "domainname" command and
Edward> my hostname is lever as reflected in the "hostname" command. I am running a
Edward> Sun 3/60 standalone with no yp server.

Edward> I traced my problem down to the $=m test and the $m macro which evalute to
Edward> "com" instead of "lever.com" as it should. Anyone with helpful ideas
Edward> please mail sugestions unless this is problem that hasn't appeared in the group
Edward> recently.

Try setting the 'm' macro and class explicitly rather than allowing sendmail
to do it.  For example:

Dmlever.com
Cmlever.com lever local

If your domain name does not start with a '.' or a '+', sendmail strips off
the first component, in your case lever.  This is documented somewhere in
the Sun sendmail write up.  Another choice is to get sendmail from Berkeley
which knows nothing about YP (excuse me NIS) to begin with.

--
Dan Ehrlich <ehrlich@cs.psu.edu>/Voice: +1 814 863 1142/FAX: +1 814 865 3176