Route outing SMTP traffing through a non-standard port to anotherqmail server

This is a discussion on Route outing SMTP traffing through a non-standard port to anotherqmail server within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; I am sure this has come up before, but I couldn't find anything with a cursory search of Google. ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-02-2004
Tim Mavers
 
Posts: n/a
Default Route outing SMTP traffing through a non-standard port to anotherqmail server

I am sure this has come up before, but I couldn't find anything with a
cursory search of Google. Here's my problem:

I recently moved to Chicago where RCN is available (cable modem).

I use my own mail server (qmail) located within my private LAN (behind
NAT) on RCN.

I found out that RCN doesn't seem to allow outgoing traffic on port 25;
probably because of spammers and I can somewhat understand this. I do
have an option of using the RCN mail servers (which aren't the greatest
or most reliable as is with most cable-company mail-servers).

I do have a machine running qmail sitting at a friend's ISP in their
colo. It's running linux and the latest qmail. Is there a way I can
route mail from my mail client (currently Mozilla Thunderbird) to this
external qmail server on a different port? I am sure there is, but I am
not sure what I would need to configure on the qmail side?

The machine sitting at the colo is running a basic iptables firewall
that allows port 25 and a few other services. Is this where some "port
translation" would be done?

Thanks for any help or pointers to help,

Tim
Reply With Quote
  #2 (permalink)  
Old 03-03-2004
Peter Kleiner
 
Posts: n/a
Default Re: Route outing SMTP traffing through a non-standard port toanotherqmail server

Tim Mavers wrote:
<snip>
> I found out that RCN doesn't seem to allow outgoing traffic on port 25;

Very common these days.

> probably because of spammers and I can somewhat understand this. I do
> have an option of using the RCN mail servers (which aren't the greatest
> or most reliable as is with most cable-company mail-servers).

OK.

> I do have a machine running qmail sitting at a friend's ISP in their
> colo. It's running linux and the latest qmail. Is there a way I can
> route mail from my mail client (currently Mozilla Thunderbird) to this
> external qmail server on a different port? I am sure there is, but I am
> not sure what I would need to configure on the qmail side?

This part is trivial. I put directions below, but man qmail-remote for
more info.

> The machine sitting at the colo is running a basic iptables firewall
> that allows port 25 and a few other services. Is this where some "port
> translation" would be done?

This is the tricky part.

One way to do this would be to create a second instance of qmail on your
friend's box. To do this, simply edit the conf-qmail file in the qmail
source directory and change /var/qmail to something like /var/qmail2.
Then configure tcpserver to run the qmail-smtpd script on s different
port, like 2500. You'd have to put your IP address in his tcp.smtp file
to allow relaying. Make sure you put something in the control/rcpthosts
file, so you won't be an open relay.

Then, on your box, simply create a control/smtproutes file, and
populate it with the following:

:[your.friend's.ip.address]:2500

Don't be tempted to just run a second tcpserver on a different port and
use the same qmail queue - you run the risk of name collisions.

This may seem like a lot of work, and someone else may have a better
suggestion. If not, you can try it out. Good luck.
Reply With Quote
  #3 (permalink)  
Old 03-03-2004
mfml03
 
Posts: n/a
Default Re: Route outing SMTP traffing through a non-standard port to anotherqmail server

Tim Mavers wrote:
> I am sure this has come up before, but I couldn't find anything with a
> cursory search of Google. Here's my problem:
>
> I recently moved to Chicago where RCN is available (cable modem).
>
> I use my own mail server (qmail) located within my private LAN (behind
> NAT) on RCN.
>
> I found out that RCN doesn't seem to allow outgoing traffic on port 25;
> probably because of spammers and I can somewhat understand this. I do
> have an option of using the RCN mail servers (which aren't the greatest
> or most reliable as is with most cable-company mail-servers).
>
> I do have a machine running qmail sitting at a friend's ISP in their
> colo. It's running linux and the latest qmail. Is there a way I can
> route mail from my mail client (currently Mozilla Thunderbird) to this
> external qmail server on a different port? I am sure there is, but I am
> not sure what I would need to configure on the qmail side?


On your qmail box:
/var/qmail/control/smtproutes
:your.mates.box:2500

This will make qmail relay to your friends machine on port 2500. Get
mozilla to deliver to port 25 on your qmail server.

> The machine sitting at the colo is running a basic iptables firewall
> that allows port 25 and a few other services. Is this where some "port
> translation" would be done?


Yeah, Just redirect port 2500 to the target 25. The exact runes escape
me for now (I'm more familiar with Ipchains).

> Thanks for any help or pointers to help,
>
> Tim



--

mfml03SPAMSUX@dsl.pipex.com

Remove SPAMSUX before replying..
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:36 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0