RE: [PHP] mail problems - phpinfo information

2004-10-13 Thread Jay Blanchard
[snip]
... making me wonder if a local sendmail is handling the requests
instead.

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

From http://www.php.net/mail, something you have not read apparently

For the Mail functions to be available, PHP must have access to the
sendmail binary on your system during compile time. [LOOKIE
HERE--If you use another mail program, such as qmail or postfix, be
sure to use the appropriate sendmail wrappers that come with
them.--END LOOKIE] PHP will first look for sendmail in your PATH,
and then in the following:
/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly
recommended to have sendmail available from your PATH. Also, the user
that compiled PHP must have permission to access the sendmail binary. 

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



Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread Matthew Sims
 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?

 Thanks!

The mail settings in php.ini is for Windows only. When using PHP on
Unix/Linux, mail() always defaults to the sendmail binary on localhost. So
you can ignore what it says in phpinfo.

My mail server at home is running Qmail as well as the web server I run at
my work. (Quick plug, Qmail rulez!1!1!!)...okay, anyways, since Qmail
comes with a sendmail wrapper you should have no problems using it with
the mail() function.

If your Qmail server is on a remote host, then you need to configure the
local server's sendmail program to relay mail to the remote server.

/var/mail is where users mail boxes are stored when using to old mail
format mbox. Qmail uses the newer format Maildir which resides in user's
home directory. So it looks like you have a user by the name of kpratt?

-- 
--Matthew Sims
--http://killermookie.org

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



Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread John Nichel
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?
Depends on how qmail was installed.  If it was installed on the local 
box, and via instructions like Life With qmail, then yes, it will work 
fine.  qmail has a sendmail wrapper, so you need to just ensure that 
there's a symbolic link to it on sendmail's normal home.

The MTA has to be on the local machine.
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread Jed R. Brubaker
So as I am not an administrator, and all I have to go on is phpinfo (unless 
anyone has some suggestions), should I be seeing some trace of qmail in the 
phpinfo?

That is why I posted. I apologize if I didn't make it clear. I have read all 
about mail, and even used the fantastic Lemos MIME problem correcting email 
class to try to tackle my problems from a different angle.

Given the paths phpinfo is reporting, is there anyway that the system could 
somehow still be using qmail? Or is that outside the scope of what this 
phpinfo can tell me?

Thanks again!


Jay Blanchard [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
[snip]
... making me wonder if a local sendmail is handling the requests
instead.

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

From http://www.php.net/mail, something you have not read apparently

For the Mail functions to be available, PHP must have access to the
sendmail binary on your system during compile time. [LOOKIE
HERE--If you use another mail program, such as qmail or postfix, be
sure to use the appropriate sendmail wrappers that come with
them.--END LOOKIE] PHP will first look for sendmail in your PATH,
and then in the following:
/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly
recommended to have sendmail available from your PATH. Also, the user
that compiled PHP must have permission to access the sendmail binary.  

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



Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread John Nichel
Jay Blanchard wrote:
From http://www.php.net/mail, something you have not read apparently
Pt.  Read?  Why would I do that?  ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread John Nichel
Jed R. Brubaker wrote:
So as I am not an administrator, and all I have to go on is phpinfo (unless 
anyone has some suggestions), should I be seeing some trace of qmail in the 
phpinfo?
No.
snip
Given the paths phpinfo is reporting, is there anyway that the system could 
somehow still be using qmail? Or is that outside the scope of what this 
phpinfo can tell me?
It could be using any *nix MTA as long as it has a Sendmail wrapper 
(qmail does).  PHP uses the Sendmail binary.  Will only use Sendmail. 
Will only show Sendmail in the phpinfo().  What your sysadmins may or 
may not have done to the Sendmail binary is a different story.

PHP -- Sendmail Binary //using Sendmail
PHP -- Sendmail Binary (really qmail wrapper) -- qmail //using qmail
Have shell access to the box?  Look in /var for a qmail directory.  Can 
you recieve email on the box?  If so, look at the headers.

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread bbonkosk


- Original Message -
From: Jed R. Brubaker [EMAIL PROTECTED]
Date: Wednesday, October 13, 2004 1:21 pm
Subject: Re: [PHP] mail problems - phpinfo information

 So as I am not an administrator, and all I have to go on is 
 phpinfo (unless 
 anyone has some suggestions), should I be seeing some trace of 
 qmail in the 
 phpinfo?

No.

 
 That is why I posted. I apologize if I didn't make it clear. I 
 have read all 
 about mail, 

maybe read, but not quite understanding?

and even used the fantastic Lemos MIME problem 
 correcting email 
 class to try to tackle my problems from a different angle.
 
 Given the paths phpinfo is reporting, is there anyway that the 
 system could 
 somehow still be using qmail? Or is that outside the scope of what 
 this 
 phpinfo can tell me?

Yes, it could be using qmail, or sendmail, or postfix.  PHP calls sendmail which is 
a binary that could be a shell for any of the MTA's mentioned above.  The sendmail 
provides a interface for PHP, it is up to the sys admin to make sure that the MTA 
being used is properly configured.


 
 Thanks again!
 
 
 Jay Blanchard [EMAIL PROTECTED] wrote in 
 message 
 news:[EMAIL PROTECTED]
 [snip]
 ... making me wonder if a local sendmail is handling the requests
 instead.
 
 With all of the above refering to sendmail, is there anyway that my
 mail()
 can actually be using qmail?
 [/snip]
 
 From http://www.php.net/mail, something you have not read 
 apparently
 For the Mail functions to be available, PHP must have access to the
 sendmail binary on your system during compile time. [LOOKIE
 HERE--If you use another mail program, such as qmail or 
 postfix, be
 sure to use the appropriate sendmail wrappers that come with
 them.--END LOOKIE] PHP will first look for sendmail in your PATH,
 and then in the following:
 /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly
 recommended to have sendmail available from your PATH. Also, the user
 that compiled PHP must have permission to access the sendmail 
 binary.  
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

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



Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread Matthew Sims
 So as I am not an administrator, and all I have to go on is phpinfo
 (unless
 anyone has some suggestions), should I be seeing some trace of qmail in
 the
 phpinfo?

 That is why I posted. I apologize if I didn't make it clear. I have read
 all
 about mail, and even used the fantastic Lemos MIME problem correcting
 email
 class to try to tackle my problems from a different angle.

 Given the paths phpinfo is reporting, is there anyway that the system
 could
 somehow still be using qmail? Or is that outside the scope of what this
 phpinfo can tell me?

 Thanks again!

If you're on a linux/unix machine, don't even look at phpinfo about mail
stuff. The mail() function always goes to the sendmail binary.

Do you have a shell account? Can you perform this command?

# echo Test | sendmail [EMAIL PROTECTED]

And do you receive it? Does 'which sendmail' return you the path to where
the sendmail binary is?

You should be contacting the admin of this server and be asking these
questions. We can't answer them since we don't own/have access to the
machine.

-- 
--Matthew Sims
--http://killermookie.org

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



Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread Jason Wong
On Thursday 14 October 2004 01:10, Matthew Sims wrote:

 The mail settings in php.ini is for Windows only. When using PHP on
 Unix/Linux, mail() always defaults to the sendmail binary on localhost. So
 you can ignore what it says in phpinfo.

That's incorrect. The 

  sendmail_path =

setting is very much a un*x only setting (although for most standard server 
setups you never need to change it).

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Intel CPUs are not defective, they just act that way.
-- Henry Spencer
*/

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