mail() php manual says
Systems not using sendmail should set this directive to the sendmail wrapper/replacement their mail system offers, if any. For example, » Qmail users can normally set it to /var/qmail/bin/sendmail or /var/qmail/bin/qmail-inject.
My server is using qmail/vpopmail for the mail services.
In /etc/rc.conf
sendmail_enable="NONE"
So my server is not running the sendmail.
But my php.ini set up is
sendmail_from NULL
sendmail_path "/usr/sbin/sendmail -t -i"
And I checked ""/usr/sbin/sendmail" and it was actually a link to "/usr/sbin/mailwrapper"
And I checked the mailer.conf
sendmail /usr/libexec/sendmail/sendmail
send-mail /usr/libexec/sendmail/sendmail
mailq /usr/libexec/sendmail/sendmail
newaliases /usr/libexec/sendmail/sendmail
hoststat /usr/libexec/sendmail/sendmail
purgestat /usr/libexec/sendmail/sendmail
and my php mail() function still works.
My question is sendmail is not running on my server, and my php mail() works with the sendmail_path as "/usr/sbin/mailwrapper" and it still configured to use sendmail. So it seems that my php mail() still using sendmail.
Am I right?
do I need to change the php.ini to
"sendmail_path /var/qmail/bin/sendmail"
to make it work better? or it is the same?
Or should I change the mailer.conf to
sendmail /var/qmail/bin/sendmail
send-mail /var/qmail/bin/sendmail
mailq /var/qmail/bin/qmail-qread
newaliases /var/qmail/bin/newaliases
hoststat /var/qmail/bin/qmail-tcpto
purgestat /var/qmail/bin/qmail-tcpok
Because I am using qmail now?
How about sendmail trusted users issue? if I am running qmail, would I still need the set up trusted users list of the sendmail to avoid php mail()'s x-authentication-alert?
Thanks!