From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5adeed777053da51,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-08 19:38:32 PST Path: bga.com!news.sprintlink.net!uunet!spool.mu.edu!howland.reston.ans.net!gatech!taco.cc.ncsu.edu!emorgan.lib.ncsu.edu!eric_morgan From: Eric Lease Morgan Newsgroups: comp.unix.osf.osf1 Subject: "25" versus "SMTP" Date: 8 Aug 1994 18:25:26 GMT Organization: NCSU Libraries Distribution: world Message-ID: <325tam$2ot@taco.cc.ncsu.edu> NNTP-Posting-Host: emorgan.lib.ncsu.edu X-UserAgent: Nuntius v1.1.1d12 X-XXMessage-ID: X-XXDate: Mon, 8 Aug 94 14:31:17 GMT "25" versus "SMTP" When using perl, why do my connections to port "25" fail, but connections to port "SMTP" succeed? I wrote a perl/CGI script called ListWebber (http://www.lib.ncsu.edu/staff/morgan/about-listwebber2.html). Its purpose to to create and send SMTP messages on the behalf of WWW users. I began writting this script under Ultrix 4.2a. It worked just fine. I then moved it to my new Alpha and I kept getting "Connection refused" when I tried to open an SMTP connection to my own machine. Upon examination of the perl library (sock.pl) used to make my connections, I noticed I could specify the port by number (25) or by name (SMTP). When I changed my script to use the name instead of the number, the script magically worked. Why? Eric Lease Morgan NCSU Libraries