Re: [PHP] Qmail problem

2001-03-09 Thread Nick Davies


Technically you shouldn't need to change anything if the sendmail symlink
is in the same place as the original sendmail.  It looks like you have a
problem with your qmail configuration.  

Can you telnet to port 25 of your box and get the qmail blurf?

Nick.


On Thu, 8 Mar 2001, pete collins wrote:

 
 I keep getting:
 qmail-inject: fatal: read error
 
 I've tried everything.
 
 Sendmail is symlinked to /var/qmail/bin/sendmail wrapper
 
 $ ls -l /usr/lib/sendmail
 lrwxrwxrwx   1 root root   28 Aug 25  2000 /usr/lib/sendmail
 - ../../var/qmail/bin/sendmail
 
 $ ls -l /usr/sbin/sendmail
 lrwxrwxrwx   1 root root   28 Aug 25  2000
 /usr/sbin/sendmail - ../../var/qmail/bin/sendmail
 
 
 I have tried every permutation for my sendmail_path in php.ini
 
 I tested the php code i'm using from my FreeBSD box which uses sendmail
 and it all works fine.
 
 I can use qmail fine from perl.
 
 Does anyone have any ideas? This is down right silly. ;-)
 
 Thanks
 
 --pete
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Qmail problem

2001-03-09 Thread pete collins

 Can you telnet to port 25 of your box and get the qmail blurf?

Sure.

--
$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 mozdev.org ESMTP
HELO localhost
250 mozdev.org
MAIL FROM:[EMAIL PROTECTED]
250 ok
RCPT TO:[EMAIL PROTECTED]
250 ok
DATA
354 go ahead
From:"pete collins" [EMAIL PROTECTED]
To:"pete"[EMAIL PROTECTED]
Subject:Testing

This is a test man

.
250 ok 984146454 qp 16200
QUIT
221 mozdev.org
Connection closed by foreign host.
--

I even tried this:

?php 
passthru('/var/qmail/bin/qmail-inject [EMAIL PROTECTED]');
?


Nothing.

But this works:

$ su httpd
[httpd@tigris bin]$ /var/qmail/bin/qmail-inject [EMAIL PROTECTED]
Subject: test

testing

^D

php is running as user httpd.

Any ideas?

Thanks

--pete

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Qmail problem

2001-03-09 Thread Nuno Sa e Silva

hi, you can use the sendmail wrapper as instructed in the qmail docs.

if you want to use qmail-inject try:
?php
system('echo "Subject: test\n\n\nTest" | /var/qmail/bin/qmail-inject
[EMAIL PROTECTED]');
?

good luck,
Nuno Silva


- Original Message -
From: "pete collins" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 09, 2001 2:07 PM
Subject: Re: [PHP] Qmail problem


  Can you telnet to port 25 of your box and get the qmail blurf?

 Sure.

 --
 $ telnet localhost 25
 Trying 127.0.0.1...
 Connected to localhost.localdomain.
 Escape character is '^]'.
 220 mozdev.org ESMTP
 HELO localhost
 250 mozdev.org
 MAIL FROM:[EMAIL PROTECTED]
 250 ok
 RCPT TO:[EMAIL PROTECTED]
 250 ok
 DATA
 354 go ahead
 From:"pete collins" [EMAIL PROTECTED]
 To:"pete"[EMAIL PROTECTED]
 Subject:Testing

 This is a test man

 .
 250 ok 984146454 qp 16200
 QUIT
 221 mozdev.org
 Connection closed by foreign host.
 --

 I even tried this:

 ?php
 passthru('/var/qmail/bin/qmail-inject [EMAIL PROTECTED]');
 ?


 Nothing.

 But this works:

 $ su httpd
 [httpd@tigris bin]$ /var/qmail/bin/qmail-inject [EMAIL PROTECTED]
 Subject: test

 testing

 ^D

 php is running as user httpd.

 Any ideas?

 Thanks

 --pete

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Qmail problem

2001-03-09 Thread pete collins

 hi, you can use the sendmail wrapper as instructed in the qmail docs.

Done that. Thanks.

 
 if you want to use qmail-inject try:
 ?php
 system('echo "Subject: test\n\n\nTest" | /var/qmail/bin/qmail-inject
 [EMAIL PROTECTED]');
 ?

Tired this as well. Nothing. 

system('echo "Subject: test\n\n\nTest" | /var/qmail/bin/qmail-inject
[EMAIL PROTECTED]');

Very strange!!

--pete

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Qmail problem

2001-03-09 Thread pete collins

I am running this shell script from php using passthru.


#!/bin/sh

printf "Starting Shell script: brbr\n";

printf "command ls -l /var/qmail/bin/qmail-injectbr\n";
ls -l /var/qmail/bin/qmail-inject;

printf "brbr***br\n";
printf "Subject: TESTING FROM SHELL SCRIPT" | /var/qmail/bin/sendmail
[EMAIL PROTECTED];
printf "br***br\n";

printf "brFinished running shell script . . . \n\n\n";

exit;



My php output is this:

Starting Shell script: 

command ls -l /var/qmail/bin/qmail-inject
-rwxr-xr-x 1 root qmail 34748 Aug 25 2000 /var/qmail/bin/qmail-inject 

***

***

Finished running shell script . . . 


No mail. If i su to httpd and run the script, mail works.
Shoot me now please. ;-) 

--pete

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Qmail problem

2001-03-08 Thread pete collins


I keep getting:
qmail-inject: fatal: read error

I've tried everything.

Sendmail is symlinked to /var/qmail/bin/sendmail wrapper

$ ls -l /usr/lib/sendmail
lrwxrwxrwx   1 root root   28 Aug 25  2000 /usr/lib/sendmail
- ../../var/qmail/bin/sendmail

$ ls -l /usr/sbin/sendmail
lrwxrwxrwx   1 root root   28 Aug 25  2000
/usr/sbin/sendmail - ../../var/qmail/bin/sendmail


I have tried every permutation for my sendmail_path in php.ini

I tested the php code i'm using from my FreeBSD box which uses sendmail
and it all works fine.

I can use qmail fine from perl.

Does anyone have any ideas? This is down right silly. ;-)

Thanks

--pete

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Qmail problem

2001-03-08 Thread David Robley

On Fri,  9 Mar 2001 03:43, pete collins wrote:
 I keep getting:
 qmail-inject: fatal: read error

 I've tried everything.

 Sendmail is symlinked to /var/qmail/bin/sendmail wrapper

 $ ls -l /usr/lib/sendmail
 lrwxrwxrwx   1 root root   28 Aug 25  2000
 /usr/lib/sendmail - ../../var/qmail/bin/sendmail

 $ ls -l /usr/sbin/sendmail
 lrwxrwxrwx   1 root root   28 Aug 25  2000
 /usr/sbin/sendmail - ../../var/qmail/bin/sendmail


 I have tried every permutation for my sendmail_path in php.ini

 I tested the php code i'm using from my FreeBSD box which uses sendmail
 and it all works fine.

 I can use qmail fine from perl.

 Does anyone have any ideas? This is down right silly. ;-)

 Thanks

 --pete

