[NTLUG:Discuss] sendmail can not send mail out form apache/phpapplication.

David Simmons dave at dgnal.net
Thu Oct 27 20:03:21 CDT 2005


>> sendmail can not send mail out form apache/php application.

Be sure to read/check /var/log/mail and the PHP log

but, I'm pretty sure you're php.ini file needs editting...depending on
which mail service you have, double check the /etc/php.ini lines for:

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = me at example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t
-i").
; WAS sendmail_path = /usr/sbin/sendmail -t -i
sendmail_path = /usr/sbin/sendmail.postfix -t -i

and double-check that the references shown are real...and like you see
above, changed on my system for Postfix.   I think you're line might be:

sendmail_path = /usr/sbin/sendmail.sendmail -t -1

also, double check that /etc/alternatives/mta-sendmail actually points to
a real file...again, I bet you need it to be linked to
/usr/lib/sendmail.sendmail

hope that helps,

dave





More information about the Discuss mailing list