[comp.mail.sendmail] from daemon messages??

rasmus@dmntor.on.ca (Rasmus Lerdorf) (07/13/90)

I am running SunOS 4.1.  I have a main mail server and a couple of subsidiary
machines also running 4.1.  I recently installed smail2.5 and had to change
the sendmail.cf on my main machine to accomodate smail.  Everything is working
fine.  Local messages sent from my main machine are fine.  However if they
are sent from one of the subsidiary machines they get to their destination
but the top line of the message always says, "From daemon <date>"
The From: line further down in the header is fine but it is rather annoying
to have the From daemon in my headers.  It's rather confusing especially
since most mail readers uses this line to determine who messages are from.

This header was generated by sending myself mail from a subsidiary machine:
---
From daemon Fri Jul 13 10:46:15 1990
Received: by dmntor.uucp (4.1/smail2.5/07-10-90)
	id AA15580; Fri, 13 Jul 90 10:46:14 EDT
Received: from dmnboss.uucp 
	by dmntor.dmntor.on.ca (4.1/smail2.5/07-10-90)
	id AA15574; Fri, 13 Jul 90 10:46:11 EDT
Date: Fri, 13 Jul 90 10:46:11 EDT
From: rasmus (Rasmus Lerdorf)
Message-Id: <9007131446.AA15574@dmntor.dmntor.on.ca>
To: rasmus
Subject: Header Test
Status: O
---
This one was generated when I sent mail to myself from the main machine:
---
From rasmus Fri Jul 13 10:47:25 1990
Received: by dmntor.uucp (4.1/smail2.5/07-10-90)
	id AA15672; Fri, 13 Jul 90 10:47:23 EDT
Date: Fri, 13 Jul 90 10:47:23 EDT
From: rasmus (Rasmus Lerdorf)
Message-Id: <9007131447.AA15672@dmntor.uucp>
To: rasmus
Subject: Header test
Status: OR
---
Notice that the message id of the subsidiary message is strange looking.
I recently switched from the .on.ca domain to uucp but the subsidiary
machine has not realized this yet.  Could the two problems be related?
I have not changed the sendmail.cf files on the subsidiary machines
since I installed smail, so I gather the problem is in the .cf file on
the main machine.  Here is a very truncated version of that file.
I have left out re-writing rules and comments.  If anyone could point
me in the right direction to solving this problem I would greatly appreciate
it.

---[sendmail.cf from main mail server]---
Dwdmntor
DDuucp
CDUUCP dmntor
CTETHER UUX

DRrelay
DVsmail2.5/07-10-90

Dj$w.$D
DnMAILER-DAEMON
DlFrom $g  $d
Do.:%@!^=/[]
Dq$g$?x ($x)$.
De$j Sendmail $v/$V ready at $b

OA/etc/aliases
Odbackground
OF0644
Og1
OH/usr/lib/sendmail.hf
OL9
Oo
OQ/usr/spool/mqueue
Or2h
OS/usr/lib/sendmail.st
Os
OT3d
OtPST,PDT
Ou1
Pfirst-class=0
Pspecial-delivery=100
Pjunk=-100
Troot
Tdaemon
Tuucp
Trasmus
#H?P?Return-Path: <$g>
HReceived: $?sfrom $s 
	$.by $j ($v/$V)
	id $i; $b
H?D?Resent-Date: $a
H?D?Date: $a
H?F?Resent-From: $q
H?F?From: $q
H?x?Full-Name: $x
HSubject:
# HPosted-Date: $a
# H?l?Received-Date: $b
H?M?Resent-Message-Id: <$t.$i@$j>
H?M?Message-Id: <$t.$i@$j>
S3
Mlocal, P=/bin/mail, F=rlsDFMmnP, S=10, R=20, A=mail -d $u
Mprog,	P=/bin/sh,   F=lsDFMeuP,   S=10, R=20, A=sh -c $u
S10
R@			MAILER-DAEMON	errors to mailer-daemon
R$+<@$+.$j>$*		$1<@$j>$3	hide anydom.$j under $j
S20
Muux,	P=/bin/smail, F=sDFMhum, S=14, R=24, M=100000,
	A=smail -vH$j $h!$u
S24
Mether,	P=[IPC], F=msDFMuCXP, S=11, R=21, A=IPC $h

-- 
Rasmus Lerdorf | geac!dmntor!rasmus  (Work) | '94 WC prediction
UW SD Eng. '93 | geac!contact!rasmus (Home) | Denmark will take the Cup!

msir@troi.cc.rochester.edu (Mark Sirota) (07/17/90)

In article <1990Jul13.145436.16122@dmntor.on.ca> rasmus@dmntor.on.ca (Rasmus Lerdorf) writes:
> I am running SunOS 4.1.  I have a main mail server and a couple of
> subsidiary machines also running 4.1.  I recently ... had to change
> the sendmail.cf on my main machine to accomodate smail.  ...  Local
> messages sent from my main machine are fine.  However if they are sent from
> one of the subsidiary machines they get to their destination but the top
> line of the message always says, "From daemon <date>"  The From: line
> further down in the header is fine but it is rather annoying to have the
> From daemon in my headers.

The problem is that you need to freeze the configuration and restart the
daemon as root, not as the user daemon.  Just kill the daemon, and refreeze
and restart as root.
--
Mark Sirota - University of Rochester Computing Center, Rochester NY
 Internet: msir@cc.rochester.edu
 Bitnet:   msir@uordbv.bitnet
 UUCP:     {decvax,harvard,ames,rutgers}!rochester!ur-cc!msir

rasmus@dmntor.UUCP (Rasmus Lerdorf) (07/17/90)

In <8419@ur-cc.UUCP> msir@troi.cc.rochester.edu (Mark Sirota) writes:

>In article <1990Jul13.145436.16122@dmntor.on.ca> rasmus@dmntor.on.ca (Rasmus Lerdorf) writes:
>> messages sent from my main machine are fine.  However if they are sent from
>> one of the subsidiary machines they get to their destination but the top
>> line of the message always says, "From daemon <date>"  The From: line
>> further down in the header is fine but it is rather annoying to have the
>> From daemon in my headers.

>The problem is that you need to freeze the configuration and restart the
>daemon as root, not as the user daemon.  Just kill the daemon, and refreeze
>and restart as root.

But I did do a /usr/lib/sendmail -bz as root!

	uid=0(root) gid=1(daemon) groups=1(daemon)

Here is my output from `id`

So, are you saying that my gid has to be root?  I don't have a root group.
These are my groups. 

wheel:*:0:
daemon:*:1:
kmem:*:2:
bin:*:3:
uucp:*:4:
operator:*:5:
news:*:6:
software:*:10:
dmn:*:20:
admin:*:30:
+:

I'll make root group zero and give it a shot, but I still don't understand.
-- 
Rasmus Lerdorf | geac!dmntor!rasmus  (Work) | '94 WC prediction
UW SD Eng. '93 | geac!contact!rasmus (Home) | Denmark will take the Cup!