|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Is Port 25 Blocked?
So you've managed to get a mail server running on your computer at home, and set up DNS information for your domain. You can telnet and ftp to your computer, and maybe HTTP works too... but not mail.
Chances are your ISP is blocking incoming connections on port 25 (the standard SMTP port). There are a few things to check first, though: A) First, try connecting to your SMTP server from the same computer. Try the localhost address first: "telnet 127.0.0.1 25" usually does the trick (replace "25" with a different port number if you're trying to set up SMTP service on an alternate port). If that works, your server is indeed up and running, and the next step is to try your assigned IP address (still from the same machine): "telnet your-IP-here 25". Note that if you're behind a broadband router, your IP address is assigned by the router itself and is not the same as the IP assigned to the router by your ISP. If this works then your server is listening on the correct ports and addresses. If not, the problem is somewhere in your configuration: consult the docs for your mail server to figure out what's wrong. B) The next step is to find a machine outside of your home network, and preferably outside of your ISP's network as well. Then try that telnet command again: "telnet your-external-IP-address 25". Note that in this case the IP address is the one assigned to you by your ISP and not the "internal" address you might have if you have a home network behind a broadband router. C) If you can connect to your mail server from outside your ISP's network, then you're all set: you've configured things correctly and your ISP doesn't block port 25 (at least for incoming connections). If it didn't work, there is still one thing to check: if your server is behind a broadband router, make sure that connections on the appropriate port are being forwarded to the correct internal computer. Consult your router documentation for assistance. Result:: If you're verified that your SMTP server is reachable from within your own network but not from outside, then chances are good that your ISP has deliberately blocked connections on port 25. So how do I work around a port block? If your ISP blocks port 25 you can always attempt to convince them that they're being antisocial and that they should unblock that port, at least for you. This rarely works and usually incurs the wrath of the ISP who didn’t know you were running an Email Server on your connection. The other alternative is to run your SMTP server on a different port. This is fairly simple to do with most SMTP software; cons ult the documentation for yours to figure out exactly how it's done. Commonly used alternate ports are 2525 and 25025, but you can use any valid (and unused) port number. Once you've configured your server to listen on a different port, run through the tests above again, using your new port number instead of 25. If all goes well, you should be able to verify that not only is your server running on the new port, it's reachable from outside your ISP's network, too. That's the easy part. Unfortunately, there's no way to tell the rest of the world what port your SMTP server is listening on. The DNS system allows you to list the servers that will accept mail for your domain (using MX records), but those servers are then assumed to be listening on port 25. Attempting to add port information to your MX records (by using "my.domain.com:2525", for example) will only cause strange error messages to be returned to people who try to send you mail. The only way to receive mail on a non-standard port is to arrange for someone else's servers to receive it for you first on Port 25 Let me repeat this… The only way to receive mail on a non-standard port is to arrange for someone else's servers to receive it for you first on Port 25 then that service will forward your mail to you on the non-standard port you've chosen. **You list only th forwarder servers as MX hosts for your domain. Unfortunately, most services that offer Blocked Port 25 workarounds will charge for this service. That is just the way it is. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Mail Server Help > Is Port 25 Blocked? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|