Re: open(FH,'|qmail-inject') fails

2000-10-02 Thread Greg Stark
Doug MacEachern [EMAIL PROTECTED] writes: On Mon, 25 Sep 2000, Stas Bekman wrote: All you care about is to measure the time between email sending start and end (when the process continues on its execution flow). Why should one care about the details of internal implementation. i

Re: open(FH,'|qmail-inject') fails

2000-10-02 Thread ed phillips
Greg Stark wrote: A better plan for such systems is to have a queue in your database for parameters for e-mails to send. Insert a record in the database and let your web server continue processing. Have a separate process possibly on a separate machine or possibly on multiple machines do

RE: open(FH,'|qmail-inject') fails

2000-09-26 Thread Jeff Warner
is significantly faster than straight sendmail on Linux. Jeff -Original Message- From: Doug MacEachern [mailto:[EMAIL PROTECTED]] Sent: Monday, September 25, 2000 5:21 PM To: Stas Bekman Cc: Bill Moseley; Modperl Subject: Re: open(FH,'|qmail-inject') fails On Mon, 25 Sep 2000, Stas Bekman wrote

Re: open(FH,'|qmail-inject') fails

2000-09-25 Thread Doug MacEachern
On Mon, 25 Sep 2000, Stas Bekman wrote: All you care about is to measure the time between email sending start and end (when the process continues on its execution flow). Why should one care about the details of internal implementation. i only skimmed the first part of this thread, but

Re: open(FH,'|qmail-inject') fails

2000-09-25 Thread Stas Bekman
On Mon, 25 Sep 2000, Doug MacEachern wrote: On Mon, 25 Sep 2000, Stas Bekman wrote: All you care about is to measure the time between email sending start and end (when the process continues on its execution flow). Why should one care about the details of internal implementation. i

Re: open(FH,'|qmail-inject') fails

2000-09-25 Thread Matt Sergeant
On Mon, 25 Sep 2000, Stas Bekman wrote: On Mon, 25 Sep 2000, Doug MacEachern wrote: On Mon, 25 Sep 2000, Stas Bekman wrote: All you care about is to measure the time between email sending start and end (when the process continues on its execution flow). Why should one care

Re: open(FH,'|qmail-inject') fails

