Re: Problems with PHP mail()

From: Date: Wed, 31 Jan 2001 02:58:53 +0000
Subject: Re: Problems with PHP mail()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-37391@lists.php.net to get a copy of this message
Richard Lynch wrote: > > > Anyway, I have the sendmail path set (/usr/sbin/sendmail -t -i), but > > something isn't working right. > > Do you have quotes around that "/usr/sbin/sendmail -t -i" ? You need quotes > in php.ini there, or it ignores the -t -i part cuz it's after a space. I didn't have it in quotes, but I tried it to no avail. > > > Jan 30 01:03:52 acadia sendmail[21394]: BAA21394: from=nobody, size=257, > > class=0, pri=30257, nrcpts=1, > > msgid=<200101300603.BAA21394@acadia.ne.mediaone.net>, > > relay=nobody@localhost > > Jan 30 01:03:52 acadia sendmail[21397]: BAA21394: SYSERR(nobody): Cannot > > exec /usr/cyrus/bin/deliver: Permission denied > > Is user nobody allowed to send email using sendmail? > Is the user PHP is running as (maybe "nobody", maybe not -- check httpd.conf > "User" line) allowed to execute sendmail. It should be; it looks like the problem is in executing deliver. This is part of the Cyrus imap server distribution. I checked the sendmail.cf file, and I found this: # who I masquerade as (null for no masquerading) (see also $=M) DM I vaguely remember reading something about this at http://www.php.net/mail, from the commentary section: mauk@maatwerk.net 07-Sep-2000 04:30 On my server, sendmail replaced the From: and Reply_To: fields with the name of my webserver. The solution was to remove the masquarading option in sendmail.cf (CW macro). Mauk van der Laan This doesn't sound like my problem, but could it be the solution? I know this is getting OT, but . . . I would probably do better to avoid makeing deliver world executable, so is there another solution? Thanks Lou > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Louis LeBlanc Fully Funded Hobbyist, KeySlapper Extrordinaire :) leblanc@acadia.ne.mediaone.net http://acadia.ne.mediaone.net

« previous php.general (#37391) next »