[comp.mail.sendmail] Adding DOMAIN to hostname in sendmail

mikel@aaa.com ( Mikel Manitius @ American Automobile Association ) (05/11/91)

I'm running sendmail "4.1/SMI-4.1" on SunOS 4.1.1, under NIS (yp).

Neither of the standard sendmail files provided append the domain name to the
"From: " op "Return-Path: " headers.

What can I do in my sendmail.cf (or elsewhere) to have the domain name appended
when the mail originates from within the host (or even domain)?

The standard macro lines in the file are:

	# format of a total name
	Dq$g$?x ($x)$.

	and

	H?P?Return-Path: <$g>
	H?F?From: $q

I tried just changing $q to:

	Dq$g.$m$?x ($x)$.

But that added my domain to all outbout AND inbound mail indescriminently.

Also note that I would prefer to have my mail look like it's from "aaahq04.aaa.com" rather
than from the domain itlsef, because our NIS domain server is NOT the domain gateway for
"aaa.com". Although since most users have logins on both the server and the mail gateway,
I would still prefer it over what happens now.
-- 
							Mikel Manitius
							mikel@aaa.com