From owner-freebsd-questions@FreeBSD.ORG Wed Jan 17 17:23:11 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B490816A40F for ; Wed, 17 Jan 2007 17:23:11 +0000 (UTC) (envelope-from ct.lists@qgsltd.co.uk) Received: from mailrelay2.qgsltd.co.uk (mailrelay2.qgsltd.co.uk [195.97.223.232]) by mx1.freebsd.org (Postfix) with ESMTP id 3C49613C465 for ; Wed, 17 Jan 2007 17:23:11 +0000 (UTC) (envelope-from ct.lists@qgsltd.co.uk) Received: from qgsltd.co.uk (mail.qgroup.com [192.168.0.12]) by mailrelay2.qgsltd.co.uk (8.13.6/8.13.6) with ESMTP id l0HGgLmb095100; Wed, 17 Jan 2007 16:42:21 GMT (envelope-from ct.lists@qgsltd.co.uk) X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.56 (ClamAV engine v0.88.7) Received: from [192.168.10.197] (account charlest HELO [192.168.10.197]) by qgsltd.co.uk (CommuniGate Pro SMTP 5.0.10) with ESMTPSA id 806167; Wed, 17 Jan 2007 17:19:02 +0000 Message-ID: <45AE5BBB.6060805@qgsltd.co.uk> Date: Wed, 17 Jan 2007 17:24:11 +0000 From: Charles Trevor User-Agent: Thunderbird 1.5.0.9 (X11/20070116) MIME-Version: 1.0 To: freebsd References: <000601c73a43$8683c170$6601880a@Enigma> In-Reply-To: <000601c73a43$8683c170$6601880a@Enigma> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.6/2459/Tue Jan 16 22:03:34 2007 on mailrelay2.qgsltd.co.uk X-Virus-Status: Clean Cc: FreeBSD Questions Subject: Re: Load balancing outgoing mail relay X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2007 17:23:11 -0000 freebsd wrote: >> This (multiple A records) works for me, at least approximately. Both >> Bind and MS DNS will round robin when multiple A records exist for the >> same hostname. What is your setup? > > FreeBSD 6.2 with Sendmail (initially) and now postfix. > MS DNS with round robin (and TTL set to 0 on the records). > Resolving with nslookup gives something like: > smarthost.domain.tld > 192.168.0.1, 192.168.0.2, 192.168.0.3 > > If I kill 192.168.0.1 then it goes on the second one. But this is > failover, and I need (approximately) load balancing. > I understand this is related to the MTA and not to the OS, but hopefully > someone solved this problem using Sendmail or Postifx that are both used > on FreeBSD. > Thanks > What happens if you do multiple dig/nslookups for smarthost.domain.tld. Are the records returned in a different order each time? If not the problem may be at the NS. Charlie