From owner-freebsd-isp Tue Aug 13 10:41:16 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84F1837B400 for ; Tue, 13 Aug 2002 10:41:12 -0700 (PDT) Received: from mohegan.mohawk.net (mohegan.mohawk.net [63.66.68.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6343843E4A for ; Tue, 13 Aug 2002 10:41:11 -0700 (PDT) (envelope-from rjh@mohawk.net) Received: from mail.mohawk.net (mail.mohawk.net [63.66.68.12]) by mohegan.mohawk.net (8.11.4/8.11.3) with ESMTP id g7DHead17178; Tue, 13 Aug 2002 13:40:36 -0400 (EDT) Date: Tue, 13 Aug 2002 13:40:36 -0400 (EDT) From: Ralph Huntington To: Jim Weeks Cc: , Subject: Re: Setting default e-mail sender on Apache In-Reply-To: <20020812163626.J536-100000@veager.jwweeks.com> Message-ID: <20020813133847.L31713-100000@mohegan.mohawk.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org From=20the sendmail man page (I image there is a similar switch for qmail and postfix): -fname Sets the name of the ``from'' person (i.e., the envelope sender of the mail). This address may also be used in the From: header if that header is missing during initial submission. The envelope sender address is used as the recipient for deliv=AD ery status notifications and may also appear in a Return-Path: header. -f should only be used by ``trusted'' users (normally root, daemon, and net=AD work) or if the person you are trying to become is the same as the person you are. Otherwise, an X- Authentication-Warning header will be added to the message. So, have your script use the -f switch when calling sendmail. This is what IMP does, for example. Hope this is useful, Ralph On Mon, 12 Aug 2002, Jim Weeks wrote: > > On Mon, 12 Aug 2002 francisv@dagupan.com wrote: > > > We have a virtual hosting machine running FreeBSD 4.6-STABLE with Apach= e and > > PHP as a module. Our users use PHP's mail() function to send e-mail fro= m > > within the web application. However, the default sender is the user run= ning > > the web process and not the virtual host owner. How do I configure Apac= he > > (or PHP) to use mail() as the virtual host owner and not the user runni= ng > > the web process? > > When you say "web application" do you mean some form of webmail, or > individual user created scripts? The reason I ask is, I have been > working on squirrelmail for the past few days and have come up with a > very simple virtual host installation that works very well (very clean > headers). > > Jim > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message