in reply to SMTP Connection Problem

My only suggestion is that you scatter this line liberally through your program, Net/Cmd.pm and Net/SMTP.pm to find out the flow:
print STDERR __FILE__, "(", __LINE__, ")\n";
That's how I figure out what's going on.