Re: php mail() function fails

2007-01-14 Thread Lars Hansson
On Friday 12 January 2007 23:59, Ste Jones wrote: > Just out of interest does femail need a sh in the chroot like > mini_sendmail? mini_sendmail doesn't need it, it's PHP that does. --- Lars Hansson

Re: php mail() function fails

2007-01-12 Thread Matthias Kilian
On Fri, Jan 12, 2007 at 11:53:34AM -0800, Bryan Irvine wrote: > >yeah because the guy who wrote the mail() function in php thought it > >would be > >easier to call popen() and save the command line parsing than parsing it > >then > >calling an exec*() function. > > isn't that the recomended meth

Re: php mail() function fails

2007-01-12 Thread Matthew R. Dempsky
On Fri, Jan 12, 2007 at 11:53:34AM -0800, Bryan Irvine wrote: > isn't that the recomended method in C too? I have no authority in > this but my ancient C CGI book does it that way too IIRC. Maybe for when you're using a fixed string, but when you want to pass user input as an argument to a comman

Re: php mail() function fails

2007-01-12 Thread Bryan Irvine
yeah because the guy who wrote the mail() function in php thought it would be easier to call popen() and save the command line parsing than parsing it then calling an exec*() function. isn't that the recomended method in C too? I have no authority in this but my ancient C CGI book does it that

[Fwd: Re: php mail() function fails]

2007-01-12 Thread Mike Erdely
Now I remember why I chose to go with something else! Original Message Subject: Re: php mail() function fails Date: Fri, 12 Jan 2007 15:59:23 + From: Ste Jones <[EMAIL PROTECTED]> To: misc@openbsd.org Just out of interest does femail need a sh in the chroo

Re: php mail() function fails

2007-01-12 Thread Mike Erdely
Robert Nagy wrote: On (12/01/07 03:28), Mike Erdely wrote: noob lenoobie wrote: My problem is the following : I'm unable to send mail from php. Problem is with the Apache chroot. I've used http://phpmailer.sourceforge.net/ successfully. > What about using some stuff that we have in the ports

Re: php mail() function fails

2007-01-12 Thread Gilles Chehade
On Fri, Jan 12, 2007 at 03:59:23PM +, Ste Jones wrote: > On 1/12/07, Henning Brauer <[EMAIL PROTECTED]> wrote: > >* Joachim Schipper <[EMAIL PROTECTED]> [2007-01-12 15:50]: > >> On Fri, Jan 12, 2007 at 12:30:32PM +0100, Henning Brauer wrote: > >> > * Lars Hansson <[EMAIL PROTECTED]> [2007-01-12

Re: php mail() function fails

2007-01-12 Thread Henning Brauer
* Ste Jones <[EMAIL PROTECTED]> [2007-01-12 17:40]: > Just out of interest does femail need a sh in the chroot like mini_sendmail? a shell? femail itself, no. but some things may invoke it using sh -c. -- Henning Brauer, [EMAIL PROTECTED], [EMAIL PROTECTED] BS Web Services, http://bsws.de Full-S

Re: php mail() function fails

2007-01-12 Thread Ste Jones
On 1/12/07, Henning Brauer <[EMAIL PROTECTED]> wrote: * Joachim Schipper <[EMAIL PROTECTED]> [2007-01-12 15:50]: > On Fri, Jan 12, 2007 at 12:30:32PM +0100, Henning Brauer wrote: > > * Lars Hansson <[EMAIL PROTECTED]> [2007-01-12 08:20]: > > > On Friday 12 January 2007 13:04, noob lenoobie wrote:

Re: php mail() function fails

2007-01-12 Thread L. V. Lammert
On Fri, 12 Jan 2007, noob lenoobie wrote: > Dear list, > > I'm a happy openbsd user since 3.7. It always served me well. But now for > the first time, I'm stuck. > > My problem is the following : I'm unable to send mail from php. > Surely you've heard of chroot? http://www.acme.com/softwa

Re: php mail() function fails

2007-01-12 Thread Henning Brauer
* Joachim Schipper <[EMAIL PROTECTED]> [2007-01-12 15:50]: > On Fri, Jan 12, 2007 at 12:30:32PM +0100, Henning Brauer wrote: > > * Lars Hansson <[EMAIL PROTECTED]> [2007-01-12 08:20]: > > > On Friday 12 January 2007 13:04, noob lenoobie wrote: > > > > My problem is the following : I'm unable to sen

Re: php mail() function fails

2007-01-12 Thread Joachim Schipper
On Fri, Jan 12, 2007 at 12:30:32PM +0100, Henning Brauer wrote: > * Lars Hansson <[EMAIL PROTECTED]> [2007-01-12 08:20]: > > On Friday 12 January 2007 13:04, noob lenoobie wrote: > > > My problem is the following : I'm unable to send mail from php. > > > > the php mail() function will not work in

Re: php mail() function fails

2007-01-12 Thread Henning Brauer
* Lars Hansson <[EMAIL PROTECTED]> [2007-01-12 08:20]: > On Friday 12 January 2007 13:04, noob lenoobie wrote: > > My problem is the following : I'm unable to send mail from php. > > the php mail() function will not work in chroot (unless you install the > chroot > flavour of the mini-sendmail p

Re: php mail() function fails

2007-01-12 Thread Robert Nagy
What about using some stuff that we have in the ports system? Like mini_sendmail? On (12/01/07 03:28), Mike Erdely wrote: > noob lenoobie wrote: > >My problem is the following : I'm unable to send mail from php. > > > Problem is with the Apache chroot. I've used > http://phpmailer.sourceforge.

Re: php mail() function fails

2007-01-12 Thread Mike Erdely
noob lenoobie wrote: My problem is the following : I'm unable to send mail from php. Problem is with the Apache chroot. I've used http://phpmailer.sourceforge.net/ successfully. -ME

Re: php mail() function fails

2007-01-12 Thread prad
On Fri, 12 Jan 2007 06:04:57 +0100 "noob lenoobie" <[EMAIL PROTECTED]> wrote: > I'm unable to send mail from php > i think that's because you don't have smtp access in a chrooted environment, but you can get around that with pearmail. we installed pearmail and used a function like: function pea

Re: php mail() function fails

2007-01-11 Thread Lars Hansson
On Friday 12 January 2007 13:04, noob lenoobie wrote: > My problem is the following : I'm unable to send mail from php. the php mail() function will not work in chroot (unless you install the chroot flavour of the mini-sendmail package). Lars Hansson

php mail() function fails

2007-01-11 Thread noob lenoobie
Dear list, I'm a happy openbsd user since 3.7. It always served me well. But now for the first time, I'm stuck. My problem is the following : I'm unable to send mail from php. The mail function works fine (echo "test" | mail [EMAIL PROTECTED] succeds). php, works fine, I disable safe mode for d