Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting around ISP sendmail (port 25) block (Version 2)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
skill
n00b
n00b


Joined: 15 Apr 2004
Posts: 9

PostPosted: Thu Apr 15, 2004 8:29 pm    Post subject: Getting around ISP sendmail (port 25) block (Version 2) Reply with quote

Getting around ISP sendmail (port 25) block (Version 2)

First of all, everyone who did read this about how to get around isp block on this[1] link found out that the solution to get mail was to add a rule to iptables telling it to redirect incomming connections at for example, port 9999 to port 25 internally on the server.

But as everyone knows, this is only the first problem, what I belive is more important is how to get traffic from another computer, which has an open port 25, to route the mails to my computer at port 9999. Whether this is done by using SSH-tunnel or some other great tunnel-software is offcourse intresting but im looking for the perfect solution, which would be the same as done above but with what i belive is the greatest firewall tool ever, iptables.

CAN YOU DO IT?

[1] https://forums.gentoo.org/viewtopic.php?t=57796
Back to top
View user's profile Send private message
cudeso
n00b
n00b


Joined: 10 Dec 2003
Posts: 36
Location: Brugge

PostPosted: Thu Apr 15, 2004 8:42 pm    Post subject: Re: Getting around ISP sendmail (port 25) block (Version 2) Reply with quote

skill wrote:

But as everyone knows, this is only the first problem, what I belive is more important is how to get traffic from another computer, which has an open port 25, to route the mails to my computer at port 9999. Whether this is done by using SSH-tunnel or some other great tunnel-software is offcourse intresting but im looking for the perfect solution, which would be the same as done above but with what i belive is the greatest firewall tool ever, iptables.


I'm not sure that I fully understand your question but you're on a dead end if it comes down to informing "outside" mailservers that your mailserver is listening on port 9999. Your mx-records do not contain a "port", only a host-name.

The solution to this is subscribing to an e-mail-forwarding service that 'accepts' all the mails destined for your domain and forwards them to your mailserver on your specified tcp-port.

I'm using DNSPlus from EasyDNS http://www.easydns.com and i'm very happy with it.
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Thu Apr 15, 2004 8:49 pm    Post subject: Reply with quote

Possible? Sure. Probable? No. Feasible? No. Will it work well? Not a chance.

You'd have to configure (err, get the administrators of the smtp server that's sending you mail -- one of a billion on the internet) the server that's sending you the e-mail to use port 9999. You think AOL is going to configure their servers to do that for you and break an internet standard?

Port redirection would work but no way you're gonna get all the servers on the internet to recognize your special case port at 9999.

If your inbound port 25 traffic is blocked, you're screwed. No mail server for you.
_________________
http://get.a.clue.de
Back to top
View user's profile Send private message
kpack
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2004
Posts: 137

PostPosted: Thu Apr 15, 2004 8:57 pm    Post subject: Reply with quote

Are you sure your ISP blocks inbound traffic on port 25? My last ISP blocked outbound traffic on port 25 to stop customers from spamming. They didn't block inbound port 25 connections, so it didn't stop me from operating my own mail server.

The only hitch was that my mail server had to forward outgoing mail to the ISP's mail server. I use PostFix, so I did that with the relayhost parameter:

Code:
relayhost=smtp.foo.bar


The MX record for my domain pointed to my internal mail server and incoming mail came straight through.
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Fri Apr 16, 2004 9:51 am    Post subject: Reply with quote

Even if they block your incoming 25 you could get a service that redirects your mail for you, I think www.zoneedit.com does it. For free too.
Back to top
View user's profile Send private message
MadOtis
Apprentice
Apprentice


Joined: 14 Dec 2002
Posts: 163
Location: Georgia

PostPosted: Fri Apr 16, 2004 11:19 am    Post subject: Reply with quote

I use DynDNS.com to handle my redirects. What they do is create what they call a mailhop, or webhop. These are real-world addresses that actually point to their servers. They in turn redirect or forward the request to whatever url you specify when you set up the hop. So, I can create a URL like so: www.fredco.com, which would be publicly available to the whole internet, and where it would possibly end up on my machines would be sproing.fredco.com:8888. The same concept works with their mailhop service, but it's implemented a little differently because you're not dealing with a browser, and thus, does not handle redirects well.

HTH,
Randy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum