From owner-freebsd-questions@FreeBSD.ORG Thu Jan 10 10:46:36 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2E3E16A420 for ; Thu, 10 Jan 2008 10:46:36 +0000 (UTC) (envelope-from jimbow@darq.net) Received: from farnborough.darq.net (fab.darq.net [82.136.41.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3E1C313C461 for ; Thu, 10 Jan 2008 10:46:35 +0000 (UTC) (envelope-from jimbow@darq.net) Received: from localhost (localhost [127.0.0.1]) by farnborough.darq.net (Postfix) with ESMTP id 1F3481CFFE for ; Thu, 10 Jan 2008 10:46:56 +0000 (GMT) X-Virus-Scanned: amavisd-new at darq.net Received: from farnborough.darq.net ([127.0.0.1]) by localhost (farnborough.darq.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qrim52-C4MWd for ; Thu, 10 Jan 2008 10:46:52 +0000 (GMT) Received: from troop.darq.net (hackney.darq.net [78.86.112.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: zygis@darq.net) by farnborough.darq.net (Postfix) with ESMTP id 773021D065 for ; Thu, 10 Jan 2008 10:46:52 +0000 (GMT) Message-ID: <4785F786.1010706@darq.net> Date: Thu, 10 Jan 2008 10:46:30 +0000 From: Jim Bow User-Agent: Thunderbird 2.0.0.6 (X11/20071004) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <47834FB2.9010907@darq.net> <443at70zy1.fsf@be-well.ilk.org> In-Reply-To: <443at70zy1.fsf@be-well.ilk.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: mail from: field question 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: Thu, 10 Jan 2008 10:46:36 -0000 Lowell Gilbert wrote: > The answer will probably depend on the MTA you're using (which you > didn't mention, so it's probably sendmail) You've guessed it. Its out-of-the-box sendmail. > Run the script from the command line and in particular just call > mail the way the script does. If I run the script (or just send a mail) on the command line using sudo, then it's sent as me and not root. Same happens if I su to root first. The only way I can get it to be sent from root is if I explicitly login as root. > Make sure the results are the same (if they're not, the MTA isn't > the problem). So it looks like it isn't. What can be the cause of this then? Thanks for your help. JimBow