in reply to An SMTP server in Perl
I had to hack it a bit to get it to work on Win32, and even then it behaved slightly strangely. I had to comment out:
as my version of Perl doesn't implement getpwuid().if((getpwuid($>))[0] ne "root") { # how is this handled on Microsoft +systems? print STDERR "You are ", (getpwuid($>))[0], " and $0 must be run a +s root.\n"; exit(1); }
Then when I ran it I got this warning:
. I first tried telnetting to it, then I couldn't remember all the commands (just tried HELO foo) and then quit the telnet prog).readline() on closed filehandle main::ALIASES at smtp.pl line 77.
Boy, smtp.pl didn't like that! I got tons of warnings:
etc., you get the idea!Use of uninitialized value in exists at smtp.pl line 107, <GEN1> line +1. Use of uninitialized value in chomp at smtp.pl line 100, <GEN1> line 1 +. Use of uninitialized value in substitution (s///) at smtp.pl line 101, + <GEN1> l
But, it did send e-mail. Very nice little script.
|
|---|