*BSD News Article 70341


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!solace!nntp.uio.no!news.cais.net!news1.erols.com!newsmaster@erols.com
From: Ken Bigelow <kbigelow@www.play-hookey.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: sendmail screwup?
Date: Thu, 06 Jun 1996 21:05:48 -0700
Organization: Erols Internet Services
Lines: 53
Message-ID: <31B7AA9C.4E82@www.play-hookey.com>
References: <8389-264401402@pinboard.com>
Reply-To: kbigelow@www.play-hookey.com
NNTP-Posting-Host: kenjb05.play-hookey.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0b4 (Win16; I)

kurt@pinboard.com wrote:
> 
> Hi!
> 
> I need all mail (also local) from two machines to be routed to a
> mailserver and retrieve it via UUCP from there. After having a look into
> sendmail, I made some changes to sendmail.cf, the same changes on both
> machines. However, one of the machines gives me the following errors
> when the nightly cleanup sends logfiles to root:
> 
> /etc/aliases: line 13: MAILER-DAEMON... cannot alias non-local names
> /etc/aliases: line 14: postmaster... cannot alias non-local names
> /etc/aliases: line 17: bin... cannot alias non-local names
> /etc/aliases: line 18: daemon... cannot alias non-local names
> /etc/aliases: line 19: games... cannot alias non-local names
> /etc/aliases: line 20: ingres... cannot alias non-local names
> /etc/aliases: line 21: nobody... cannot alias non-local names
> /etc/aliases: line 22: system... cannot alias non-local names
> /etc/aliases: line 23: toor... cannot alias non-local names
> /etc/aliases: line 24: uucp... cannot alias non-local names
> 
> The other machine seems to work ok. I'd be glad if somebody could give
> me a hint.

All of the above names alias to root, either directly or (MAILER-DAEMON) 
indirectly. Did you somehow change "root" to some other name, so there is 
no longer a "root" user on the local system? If so, did you define *and* 
uncomment the line further down that tells how to alias root?
> 
> To the original sendmail.cf, after installing FreeBSD 2.1.0, I made the
> following changes:
> 
> Cw:     added the machines name after localhost
> DM:     added the domain to route mail to
> Dq:     made a few changes, but that looks ok
> OP:     uncommented Postmaster
> S98:    added:
>         R$~O    $@ $1 @ $M      user->user@do.main
> 

I don't understand why you need to do any of this. My network now has a 
dozen machines on it, with the pop server on the gateway/main host. Any of 
these machines can use sendmail to route mail either to a local user (same 
machine but alternate name) or to any user or alias defined on the main 
server. I did not modify either of the sendmail.cf or .cw files, and all 
machines can either use popclient to drag down mail (or Eudora from Windoze 
3.1), or they can telnet over to the server and use either mail or pine 
directly.

As long as you have one defined server, it should fly without extra 
adjustments.

Ken