Line 1: |
Line 1: |
− |
| |
| ===ISP is blocking port 25=== | | ===ISP is blocking port 25=== |
| First I signed up for a free DNS hosting account through Mydomain.com | | First I signed up for a free DNS hosting account through Mydomain.com |
Line 17: |
Line 16: |
| It worked perfectly. Here is my litte map: | | It worked perfectly. Here is my litte map: |
| | | |
− | INCOMING MAIL.
| + | ====Incoming Mail==== |
| | | |
| Yahoo mail --> MX record check --> Mail1.no-ip.com (port25) --> My SME | | Yahoo mail --> MX record check --> Mail1.no-ip.com (port25) --> My SME |
| server (port 2525). | | server (port 2525). |
| | | |
− | OUTGOING MAIL.
| + | ====Outgoing Mail==== |
| | | |
− | MY SME server ---> MY ISP's SMTP server ---> World
| + | My SME server ---> My ISP's SMTP server ---> World |
| | | |
| Works perfectly. | | Works perfectly. |
| + | {{Note box|By using this approach your SME Server thinks that anything coming in from the outside world via port 2525 is in actual fact coming from within your LAN on port 25, so there is much less security applied.}} |
| + | |
| + | ====Alternative iptables Approach==== |
| + | |
| + | I've added the following lines to /etc/rc.d/rc.local |
| + | |
| + | iptables -A PREROUTING -t nat -p tcp --dport 9993 -j REDIRECT --to-port 993 |
| + | iptables -A PREROUTING -t nat -p tcp --dport 4465 -j REDIRECT --to-port 465 |
| + | |
| + | Cut-paste example for port 2525 redirection: |
| + | |
| + | iptables -A PREROUTING -t nat -p tcp --dport 2525 -j REDIRECT --to-port 25 |
| + | |
| + | ====Alternative iptables Approach==== |
| | | |
| ===ISP is blocking port 80=== | | ===ISP is blocking port 80=== |
| Same deal except different ports | | Same deal except different ports |
| + | |
| + | ---- |
| + | [[Category:Howto]] |