Date: Tue, 13 Aug 2002 13:40:36 -0400 (EDT) From: Ralph Huntington <rjh@mohawk.net> To: Jim Weeks <jim@jwweeks.com> Cc: <francisv@dagupan.com>, <freebsd-isp@FreeBSD.ORG> Subject: Re: Setting default e-mail sender on Apache Message-ID: <20020813133847.L31713-100000@mohegan.mohawk.net> In-Reply-To: <20020812163626.J536-100000@veager.jwweeks.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020813133847.L31713-100000>