From owner-freebsd-questions@FreeBSD.ORG Sat May 28 21:35:56 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD8F816A41C for ; Sat, 28 May 2005 21:35:56 +0000 (GMT) (envelope-from greg@grokking.org) Received: from herbert.sohotech.ca (herbert.sohotech.ca [206.116.63.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9637A43D4C for ; Sat, 28 May 2005 21:35:56 +0000 (GMT) (envelope-from greg@grokking.org) Received: from localhost (unknown [127.0.0.1]) by herbert.sohotech.ca (Postfix) with ESMTP id CB9CB17E7C6 for ; Sat, 28 May 2005 14:35:55 -0700 (PDT) Received: from herbert.sohotech.ca ([127.0.0.1]) by localhost (herbert.sohotech.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02124-10 for ; Sat, 28 May 2005 14:35:54 -0700 (PDT) Received: from [192.168.1.6] (chomsky.sohotech.ca [192.168.1.6]) by herbert.sohotech.ca (Postfix) with ESMTP id 8E66C175C40 for ; Sat, 28 May 2005 14:35:54 -0700 (PDT) Message-ID: <4298E43B.1050703@grokking.org> Date: Sat, 28 May 2005 14:35:55 -0700 From: "greg@grokking.org" User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050513) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20050528154626.J2470@dualman.cableone.net> In-Reply-To: <20050528154626.J2470@dualman.cableone.net> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at sohotech.ca Subject: Re: root not getting system email X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 May 2005 21:35:57 -0000 Denny White wrote: > > > Can someone please help me with this. > I read where it's safer to have an > admin read root's mail than for the > root user himself. So, I did the > /etc/aliases & newaliases thing, I > tried the aliase in /etc/mail & did > a "make" there & a make restart, > tried a .forward file in roots home > directory, tried the virtusertable > & local-host-names & mailertable in > /etc/mail, & so far nothing but trouble. > Here's the type of messages I'm getting > when the system fails to relay roots > mail: > > May 28 15:02:07 dualman sm-mta[2278]: j4SK270A002278: > Losing ./qfj4SK270A002278: savemail panic > May 28 15:02:06 dualman sm-mta[2277]: j4SK250A002277: > SYSERR(root): rewrite: excessive recursion (max 50), > ruleset canonify > May 28 15:02:07 dualman sm-mta[2278]: j4SK270A002278: > SYSERR(root): savemail: cannot save rejected email anywhere > > It also says the local user cannot be found, > which I think is my screwup for whatever way > I entered the user in aliases and virtusertable. > Would it be wiser just to undo everything, and > just try using the .forward file for root? > Trying to get everything on here working right > so I can teach myself how to do a cvsup & learn > to rebuild & merge everything, but this is for > sure holding me back. Thanks for any help I can > get. > It's obvious your sendmail config is messed up. The easiest fix would be to undo EXACTLY what you changed from the default install until you can learn enough about sendmail to know the full implications of your alterations. All you should need to do to get system mail delivered to any other user is add email address (or valid user account name) to the root entry of /etc/mail/aliases, then run `newaliases`. As long as DNS is working properly you should be fine. If you can't get back to a fresh install, start by giving us some more information: /etc/mail/aliases and your *.mc file would be nice for starters. G