qmail and virtual IPs

2001-07-30 Thread Martin Hasenbein


Hi,

I have installed a few virtual ip-adresses yesterday
to have my webservers and my mailserver on different IPs.
Like this:

fxp0: flags=8843 mtu 1500
inet 192.168.0.3 netmask 0xfff0 broadcast 192.168.0.15
inet 192.168.0.5 netmask 0x broadcast 192.168.0.5
inet 192.168.0.6 netmask 0x broadcast 192.168.0.6
inet 192.168.0.7 netmask 0x broadcast 192.168.0.7
inet 192.168.0.8 netmask 0x broadcast 192.168.0.8
inet 192.168.0.9 netmask 0x broadcast 192.168.0.9
inet 192.168.0.10 netmask 0x broadcast 192.168.0.10
inet 192.168.0.11 netmask 0x broadcast 192.168.0.11
inet 192.168.0.12 netmask 0x broadcast 192.168.0.12
inet 192.168.0.13 netmask 0x broadcast 192.168.0.13

My server has the 192.168.0.3 and the mailserver should run on 192.168.0.5.
But when I'm now sending eMails its acting from the 192.168.0.3, not
from the virtual ip-address. How can I change that?

Thanks

/martin
---


   Martin Hasenbein  Phone (Fax): (+49) 89 1216376-1 (3)
 \|/   Weiglstr.9mailto:[EMAIL PROTECTED]
 @ @   D-80636 München   http://martin.hasenbein.com
-oOO-(_)-OOo

On the 8th day, god created Unix ;-)



Re: qmail and virtual IPs

2001-07-31 Thread Adrian Ho

On Tue, Jul 31, 2001 at 09:03:42AM +0200, Martin Hasenbein wrote:
> My server has the 192.168.0.3 and the mailserver should run on 192.168.0.5.
> But when I'm now sending eMails its acting from the 192.168.0.3, not
> from the virtual ip-address. How can I change that?

You'll need to patch qmail-remote for this.  Go to 
and search for either "fixed IP address" or "bind the local address".  I
personally prefer the latter, as the mechanism used (bindroutes) is more
flexible, but the former is easier to configure if you only ever have a
single IP address to bind to.

-- 
Adrian HoTinker, Drifter, Fixer, Bum   [EMAIL PROTECTED]
ListArchive: 
Useful URLs:  
  



Re: qmail and virtual IPs

2001-07-31 Thread Henning Brauer

On Tue, Jul 31, 2001 at 09:03:42AM +0200, Martin Hasenbein wrote:
> My server has the 192.168.0.3 and the mailserver should run on 192.168.0.5.
> But when I'm now sending eMails its acting from the 192.168.0.3, not
> from the virtual ip-address. How can I change that?

You cannot. qmail-remote doesn't use a specified IP address for sending
mails, that's up to the system. If memory serves me right your colleague
maex has a patch for qmail-1.01 to use a specified IP; if not there may be a
link on qmail.org. Otherwise it should be easy changeable in qmail-remote.c

Greetings

Henning

-- 
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany   *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)