in reply to Network Programming With Perl example 1

In addition to the good suggestions everyone else gave you, it's also entirely likely that this problem has nothing to do with the fact that you are running it on windows, and everything to do with the location of the windows server you are running it on. It is very common for ISPs to block all outgoing smtp traffic and force you to use their outgoing mail server (so you can't send spam from your house). Try opening up a command line and using telnet to connect to the hostname and port you are trying this on, it could very well be that no application is going to work on the hostname and port you are trying to connect to (but since you don't say what those are, it's tough to guess).


We're not surrounded, we're in a target-rich environment!
  • Comment on Re: Network Programming With Perl example 1

Replies are listed 'Best First'.
Re^2: Network Programming With Perl example 1
by Anonymous Monk on May 01, 2005 at 19:31 UTC
    Hi,Thanks. I don't have a firewall on and I tried connecting via telnet;
    Microsoft Telnet> o mx.hotmail.com:smtp Connecting To mx.hotmail.com:smtp...Could not open connection to the h +ost, on po rt 23: Connect failed Microsoft Telnet> o hotmail.com Connecting To hotmail.com...Could not open connection to the host, on +port 23: C onnect failed Microsoft Telnet>
    Is this bad? And if the ISP is blocking this, there is NOTHING I can do at all so there's no point in reading the rest of the book?
      Have you tried checking with your ISP to see if they are blocking SMTP ports on your system? I know that my ISP does block me from sending mail using my work server via port 25. The server for my work account is specifically set to a different port to get around this problem. Might be what's happening to you.

      A lot of ISP's have done this to try to cut down on zombie spam being sent through their servers apparently.

      HTH!

      Useless trivia: In the 2004 Las Vegas phone book there are approximately 28 pages of ads for massage, but almost 200 for lawyers.

      You could always try to learn these things by using a shell account on a unix host that does have the ability to connect to these ports.

      Or even find out what you can do by accessing the ports to mailservers your network does allow.

      Squibbie Pooh Ski Doo.
      Hi, simply try the following in a dosbox: "telnet mx.hotmail.com 25" The syntax of telnet on win16/32-hosts is "telnet <host> <port> Regards, fritzo
        One caveat to this. mx.hotmail.com is not a valid host. Try mx1.hotmail.com (or mx2..4)
      I don't mean any disrespect, but I would guess that you don't _know_ whether or not you have a firewall blocking your connection attempts. If you have XP, you're probably running SP2, and even after turning the included firewall off, that doesn't guarantee that all firewalling within XP has been removed (I remember reading lots of "issues" at Tech Support Guys where after the FW was supposedly turned off, things were still broken).

      Are you using a firewalling router between your machine and the internet? That is yet another possible place that needs investigation.

      Generally speaking, those that definitely have a clue are those that post details about what firewalls they do have, and what they've done to open those up to allow the testing they are attempting to do.

      -Scott

      As fritzo indicated, the error given back indicates that you are not connecting on port 25, but rather 23, which is telnet. The syntax you are using is not correct for Win*.

      Microsoft Telnet> o mx.hotmail.com 25 Connecting To mx.hotmail.com...Could not open a connection to host on +port 25 : Connect failed Microsoft Telnet>

      The connection failed due to my environment setup, I expected that, but the important point is that it failed on the correct port...