For me, on Slackware, this works:

~$ ls -l /usr/sbin/sendmail
lrwxrwxrwx   1 root root   23 Aug 28  2000 /usr/sbin/sendmail 
- /var/qmail/bin/sendmail*
~$ ls -l /usr/lib/sendmail
lrwxrwxrwx   1 root root   18 Jul 12  2000 /usr/lib/sendmail 
- /usr/sbin/sendmail*

sendmail_path   =   /usr/sbin/sendmail -t -i;for unix only, 
may supply arguments as well (default is sendmail -t) 

Cheers  
-- 
David Robley| WEBMASTER  Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Qmail problem

2001-03-08 Thread Rich Cavanaugh

Or you could try this:

sendmail_path   =   /var/qmail/bin/qmail-inject

Obviously you'll want to put in your correct path to qmail-inject, but that
works fine for me.

--
rich

-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 7:24 PM
To: pete collins; [EMAIL PROTECTED]
Subject: Re: [PHP] Qmail problem


On Fri,  9 Mar 2001 03:43, pete collins wrote:
 I keep getting:
 qmail-inject: fatal: read error

 I've tried everything.

 Sendmail is symlinked to /var/qmail/bin/sendmail wrapper

 $ ls -l /usr/lib/sendmail
 lrwxrwxrwx   1 root root   28 Aug 25  2000
 /usr/lib/sendmail - ../../var/qmail/bin/sendmail

 $ ls -l /usr/sbin/sendmail
 lrwxrwxrwx   1 root root   28 Aug 25  2000
 /usr/sbin/sendmail - ../../var/qmail/bin/sendmail


 I have tried every permutation for my sendmail_path in php.ini

 I tested the php code i'm using from my FreeBSD box which uses sendmail
 and it all works fine.

 I can use qmail fine from perl.

 Does anyone have any ideas? This is down right silly. ;-)

 Thanks

 --pete

For me, on Slackware, this works:

~$ ls -l /usr/sbin/sendmail
lrwxrwxrwx   1 root root   23 Aug 28  2000 /usr/sbin/sendmail
- /var/qmail/bin/sendmail*
~$ ls -l /usr/lib/sendmail
lrwxrwxrwx   1 root root   18 Jul 12  2000 /usr/lib/sendmail
- /usr/sbin/sendmail*

sendmail_path   =   /usr/sbin/sendmail -t -i;for unix only,
may supply arguments as well (default is sendmail -t)

Cheers
--
David Robley| WEBMASTER  Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]