2000-09-25 Thread Stas Bekman
On Mon, 25 Sep 2000, Matt Sergeant wrote: On Mon, 25 Sep 2000, Stas Bekman wrote: On Mon, 25 Sep 2000, Doug MacEachern wrote: On Mon, 25 Sep 2000, Stas Bekman wrote: All you care about is to measure the time between email sending start and end (when the process continues

Re: open(FH,'|qmail-inject') fails

2000-09-25 Thread Matthew Byng-Maddick
On Mon, 25 Sep 2000, Matt Sergeant wrote: On Mon, 25 Sep 2000, Stas Bekman wrote: On Mon, 25 Sep 2000, Doug MacEachern wrote: On Mon, 25 Sep 2000, Stas Bekman wrote: All you care about is to measure the time between email sending start and end (when the process continues on its

Re: open(FH,'|qmail-inject') fails

2000-09-12 Thread Daniel Chetlin
On Thu, Sep 07, 2000 at 04:56:59PM -0400, Roger Espel Llima wrote: On Thu, Sep 07, 2000 at 01:25:21PM -0700, Randal L. Schwartz wrote: Man, if I see ONE MORE script that checks for a "legal email", well, you could always try to check the address against rfc822... but that would be one hell

[OT] Re: open(FH,'|qmail-inject') fails

2000-09-11 Thread Alexander Farber (EED)
"Randal L. Schwartz" wrote: Man, if I see ONE MORE script that checks for a "legal email", I'm gonna scream. Matter of fact, I already did. :) I screamed when I've seen the correct version too :-) It is at http://public.yahoo.com/~jfriedl/regex/code.html and the regex for URL's is at

Re: open(FH,'|qmail-inject') fails

2000-09-10 Thread Greg Cope
Perrin Harkins wrote: On Fri, 8 Sep 2000, Stas Bekman wrote: As far as benchmarks are concerned, I'm sending one mail after having displayed the page, so it shoul'dnt matter much ... Yeah, and everytime you get 1M process fired up... Nevertheless, in benchmarks we ran we found

Re: open(FH,'|qmail-inject') fails

2000-09-09 Thread Bill Moseley
At 11:15 PM 09/08/00 +0200, Stas Bekman wrote: On Fri, 8 Sep 2000, Bill Moseley wrote: I just looked at my old mail sending module a few days ago that uses sendmail and would fallback to Net::SMTP if sendmail wasn't available (it was running on Win at one point, argh!). I just removed the

Re: open(FH,'|qmail-inject') fails

2000-09-09 Thread Richard Chen
On Sat, Sep 09, 2000 at 12:29:36PM -0700, Bill Moseley wrote: At 11:15 PM 09/08/00 +0200, Stas Bekman wrote: On Fri, 8 Sep 2000, Bill Moseley wrote: I just looked at my old mail sending module a few days ago that uses sendmail and would fallback to Net::SMTP if sendmail wasn't available (it

Re: open(FH,'|qmail-inject') fails

2000-09-08 Thread Nicolas MONNET
On Thu, 7 Sep 2000, Andrew Dunstan wrote: |Could someone please explain to me why everybody seems so intent on |having a mod_perl handler fork in order to send mail? Why not just use |the very common Net::SMTP package which just talks on an SMTP socket to |whatever mailhost you have (localhost

Re: open(FH,'|qmail-inject') fails

2000-09-08 Thread Stas Bekman
On Fri, 8 Sep 2000, Nicolas MONNET wrote: On Thu, 7 Sep 2000, Andrew Dunstan wrote: |Could someone please explain to me why everybody seems so intent on |having a mod_perl handler fork in order to send mail? Why not just use |the very common Net::SMTP package which just talks on an SMTP

Re: open(FH,'|qmail-inject') fails

2000-09-08 Thread chicks
On 7 Sep 2000 Randal L. Schwartz wrote: This is neither necessary nor sufficient. Please stop with this nonsense. An email address can have ANY CHARACTER OF THE PRINTABLE ASCII SEQUENCE. An email address NEVER NEEDS TO GET NEAR A SHELL, so ALL CHARACTERS ARE SAFE. Clear? Man, if I see ONE

Re: open(FH,'|qmail-inject') fails

2000-09-08 Thread Bill Moseley
At 10:31 AM 09/08/00 +0200, Stas Bekman wrote: Net::SMTP works perfectly and doesn't lack any documentation. If there is a bunch of folks who use mod_perl for their guestbook sites it's perfectly Ok to run sendmail/postfix/whatever program you like... But it just doesn't scale for the big

Re: open(FH,'|qmail-inject') fails

2000-09-08 Thread brian moseley
On Fri, 8 Sep 2000, Bill Moseley wrote: I don't know how well either of these scale. But if scaling is important I'd think it best not to rely on some smtp daemon. this is a joke, right? 'i want to send lots of mail, i better not use a MAIL SERVER'.

Re: open(FH,'|qmail-inject') fails

2000-09-08 Thread Jens-Uwe Mager
On Fri, Sep 08, 2000 at 11:17:31AM -0400, [EMAIL PROTECTED] wrote: I have an immense amount of respect for you Randal, but I think you're generalizing a bit much here. There are a number of cases where checking an email address' validity makes perfectly good sense. The most obvious is just

Re: open(FH,'|qmail-inject') fails

2000-09-08 Thread Bill Moseley
At 10:07 AM 09/08/00 -0700, brian moseley wrote: On Fri, 8 Sep 2000, Bill Moseley wrote: I don't know how well either of these scale. But if scaling is important I'd think it best not to rely on some smtp daemon. this is a joke, right? 'i want to send lots of mail, i better not use a MAIL

Re: open(FH,'|qmail-inject') fails

2000-09-08 Thread Perrin Harkins
On Fri, 8 Sep 2000, Stas Bekman wrote: As far as benchmarks are concerned, I'm sending one mail after having displayed the page, so it shoul'dnt matter much ... Yeah, and everytime you get 1M process fired up... Nevertheless, in benchmarks we ran we found forking qmail-inject to be quite

Re: open(FH,'|qmail-inject') fails

2000-09-08 Thread Matt Sergeant
On Fri, 8 Sep 2000 [EMAIL PROTECTED] wrote: There is a very important reason for having to fork qmail-inject. Qmail by default will not allow mail relaying as a good security measure. You don't want your mail server to be used for spamming especially if you have a T3 or a T1 link. Anyone who

Re: open(FH,'|qmail-inject') fails

2000-09-08 Thread Randal L. Schwartz
"Bill" == Bill Moseley [EMAIL PROTECTED] writes: Bill I wouldn't want to depend on sending a lot of mail to a mail server I Bill didn't have control over in the middle of a request. Unless the mail is for very local delivery, EVERY piece of mail goes to a mail server that you don't have

Re: open(FH,'|qmail-inject') fails

2000-09-08 Thread Stas Bekman
On Fri, 8 Sep 2000, Perrin Harkins wrote: On Fri, 8 Sep 2000, Stas Bekman wrote: As far as benchmarks are concerned, I'm sending one mail after having displayed the page, so it shoul'dnt matter much ... Yeah, and everytime you get 1M process fired up... Nevertheless, in benchmarks

Re: open(FH,'|qmail-inject') fails

2000-09-08 Thread Stas Bekman
On Fri, 8 Sep 2000, Bill Moseley wrote: At 10:31 AM 09/08/00 +0200, Stas Bekman wrote: Net::SMTP works perfectly and doesn't lack any documentation. If there is a bunch of folks who use mod_perl for their guestbook sites it's perfectly Ok to run sendmail/postfix/whatever program you like...

RE: open(FH,'|qmail-inject') fails

2000-09-08 Thread David Harris
Stas wrote: On Fri, 8 Sep 2000, Perrin Harkins wrote: Nevertheless, in benchmarks we ran we found forking qmail-inject to be quite a bit faster than Net::SMTP. I'd say that at least from a command-line script qmail-inject is a more scalable approach. Quite possible, I was talking about

Re: open(FH,'|qmail-inject') fails

2000-09-08 Thread Andrew Dunstan
Regarding cost of forking etc.: Your mileage will undoubtedly vary, according to OS and MTA. Last time I did work on this was about a year ago on Solaris 2.6, with sendmail and postfix. In both cases using Net::SMTP was far faster. IIRC, with postfix there is no forking cost at all,

RE: open(FH,'|qmail-inject') fails

2000-09-08 Thread Shane Adams
Title: RE: open(FH,'|qmail-inject') fails Another approach to is to write the email directly into the queue. I've used this approach and it's very fast. After you write your email to the qmail queue, you write a value of 1 to a named pipe that qmail reads off of. This causes a qmail process

open(FH,'|qmail-inject') fails

2000-09-07 Thread Nicolas MONNET
Might be a faq, but why would open(FH,'|qmail-inject') fail with fatal: read-error from within mod_perl? Thanks for your help.

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Frédéric Schwien
Might be a faq, but why would open(FH,'|qmail-inject') fail with fatal: read-error from within mod_perl? Use open MAIL, "| /var/qmail/bin/qmail-inject" or die_html("test"); print MAIL "[your mail]"; close MAIL; I suppose you forgot the full path to qmail-inject ...

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Nicolas MONNET
No, no the full path is there, I just did'nt copy it. On Thu, 7 Sep 2000, Frédéric Schwien wrote: |Date: Thu, 7 Sep 2000 12:18:20 +0200 |From: Frédéric Schwien [EMAIL PROTECTED] |To: Nicolas MONNET [EMAIL PROTECTED], [EMAIL PROTECTED] |Subject: Re: open(FH,'|qmail-inject') fails | | Might

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Frank D. Cringle
Nicolas MONNET [EMAIL PROTECTED] writes: Might be a faq, but why would open(FH,'|qmail-inject') fail with fatal: read-error from within mod_perl? Are the files in /var/qmail/control world readable? Is QMAILMFTFILE defined in the environment and pointing to a file that the httpd process cannot

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Nicolas MONNET
Thanks a lot, seems to be it, never heard about that env var. That's one weird behavior. On 7 Sep 2000, Frank D. Cringle wrote: |Nicolas MONNET [EMAIL PROTECTED] writes: | Might be a faq, but why would open(FH,'|qmail-inject') fail with | fatal: read-error from within mod_perl? | |Are the

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Roger Espel Llima
Might be a faq, but why would open(FH,'|qmail-inject') fail with fatal: read-error from within mod_perl? Use open MAIL, "| /var/qmail/bin/qmail-inject" or die_html("test"); print MAIL "[your mail]"; close MAIL; I suppose you forgot the full path to qmail-inject

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Tom Servo
On Thu, 7 Sep 2000, Roger Espel Llima wrote: Might be a faq, but why would open(FH,'|qmail-inject') fail with fatal: read-error from within mod_perl? Use open MAIL, "| /var/qmail/bin/qmail-inject" or die_html("test"); print MAIL "[your mail]"; close MAIL;

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Randal L. Schwartz
"Roger" == Roger Espel Llima [EMAIL PROTECTED] writes: Roger # limit allowed characters in email addresses Roger $to =~ tr/-a-zA-Z0-9_+%$.,:!@=()[]//cd; This is neither necessary nor sufficient. Please stop with this nonsense. ** * * An

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Roger Espel Llima
On Thu, Sep 07, 2000 at 01:25:21PM -0700, Randal L. Schwartz wrote: "Roger" == Roger Espel Llima [EMAIL PROTECTED] writes: Roger # limit allowed characters in email addresses Roger $to =~ tr/-a-zA-Z0-9_+%$.,:!@=()[]//cd; * An email address can have ANY CHARACTER OF THE PRINTABLE

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Andrew Dunstan
Could someone please explain to me why everybody seems so intent on having a mod_perl handler fork in order to send mail? Why not just use the very common Net::SMTP package which just talks on an SMTP socket to whatever mailhost you have (localhost or other). There are other packages on CPAN