[prev in list] [next in list] [prev in thread] [next in thread]
List: qmail
Subject: Re: two SMTPD's
From: Chris Wilkes <cwilkes-qmail () ladro ! com>
Date: 2002-06-27 18:02:17
[Download RAW message or body]
On Thu, Jun 27, 2002 at 06:17:39PM +0100, Erwin Hoffmann wrote:
> >> Is there a way to bind the tcpserver on multiple addresses where 1 is
> >> dynamic?
>
> Correct. Here is an attempt for a supervise run script:
>
> #!/bin/sh
> QMAILDUID=`id -u qmaild`
> QMAILDGID=`id -g qmaild`
> HOSTNAME=`hostname`
> HOSTIP=`ifconfig eth0 | grep blabla | awk ....`
> exec tcpserver -vR -l $HOSTNAME \
> -u $QMAILDUID -g $QMAILDGID $HOSTIP smtp /var/qmail/bin/qmail-smtpd
> 2>&1
Keep in mind you'll have to HUP this every time your IP changes.
What's the poster's goal of having it bind to just a single dynamic IP
address instead of all? Are you using DHCP on the mail server?
You could also put the mail server behind a NAT firewall and have it
handle the dynamic address part and have qmail just bind to the static
private IP address.
Chris
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic