From owner-freebsd-questions@FreeBSD.ORG Fri Apr 4 22:59:24 2003 Return-Path: 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 853B537B401 for ; Fri, 4 Apr 2003 22:59:24 -0800 (PST) Received: from mail.clubplus.net (mail.clubplus.net [216.191.22.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81F5743FBF for ; Fri, 4 Apr 2003 22:59:23 -0800 (PST) (envelope-from david@skytrackercanada.com) Received: from skytrackercanada.com (cust29.209.188.66.dsl.accessv.com [209.188.66.29] (may be forged)) by mail.clubplus.net (8.12.7/8.12.7) with ESMTP id h3571H1W015831; Sat, 5 Apr 2003 02:01:18 -0500 Received: (from root@localhost) by skytrackercanada.com (8.12.6/8.12.6) id h356xIsS093738; Sat, 5 Apr 2003 01:59:18 -0500 (EST) (envelope-from david@skytrackercanada.com) Received: from skytrackercanada.com (localhost [127.0.0.1]) by skytrackercanada.com (8.12.6/8.12.6) with ESMTP id h356xH0P093712; Sat, 5 Apr 2003 01:59:17 -0500 (EST) (envelope-from david@skytrackercanada.com) Received: (from david@localhost) by skytrackercanada.com (8.12.6/8.12.6/Submit) id h356xH0X093711; Sat, 5 Apr 2003 01:59:17 -0500 (EST) (envelope-from david) Date: Sat, 5 Apr 2003 01:59:17 -0500 From: David Banning To: Odhiambo Washington Message-ID: <20030405015917.A93482@skytrackercanada.com> References: <20030404234509.A91877@skytrackercanada.com> <20030405064235.GB71101@ns2.wananchi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030405064235.GB71101@ns2.wananchi.com>; from wash@wananchi.com on Sat, Apr 05, 2003 at 09:42:35AM +0300 X-scanner: scanned by Inflex 1.0.12.3 - (http://pldaniels.com/inflex/) X-RAVMilter-Version: 8.4.2(snapshot 20021217) (mail) cc: questions@freebsd.org Subject: Re: sending mail with a script question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 06:59:24 -0000 > > cat textfile | mutt -s"Quote/Attachments" -afile1 -afile2 john@doe.com > > > > but the problem is that the recipient sees the sender address as > > from "nobody@ourhost.com", when I want it seen as "david@ourhost.com". > > I have the name of the user available in the script but I see no > > way of running the mail script as that person since any browser viewing > > the system is "nobody". > > In the context of the MTA, does your MTA "trust" the user the webserver is > running as??? I think so. If I understand you correctly, you are asking, in my case, "does sendmail successfully send out mail as user nobody?". The answer to that, is yes. The problem with sending mail to people as nobody, is that the person who receives the fax gets it from nobody@ourhost.com instead of david@ourhost.com. I plan on having different people running the browser and hence, sending out emails through this system. They all can't be "nobody@ourhost.com". I could maybe deal with that by setting the "reply to" field in the message, but that still leaves a weird email address of "nobody" which I would rather not use, if I don't have to.