Hey, thanks for the help. Right now, I don't really care about performace/DOS, I just want to make sure, if the mail is sent to that account, my perl script will be executed. It still doesn't seem to work:
Here is what in my perl file. .forward is the same: #!/usr/bin/perl open LOG, ">/home/lz/perl/logfile" or die "Can't create logfile: $!"; print LOG "test"; When the mail is sent, the file is not generared... When I execute the code from the command prompt, file is generated... Any ideas? Thanks guys! --- drieux <[EMAIL PROTECTED]> wrote: > > On Thursday, May 23, 2002, at 11:51 , lz wrote: > > > Hi guys, > > > > sorry for the influx of messages. Here is what I > have > > in my .forward file > > |/home/lz/perl/checkRelation.pl > phase one good - the .forward file seems correct > > > Here is what in my perl file: > > #!/usr/bin/perl > > while(<STDIN>) > > { > > open LOG ">/home/lz/perl/logfile" or die > "Can't > > create logfile: $!"; > > > > } > > note that you might want to open the logfile before > going into the loop. > > then you might want to DO something with the > open file handle - > > also you might want to do something with the > stuff you are reading from STDIN before > you decide to just spam your logfile.... > > as jonathan has already noted - you will spawn > one instance of this code for all emails - hence > you will open up the site to a denial of service > attack.... by trying this trick..... > > what you may wish to do is go back to square one, > and let the email pile up at the smtp host, and > have a single process go and read the email on an > arbitrary interval.... > > > ciao > drieux > > --- > __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]