Date: Wed, 11 Jul 2001 13:25:34 -0500 From: Tony Wells <tony@camel.kdsi.net> To: Jason McReynolds <jason@themcreynolds.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: sendimg mail using PHP from apache Message-ID: <3B4C9A1E.85D6D4AF@camel.kdsi.net> References: <001b01c109d2$41814ea0$450a6441@Hunter> <3B4C5CE5.7D3BE17B@camel.kdsi.net> <004201c10a34$1ddacbe0$430a6441@destroyer>
next in thread | previous in thread | raw e-mail | index | archive | help
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" <tony@camel.kdsi.net> > To: "Jason" <jason@borderpatrolclan.net> > Cc: <freebsd-questions@FreeBSD.ORG> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B4C9A1E.85D6D4AF>