[net.unix-wizards] Sendmail and the local network

barto@celerity.UUCP (David Barto) (11/28/84)

I have a problem with the sendmail configuration files.  (Don't we all? :-)

I have a really nice set of configuration files and they work really well
for any mail posted on our main machine (celerity), as well for any mail
going to any uucp connected site from celerity.

The problem comes from the following:

	If any user sends mail from any machine on our local network,
	it will be correctly formed at that machine for the local
	destination machine.

	The problem:
		the first line at the recieving machine will change
		(or recieve changed) the "From " line to be
			"From barto <date>"
		instead of
			"From <original sender> <date>"

The change ONLY occurs if the sender and reciever are on differing
machines.  Same machine mail works just fine.
The "DlFrom $g  $d" is the same on ALL the machines, and I can see
the original sendmail correctly setting this line.

Any Ideas?  Give me a call...

I am really desperate.....
-- 
	barto (david barto)	Tele : (619) 271 9940
	uucp : {decvax || ucbvax || ihnp4}!sdcsvax!celerity!barto
	uucp : akgua!celerity!barto
	arpa : sdcsvax!celerity!barto@NOSC

mark@tove.UUCP (Mark Weiser) (12/01/84)

	If any user sends mail from any machine on our local network,
	it will be correctly formed at that machine for the local
	destination machine.

	The problem:
		the first line at the recieving machine will change
		(or recieve changed) the "From " line to be
			"From barto <date>"
		instead of
			"From <original sender> <date>"


This looks like sendmail not being run suid root.
-- 
Spoken: Mark Weiser 	ARPA:	mark@maryland	Phone: (301) 454-7817
CSNet:	mark@umcp-cs 	UUCP:	{seismo,allegra}!umcp-cs!mark
USPS: Computer Science Dept., University of Maryland, College Park, MD 20742

dave@uwvax.UUCP (Dave Cohrs) (12/01/84)

> 	it will be correctly formed at that machine for the local
> 	destination machine.
> 
> 	The problem:
> 		the first line at the recieving machine will change
> 		(or recieve changed) the "From " line to be
> 			"From barto <date>"
> 		instead of
> 			"From <original sender> <date>"
> This looks like sendmail not being run suid root.

That's not the problem.  sendmail does *not* run suid root here.  I
run it sgid to protect the spool directory and access to spooled files,
but no suid.  More likely the config file is in an odd state which
causes the address to get remunged on the remote host.  The other
possibility is that the sending host is actually sending a silly address
in the 'MAIL FROM <>' SMTP transaction.  Run it with all it's debugging
on and check it out.  Something else....  Make sure that /bin/mail
thinks root is a trusted user (sendmail should also think root is trusted)
and make sure you started sendmail from /etc/rc as root.  If all this
still checks out, how about recompiling sendmail?

Also, I *never* have problems with sendmail losing things in its queue (some-
times I wish it WOULD lose that stuff).  Is there something wrong with
the protections on your mqueue directory?

-- 
(Bug?  What bug?  That's a feature!)

Dave Cohrs
...!{allegra,heurikon,ihnp4,seismo,uwm-evax}!uwvax!dave
dave@wisc-rsch.arpa