Date: Fri, 30 Aug 2002 11:58:52 +0100
From: Philip Reynolds phil@redbrick.dcu.ie
To: ilug@linux.ie
Subject: Re: [ILUG] using a proxy to hack a mail fix
User-Agent: Mutt/1.2.5i

Justin MacCarthy's [macarthy@iol.ie] 17 lines of wisdom included:

> Hi all,
> I have an app. (closed source) on a linux box that sends mail using one of
> our mail servers. However our mail server is running on a non standard port,
> 2525, and the app. refuses to play ball. I been informed by the vendor that
> this is a bug and will be fixed in an upcoming update. For the time being I
> need to hack a fix. My current idea is to use some sort of proxy on the box
> that redirects traffic sent to localhost port 25 -> mymailserver port 2525.
> Does anyone no of a simple app. / method of doing this?


You should be able to do this with ipfwadm/ipchains/iptables

ipmasqadm portfw -l

should give you a listing.

Forwarding the ports:
ipmasqadm portfw -a -P tcp -L ip.address 25 -R ip.address 2525

Alternatively, if you're not comfortable with your firewall of
choice, aproxy should do what you want.

http://www.dilledabb.de/projects/aproxy.html

--
Philip Reynolds
RFC Networks tel: 01 8832063
www.rfc-networks.ie fax: 01 8832041

Date: Fri, 30 Aug 2002 11:56:04 +0100
From: Padraig Brady padraig.brady@corvil.com
Organization: Corvil Networks
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020827
To: macarthy@iol.ie
CC: "Ilug@Linux.Ie" ilug@linux.ie
Subject: Re: [ILUG] using a proxy to hack a mail fix

Justin MacCarthy wrote:

> I have an app. (closed source) on a linux box that sends mail using on e of
> our mail servers. However our mail server is running on a non standard port,
> 2525, and the app. refuses to play ball. I been informed by the vendor that
> this is a bug and will be fixed in an upcoming update. For the time being I
> need to hack a fix. My current idea is to use some sort of proxy on the box
> that redirects traffic sent to localhost port 25 -> mymailserver port 2525.
> Does anyone no of a simple app. / method of doing this?
>
> Thanks Justin
>
>
>
firewall rule? (-J redirect)

applications to do same:
portfwd
nportredird
yars
...

P=E1draig

Subject: Re: [ILUG] using a proxy to hack a mail fix
From: Mark Kilmartin mrk@renre-europe.com
To: macarthy@iol.ie
Cc: "Ilug@Linux.Ie" ilug@linux.ie
X-Mailer: Ximian Evolution 1.0.7
Date: 30 Aug 2002 11:55:50 +0100

How about ssh -L 25:mailserver:2525

Then simply set the app up to send mail to port 25 on the localhost.

You may want some way to make sure the ssh session has not exited.

MArk


Date: Fri, 30 Aug 2002 11:51:47 +0100
From: Waider waider@waider.ie
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020827
To: macarthy@iol.ie
CC: "Ilug@Linux.Ie" ilug@linux.ie
Subject: Re: [ILUG] using a proxy to hack a mail fix

xinetd does this out of the box. Just read the fine manual page
(xinetd.conf) - I'd give you the syntax but I can't recall what I did to
set it up.

Cheers,
Waider.