Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2006 20:18:33 +0200 (CEST)
From:      Christian Kratzer <ck-lists@cksoft.de>
To:        Marcin Jessa <lists@yazzy.org>
Cc:        freebsd-isp@freebsd.org, fooler <fooler@skyinet.net>, ernie@puremail.eis.net.au
Subject:   Re: Can sendmail listen for SMTP on two prots at once?
Message-ID:  <20060510201432.L13351@vesihiisi.cksoft.de>
In-Reply-To: <20060510164027.c552315b.lists@yazzy.org>
References:  <200605100317.k4A3Hawi019632@puremail.eis.net.au> <015201c67408$30388a50$42764eca@ilo.skyinet.net> <20060510164027.c552315b.lists@yazzy.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Wed, 10 May 2006, Marcin Jessa wrote:
> 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.

which will most likely create an open relay because the sendmail
will see the connection as coming from localhost. This will also
break logging as netcat will hide the real client ip from the 
sendmail  logs.

All in all very bad advice.

Greetings
Christian

-- 
Christian Kratzer                       ck@cksoft.de
CK Software GmbH                        http://www.cksoft.de/
Phone: +49 7452 889 135                 Fax: +49 7452 889 136



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060510201432.L13351>