Re: Qmail problem

From: Date: Fri, 09 Mar 2001 16:26:49 +0000
Subject: Re: Qmail problem
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-43169@lists.php.net to get a copy of this message
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 petejc@ny.collab.net'); ?> good luck, Nuno Silva ----- Original Message ----- From: "pete collins" <petejc@collab.net> To: <php-general@lists.php.net> 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:petejc@ny.collab.net > 250 ok > RCPT TO:pete@mozdev.org > 250 ok > DATA > 354 go ahead > From:"pete collins" <petejc@ny.collab.net> > To:"pete"<pete@mozdev.org> > 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 petejc@ny.collab.net'); > ?> > > > Nothing. > > But this works: > > $ su httpd > [httpd@tigris bin]$ /var/qmail/bin/qmail-inject petejc@ny.collab.net > 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#43169) next »