Re: mail problems - phpinfo information

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On 10/13/2004 01:41 PM, Jed R. Brubaker wrote:
I have been having all kinds of problems with the mail() function in PHP. I realize that there are problems inheritly, but I think I am still trying to track down the problem.

My latest theory is that PHP isn't set up to work with the right mailing program. I know that our system is supposed to be using qmail that actually sits on a different server, but I found interesting information in phpinfo that is making me wonder if a local sendmail is handling the requests instead.

Here are the things I am finding in phpinfo:
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
SMTP localhost localhost
smtp_port 25 25
Path to sendmail /usr/sbin/sendmail -t -i

Enviornment
MAIL /var/mail/kpratt (what does this one do?)

With all of the above refering to sendmail, is there anyway that my mail() can actually be using qmail?

I don't think so.

qmail is by default at /var/qmail. If you have installed qmail, you should have uninstalled sendmail first, otherwise it may cause system havoc (all sorts of problems).

Anyway, qmail comes with a sendmail emulation wrapper in /var/qmail/bin/sendmail. The right thing to do is to uninstall sendmail and do something like:

ln -s /var/qmail/bin/sendmail /usr/lib/sendmail

Notice that it is /usr/lib/sendmail, which is the default sendmail program location since ever. Usually that location is a symbolic link to the real location of the sendmail (emulation) program. /usr/sbin/sendmail is the location of the real sendmail program (not the qmail emulation).

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux