The tree last posts from CharlieBrady looks perfectly right and correct for me, when it comes to arguments and conclusions.
On the other hand I think the discussion abouve leaves some unclear arguments if the port 25 is really closed or not.
Her is a link to a external port scanner that can tell something abouth how things (open ports) looks from the outside.
I hope it will work:
https://www.grc.com/x/ne.dll?bh0bkyd2If there is a router that has a external ip, port 25 and/or port 587 will have to be forwarded to port 25 at the server.
An external scanning will show port 25 or port 587 as open if they are forwarded to port 25 at the server. (And if there is no filtering from the isp that will bloch the connection.)
I think it is correct that the only practical way tu run mail serive on a "unstandard port trough the isp connection" is to use an external mail server that resends from standard port 25 to the prefered unstandard port (587). (Because all other mail server that will try to send mail to you will send on port 25, so it will not help much to listen to a port 587 that no one will use, unless you retransmitt to this port youself.)
The good thing about having a router in front of the sme server is that you can use a unstandard port without any changes or configuration of the sme server at all. (But there will be neccessarry to use an adidtional external mail server to resend to the prefered port.)
First of all one will have to know for sure if one has en external ip at the server or not. From shell type "ifconfig" to see the server ip. Then visit this web page:
http://www.myip.dk If the two ip's are the same, yuu will have an external ip to your server. If they are different there is a router, and forwarding will be required.
If there is a router, a good next step will be to first try to forward port 25 (to 25) and then port 587 (to 25) to see if any of those ports is "visible" via an external port scanning.
The last arguments is actually only valid for receiving mail and not sending, but it is a start. (Normally the port 25 direction out will be open for most isp's)
To find out if port 25 out is open one can use an internal port scanner and scan an known mail server direction out, or just try to run the mail server to see if it can send in direction out. If it should be blocked in traffic direction out, then it will be required to use an external mail server to resend from the unstandard open port to port 25, so mail can reach other mail servers on the standard port.
By the way, if it should be required to use an alternative port in traffic direction out, how can you reconfigure a standard router or the sme server to do that ? This last answer I do not know. (But hopefully port 25 direction out will apear to be open.) (Unless mail adresses can be like this: acount@domain.com:587 I can not remeber if this will work or not.)