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!

    1) so if everything is working...whats the problem?
    2) What kind of a server is it? Windows/Unix?

      1) the php mail() sends mail with x-authentication-warning. according to php manual, i need to set up apache as the trusted-users in the sendmail configuration.

      i need to restart the sendmail to make it recognize the configuration changes. but my server is running the qmail, and i googled and found out i cannot run qmail and sendmail both, so i cannot start the sendmail.

      2) it is freebsd, i rented the server. the hosting company set up qmail running instead of sendmail, they said qmail is better. yes. it is running fine. i am asking the hosting company to set up the trusted users issue for me now.

        Write a Reply...