From owner-freebsd-questions Wed Jul 11 11:26:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from camel.kdsi.net (camel.kdsi.net [206.103.113.218]) by hub.freebsd.org (Postfix) with ESMTP id A250137B406 for ; Wed, 11 Jul 2001 11:26:25 -0700 (PDT) (envelope-from tony@camel.kdsi.net) Received: from camel.kdsi.net (leepcD-253.sub-d.lee.net [208.205.127.253]) (authenticated (0 bits)) by camel.kdsi.net (8.12.0.Beta10/8.12.0.Beta10) with ESMTP id f6BImckj019707; Wed, 11 Jul 2001 13:48:39 -0500 (CDT) Message-ID: <3B4C9A1E.85D6D4AF@camel.kdsi.net> Date: Wed, 11 Jul 2001 13:25:34 -0500 From: Tony Wells X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Jason McReynolds Cc: freebsd-questions@FreeBSD.ORG Subject: Re: sendimg mail using PHP from apache References: <001b01c109d2$41814ea0$450a6441@Hunter> <3B4C5CE5.7D3BE17B@camel.kdsi.net> <004201c10a34$1ddacbe0$430a6441@destroyer> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG You can always try and write a file with a test message and pipe it to sendmail -t as the user Apache runs as to see if sendmail is allowing spoofing for that user. If it doesn't work you know it's sendmail and not PHP/Apache. I'd try this first to try and narrow down where the problem is. Jason McReynolds wrote: > > I tried that and a couple other thing, but it doesn't seem to work. Do you > know if I need to change something in my sendmail.cf or php.ini files??? > Thanks, > > Jason > ----- Original Message ----- > From: "Tony Wells" > To: "Jason" > Cc: > Sent: Wednesday, July 11, 2001 7:04 AM > Subject: Re: sendimg mail using PHP from apache > > If I remember correctly, PHP still uses sendmail as the MTA. If the > user that Apache runs as doesn't have the rights to "spoof" mail, It > might still show up as unpriviledged user. > > Put the user Apache runs as in the /etc/mail/trusted-users file, then > you can appear to be whomever you wish. (If you have an older install > of sendmail, the trusted user file is named different.) > > > Jason wrote: > > > > I'm trying to send mail using a PHP script, with PHP running on a > > FreeBSD/Apache server. I can send mail successfully, but the user > > shows up as "Unprivileged user." The PHP script uses a from address, > > but it is not used when the message is sent. Can I change Apache to > > get this to work, or do I have to do something with the PHP script? > > Any suggestions would be nice, and hopefully my problem is clear. > > > > Thanks, > > Jason To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message