From owner-freebsd-isp@FreeBSD.ORG Wed May 10 16:41:22 2006 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D68E516A41B for ; Wed, 10 May 2006 16:41:22 +0000 (UTC) (envelope-from lists@yazzy.org) Received: from mx1.yazzy.org (mx1.yazzy.org [84.247.145.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03DAF43D45 for ; Wed, 10 May 2006 16:41:21 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from [81.175.12.222] (helo=lapdance.yazzy.net) by mx1.yazzy.org with esmtps (TLSv1:AES256-SHA:256) (YazzY.org) id 1FdrkA-0000XN-Uw; Wed, 10 May 2006 18:40:59 +0200 Date: Wed, 10 May 2006 16:40:27 +0000 From: Marcin Jessa To: "fooler" Message-Id: <20060510164027.c552315b.lists@yazzy.org> In-Reply-To: <015201c67408$30388a50$42764eca@ilo.skyinet.net> References: <200605100317.k4A3Hawi019632@puremail.eis.net.au> <015201c67408$30388a50$42764eca@ilo.skyinet.net> Organization: YazzY.org X-Mailer: Sylpheed version 2.2.3 (GTK+ 2.8.16; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) Cc: freebsd-isp@freebsd.org, ernie@puremail.eis.net.au Subject: Re: Can sendmail listen for SMTP on two prots at once? X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2006 16:41:23 -0000 bOn Wed, 10 May 2006 16:03:13 +0800 "fooler" wrote: > ----- Original Message ----- > From: "User Ernie" > To: > Sent: Wednesday, May 10, 2006 11:17 AM > Subject: Can sendmail listen for SMTP on two prots at once? > > > >I am trying to work out a roaming solution for clients with notebooks that > > don't like webmail and need to send outgoing emails via one of our SMTP > > servers. At the moment I have a POP befor SMTP solution running which > > works > > fine except more and more the clients are finding that outbound port 25 in > > the hotels they stay at is blocked. I was trying to come up with a way to > > get sendmail to listen on two ports at once the normal port 25 and a port > > number above 1024 for the roaming users. > > > > Anyone have an idea how to achive that or another roaming suggestion to > > bypass the hotel blocks? > > you have lots of options here... > > 1. run two sendmails.. one binded to port 25 and the other one binded to > above port 1024 (but i prefer to use port 80 because most firewalls allowed > port 80 to pass thru) > 2. run one sendmail that binded to port 25 and make a firewall rule to > redirect or forward port 80 to port 25 > 3. using dial-up vpn > No need to run yet another instance of SMTP. Just use a little netcat trick for that. Install /usr/ports/net/netcat or use the one from base, put something like following line to /etc/inetd.conf and start inetd: x11 stream tcp nowait root /usr/local/bin/nc nc -n -w 3 127.0.0.1 25 This will accept connections to x11's port - 6000 and forward them to port 25 on localhost. Cheers, Marcin.