php - mail() and sendmails clientmqueue directory
| From: | Luke Vogel | Date: | Sat, 23 Feb 2002 12:20:43 +0000 |
| Subject: | php - mail() and sendmails clientmqueue directory | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85967@lists.php.net to get a copy of this message | ||
I'm setting up a contact page on a site.
Typically I use form inputs to assemble the data and then use the mail()
function to send the data to the appropriate user.
Whenever I submit the form data, I immediately see a system error
reporting that sendmail (version 8.12.1) cant chdir to
/var/spool/clientmqueue ... and naturally the mail does not get
delivered.
Permissions and ownership of this directory are 4770 and root.smmsp
respectively. (smmsp is the SendMail Mail Submission Protocol
userid/groupid). If I change permissions to 4777, the mail gets
through, but I get a syslog warning that I have dangerous permissions
set for that directory (I agree).
Has anyone else experienced this issue, and or can anyone recommend a
secure solution.
--
Regards
Luke
------
Q: What does FAQ stand for?
A: We are Frequently Asked this Question, and we have no idea.
------
C.O.L.S FAQ - http://www.linuxsecurity.com/docs/colsfaq.html
Note: Remove NOSPAM from my return address if necessary
------