From owner-freebsd-questions Wed Jul 11 7: 5:36 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 CCBCF37B401 for ; Wed, 11 Jul 2001 07:05:33 -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 f6BERZkj019210; Wed, 11 Jul 2001 09:27:36 -0500 (CDT) Message-ID: <3B4C5CE5.7D3BE17B@camel.kdsi.net> Date: Wed, 11 Jul 2001 09:04:21 -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 Cc: freebsd-questions@FreeBSD.ORG Subject: Re: sendimg mail using PHP from apache References: <001b01c109d2$41814ea0$450a6441@Hunter> 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 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