Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if my ISP blocks port 25?

Tags:

smtp

How should I check if my ISP blocks port 25?

like image 360
vaske Avatar asked Nov 30 '08 14:11

vaske


People also ask

How do I check my port 25 status?

To test if port 25 is open or closed, click the "Start" button and type "ipconfig." Type "telnet mail.domain.com 25," substituting your Internet Service provider's domain name for "domain" and hit the Enter key. If port 25 is closed, you will see a connection error.


2 Answers

cmd> telnet <some well known email provider IP> 25

to determine which exactly host (subdomain) is listening port 25:

nslookup -q=MX <top-level domain>

For example:

cmd> nslookup -q=MX gmail.com

gmail.com       MX preference = 50, mail exchanger = gsmtp147.google.com
gmail.com       MX preference = 50, mail exchanger = gsmtp183.google.com
gmail.com       MX preference = 5, mail exchanger = gmail-smtp-in.l.google.com
gmail.com       MX preference = 10, mail exchanger = alt1.gmail-smtp-in.l.google.com
gmail.com       MX preference = 10, mail exchanger = alt2.gmail-smtp-in.l.google.com

gsmtp147.google.com     internet address = 209.85.147.27
gsmtp183.google.com     internet address = 64.233.183.27
gmail-smtp-in.l.google.com      internet address = 64.233.183.114

cmd> telnet gsmtp147.google.com 25

220 mx.google.com ESMTP l27si12759488waf.25

On Linux, you can 'dig', I guess.

like image 72
abatishchev Avatar answered Oct 27 '22 19:10

abatishchev


http://www.canyouseeme.org/

like image 25
Bruno Avatar answered Oct 27 '22 19:10

Bruno