From owner-freebsd-ipfw@FreeBSD.ORG Mon Aug 18 01:31:27 2003 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DC7A37B401 for ; Mon, 18 Aug 2003 01:31:27 -0700 (PDT) Received: from genua.rfc-networks.ie (genua.rfc-networks.ie [62.77.182.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BE2543F85 for ; Mon, 18 Aug 2003 01:31:26 -0700 (PDT) (envelope-from philip.reynolds@rfc-networks.ie) Received: from tear.domain (unknown [10.0.1.254]) by genua.rfc-networks.ie (Postfix) with ESMTP id B4D9C54875 for ; Mon, 18 Aug 2003 09:31:23 +0100 (IST) Received: by tear.domain (Postfix, from userid 1000) id 6976221155; Mon, 18 Aug 2003 08:31:23 +0000 (GMT) Date: Mon, 18 Aug 2003 08:31:23 +0000 From: Philip Reynolds To: freebsd-ipfw@freebsd.org Message-ID: <20030818083123.GJ4269@rfc-networks.ie> References: <3F3F9B0C.4030002@trio.plala.or.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F3F9B0C.4030002@trio.plala.or.jp> X-Operating-System: FreeBSD 4.7-STABLE X-URL: http://www.rfc-networks.ie Subject: Re: smtp forwarding X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: philip.reynolds@rfc-networks.ie List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 08:31:27 -0000 Eitarou Kamo 38 lines of wisdom included: > Now then, I'm also using ipfw2. I would like to forward the smtp packet > to the > current(alive) mail server with priority. I mean that I'd like to > forward the smtp > packet to the secondary server when the primary server is down or panic. > Is it possible? I'm wondering if ipfw can know the status of the mail > server > (dead or alive) in advance. And if possible, I expect the solution of > the ipfw rules. > > Assumption: > mail domain is "@hoge.com(global)" > primary mail server address is "192.168.100.4 (private)" > secondary mail address is "192.168.100.5(private)" > ipfw interface is "fxp0" This can only be done properly at the application layer. IIRC, Postfix can do something similar, with fallback_relay, although I haven't looked into Postfix and load balancing since early 1.x snapshots. I'm not sure how qmail has developed on this front. Regards, -- Philip Reynolds | RFC Networks Ltd. philip.reynolds@rfc-networks.ie | +353 (0)1 8832063 http://people.rfc-networks.ie/~phil | www.rfc-networks.ie