Check out tcpserver. Here's a run file that should be a start
for 'ya:
#!/bin/sh
# Using tcpserver to listen to the internet
exec env - PATH="/var/qmail/bin:$PATH" tcpserver -v -u 1003 -g 1002 192.168.1.1 smtp
/var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd 3
-sc
On Sat, Mar 31, 2001 at 09:05:16AM +1000, Leni Mayo wrote:
> Delivered-To: [EMAIL PROTECTED]
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> Precedence: bulk
> Delivered-To: mailing list [EMAIL PROTECTED]
> Date: Sat, 31 Mar 2001 09:05:16 +1000
> From: Leni Mayo <[EMAIL PROTECTED]>
> X-Mailer: Mozilla 4.74 [en] (Windows NT 5.0; U)
> X-Accept-Language: en
> To: [EMAIL PROTECTED]
> Subject: binding qmail to a specific ip address
>
> I'm qmail running on a box with 2 network interface cards and want
> to bind qmail to a specific IP address in order to simplify
> firewall rules.
>
> I'm thinking along the lines of the apache "BindAddress" keyword,
> so qmail would only use a specific ip address when listening and
> as a source address for outbound connections.
>
> If anyone has a hack for qmail 1.03 along these lines, I'd love to
> see a copy of the source.
>
> Leni.
--
Sean Chittenden
PGP signature