Unable to telnet out on port 25 on windows server 2008

Posted by NickGPS on Server Fault See other posts from Server Fault or by NickGPS
Published on 2010-06-02T21:11:07Z Indexed on 2010/06/02 21:14 UTC
Read the original article Hit count: 245

Hi All,

I just setup a Windows 2008 R2 server and am trying to get a basic mail server up and running so that I can send emails from my applications.

I setup a virtual SMTP server in IIS6 and tried doing a local telnet to port 25, which seemed to work fine. There were no errors during this stage and I can see the mail message appear in the Queue folder.

The problem is that mail never leaves the Queue folder. I then tried to telnet to a remote mail server on port 25 but couldn't connect:-

telnet 209.85.227.27 25

Could not open connection to the host, on port 25: Connection failed)

I checked my firewall and there is a default setting to allow all outgoing TCP traffic with no restriction. I even setup a specific rule for outgoing port 25 traffic but to no avail.

I then ran a SmtpDiag.exe command

 .\SmtpDiag.exe [email protected] [email protected]

and received the following output

Searching for Exchange external DNS settings.
Computer name is WIN-SERVERNAME.
Failed to connect to the domain controller. Error: 8007054b

Checking SOA for gmail.com.
Checking external DNS servers.
Checking internal DNS servers.
SOA serial number match: Passed.

Checking local domain records.
Checking MX records using TCP: gmail.com.
Checking MX records using UDP: gmail.com.
Both TCP and UDP queries succeeded. Local DNS test passed.

Checking remote domain records.
Checking MX records using TCP: gmail.com.
Checking MX records using UDP: gmail.com.
Both TCP and UDP queries succeeded. Remote DNS test passed.

Checking MX servers listed for [email protected].
Connecting to gmail-smtp-in.l.google.com [209.85.227.27] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to gmail-smtp-in.l.google.com.

Is there any other diagnostics I can do to figure out if it's my firewall or something else? I have removed antivirus to make sure that it wasn't causing the problem. Any ideas would be much appreciated.

© Server Fault or respective owner

Related posts about windows-server-2008-r2

Related posts about telnet

  • Telnet does not give a response

    as seen on Server Fault - Search for 'Server Fault'
    Some wireless access points are acting a little weird, so I want to reboot them every couple of hours. Luckily there exists a security flaw which lets me login as root through telnet when using port 1111 (without username and password). Now I want to use that to let my QNAP NAS execute the reboot… >>> More

  • Ougoing telnet: Unable to connect to remote host: Connection refused

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I am trying to telnet from Ubuntu server (running Maverick) on ec2 to another machine I have set up not on ec2 - we'll call it "server-x". The two machines are connected via vpn. I can ping from the ec2 machine to server-x no problem. On another machine also on the vpn but also not on ec2 I can… >>> More

  • Connect to remote server

    as seen on Stack Overflow - Search for 'Stack Overflow'
    Hi All, I'm new to perl. And I have used following code from one forum to connect to one of the server. but throwing error messages [root@Cus]# cat tt.pl #!/usr/bin/perl use Net::Telnet; $telnet = new Net::Telnet ( Timeout=>2, Errmode=>'die'); $telnet->open('10.0.0.28'); $telnet->waitfor('/login:/'); $telnet->print('administrator'); $telnet->waitfor('/Password:/'); $telnet->print('test'); $telnet->waitfor('/switch8-12>/'); $telnet->print('whoamI'); $output=$telnet->waitfor('/switch8-12>/'); print… >>> More

  • Why do I get 'use: command not found' when I run my Perl script?

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I'm new to Perl. And I have used following code from one forum to connect to one of the server. but throwing error messages [root@Cus]# cat tt.pl #!/usr/bin/perl use Net::Telnet; $telnet = new Net::Telnet ( Timeout=>2, Errmode=>'die'); $telnet->open('10.0.0.28'); $telnet->waitfor('/login:/'); $telnet->print('administrator'); $telnet->waitfor('/Password:/'); $telnet->print('test'); $telnet->waitfor('/switch8-12>/'); $telnet->print('whoamI'); $output=$telnet->waitfor('/switch8-12>/'); print… >>> More

  • Code to connect to remote server using perl

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I'm written small code to connect to remote server using perl but observing error messages #!/usr/bin/perl -w use Net::Telnet; $telnet = new Net::Telnet ( Timeout=>60, Errmode=>'die'); $telnet->open('192.168.50.40'); $telnet->waitfor('/login:/'); $telnet->print('queen'); $telnet->waitfor('/password:/'); $telnet->print('kinG… >>> More