Link to home
Start Free TrialLog in
Avatar of fmichail
fmichailFlag for Canada

asked on

cannot telnet on port 25

I tried to issue telnet command against many hosts (smtp.bellnet.ca,mail.suredatasolutions.ca....etc) it was never able to connect.

Telnet smtp.bellnet.ca 25

I am using windows 10

I contacted my ISP (Rogers) asking if the port is locked, They answered it is NOT

I turned off the firewall
I created an outgoing rule to open the port 25 and tried again... it never connected.

Any help is appreciated. Thanks
Avatar of becraig
becraig
Flag of United States of America image

Sounds like you are trying to connect to another companys mail server on telenet, why  ?

Try port 587

FYI:
 Common SMTP ports:

    SMTP - port 25 or 2525 or 587
    Secure SMTP (SSL / TLS) - port 465 or 25 or 587, 2526 (Elastic Email)

Automate bounce handling (Premium users):

    POP3 - port 110
    IMAP - port 143
    IMAP SSL (IMAPS) - port 993
Avatar of fmichail

ASKER

Hi becraig
It is all about connecting to my domain mail server
The problem started when I was developing a function in my application to send an email using vb.net from my own site (domain) (suredatasolutions.ca). The code could not connect to the smtp server (mail.suredatasolutions.ca) although I am providing correct credentials.
I contacted the host, and they said the code is working from ASP.Net (from the site) which is true, however it does not work from the local PC !!, They asked me to check the port (25), and that was when I tried all these trials about the port. I was advised to contact Rogers (my ISP) to ask if they are locking the port... Their answer was NO. My code is correct, and was reviewed by experts exchange and others... I am now stuck, so I want to resolve the problem outside of coding... It is mainly that I want to connect to any available host through that port to make sure it is working, then I will make my code work after making sure there is no problems using the port on my PC... By the way, I tried from another PC (windows 10) and I get the same problem. Thanks for the help
By the way Becraig, My host uses port 25 for their mail server mail.suredatasolutions.ca
Telnet uses port 23. Is that port open?
SOLUTION
Avatar of John
John
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you are on Rogers you cannot ( could not at least) use Bell email and vice versa
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Dave and beCraig
I used the utilityShieldsUp and it indicated the port 25 status=Stealth and a message beside it indicating There is NO EVIDENCE WHATSOEVER that a port (or even any computer) exists at this IP address!.

This is the same after I turned the windows firewall off.

becraig, what is the port query tool you are indicating?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That is why I suggested that Bell Support be contacted. They would be in a position to help (if they are willing to help).
My suggestion for what you're trying to do since you don't want real smtp traffic would be going the route of a virtual machine for testing like this.

That way you have whatever you need configured  on your private network and validate your scenarios.
becraig,
I could not understand your latest idea, I am developing an application, and have my testing domain host suredatasolutions.ca giving me email accounts on server mail.suredatasolutions.ca . I want from my PC using vb.net to send an email from my admin@suredatasolutions.ca to any email (e.g. hotmail)

To do that, I provide my code with the following:
1- smtp server mail.suredatasolutions.ca
2- Port (25 the host said to me they use it)
3- credentials

The email fails to send because it cannot contact the host server.

When I use the same code directly from the test site to send emails it works (I suppose that is because it is using the port 25 of the server where my code runs from not my PC). The question is what I can do?. OR at least is what I want a bad practice or there is an alternative way for sending emails from a windows application?

I will start trying to send the emails from my application through the Rogers smtp server (the port should be 465), and see what will happen. Is there another approach to use... There should not be a problem in sending email from a windows application -). I will keep you guys updated. Appreciate your help
There should not be a problem in sending email from a windows application
That is simply not true.  Once upon a time, email was 'easy'.  But because there has been so much spam over the years, most ISPs and web hosts do Not want you sending email from your applications like the spammers.  

In addition, every SMTP server gets to do it their own way.  Port 465 is for 'secure' email which means your application must support the secure email protocols which are not plain text connections.  Gmail is even worse now.  To use their SMTP servers your application must support OAuth 2.0 user authentication.

All of my desktop email clients and accounts use either port 587 or secure connections on port 465.
So I hear you asking... "Then how come there is so much spam still?"  The spammers have become much more professional.  They used to use IIS 5 with the SMTP server sending out spam on port 25.  But since that is blocked by so many ISPs, they have their own servers and even their own data centers.  They are also the people creating viruses that use people's email accounts to send out spam.
Dave,
My rogers (my ISP) smtp server uses port 465 secured, do you mean that if I change the configuration of my application in TEST to use Rogers setting rather than my domain host mail server, It should work?. I see a potential reasonable logic behind that, I will give it a try. Thanks Dave
Well, that's confusing.  You have to use the email / SMTP settings of the server that you are trying to send thru.  I have about 45 email accounts for different purposes and every different server uses different settings.
So if I am reading your post correctly you need to be able to connect to the smtp server on server mail.suredatasolutions.ca

I am assuming this is your email server hosted with bell ?

1. You simply need to get the correct details from the smtp hosting provider and if you are unable to connect from your test machine.
2. Talk to you ISP tech support and have them work on unblocking traffic from your address to the destination SMTP server.
3. Engage tech support at the smtp hosting end in the event your isp claims you should not have any issues connecting.
Have you tried from a connection other than your own? That you know is on another ISP? Another possibility is the email address you're attempting to use in the from field. What domain is that?
As added input, I did test with a Huawei Internet Stick and still did not succeed. The ISP for the stick is also Rogers so that may be the reason.
I really appreciate all your input, and feel grateful, As I mentioned my ISP is rogers (providing me with smtp.mail.yahoo.com port 465 secured) and my domain host is providing me with smtp (mail.suredatasolutions.ca port 25)
I tried both, and neither worked. I contacted my domain provider and they said The email is working fine from their server (using asp.net), and I contacted Rogers and they said they do not help with code, and I got poor support basically saying you are on your own after providing me with the server and login info.
However, I have 2 points from you guys to consider:
1. As Masnrock I will use another PC with different ISP  to send email from either the 2 smtp servers
2. I will follow the steps indicated by becraig (which I followed before) but I will use the terminology that he/she indicated "unblocking traffic from your address to the destination SMTP server" and try again... I am really grateful to you guys. Thanks, I will come back to you after the new year. Happy new year to all of you.
Dear experts
Happy new year, I just returned from vacation
I create a utility to send email from bellnet server, from accuwebhosting, and from Rogers. I ran the application on my PC (none of the emails were sent), I ran it from another PC, and it went fine for the first 2 (of course not rogers). This has only one meaning, the problem (in addition to rogers) is in my PC... I tried to turn off the firewall, but no luck... I am stuck
Try to disable or remove your AV... which one are you using?
Hi Masnrock

What is AV? is it audio video?, and how is this related to the email sending?
Here AV means AntiVirus
As John pointed out, in this context, I was referring to antivirus. Sometimes antivirus programs will do things that manifest in the oddest ways, such as preventing internet connectivity, downloads from completing, etc. Just want to cut that out as a factor.
Sorryyyy. Thanks John

I am using Norton, and I just made a new quick scan, and it says it removed 2 tracking cookies.. That is all
Have you tried disabling Norton?
It depends on the particular cookie whether it would prevent a port connection.
I did disable Norton, and no luck... As john indicated I will try to run the code again after the cookies were removed. If it does not work, I will perform full scan over the night and try again after Norton cleans any found issues. I really appreciate your help.
Author cannot do what he wants. Long thread. I have closed it as reasonably as possible.