FC3: php mail() + postfix problem
Matej Badalič
Matej.Badalic at volja.net
Sat Dec 25 09:30:03 UTC 2004
Hi everyone!
I have the following problem with my Fedora Core 3 - when I want to send an
e-mail from a php script with the mail() function it does not work.
If I try to send e-mail from any other mail client (KMail, Mozilla, Outlook
Express...) it works with no problem!
From the Apache error log I get this:
sendmail: fatal: chdir /var/spool/postfix: Permission denied
I have tried to change the configuration files of php and postfix, but nothing
seems to work. I use the following php packets:
php-5.0.2-8
php-odbc-5.0.2-8
php-devel-5.0.2-8
php-mysql-5.0.2-8
php-pear-5.0.2-8
php-imap-5.0.2-8
The same problem was when I was using php version 4.3.9 and 4.3.10!
In "php.ini" I have this:
[mail function]
SMTP = localhost
smtp_port = 25
sendmail_path = /usr/sbin/sendmail -t -i
I use postfix-2.1.5-2.4.FC3 and Apache packets:
httpd-2.0.52-3.1
httpd-suexec-2.0.52-3.1
In the "/etc/postfix/main.cf" I have the following line:
mail_owner = postfix
Should I change to some other user rather than postfix - but who (apache)?
Ah yes - the php script(file) worked fine in my RedHat 9...
Anyone have any idea where I am wrong?
Matej
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20041225/7277507c/attachment-0001.sig>
More information about the fedora-list
mailing list