From owner-freebsd-questions@FreeBSD.ORG Wed Jan 17 14:26:52 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 BBB7C16A40F for ; Wed, 17 Jan 2007 14:26:52 +0000 (UTC) (envelope-from freebsd@gorlani.net) Received: from smtp4.aruba.it (smtpd3.aruba.it [62.149.128.208]) by mx1.freebsd.org (Postfix) with SMTP id 0D45113C469 for ; Wed, 17 Jan 2007 14:26:48 +0000 (UTC) (envelope-from freebsd@gorlani.net) Received: (qmail 15146 invoked by uid 89); 17 Jan 2007 14:26:44 -0000 Received: by simscan 1.1.0 ppid: 15115, pid: 15139, t: 0.0992s scanners: clamav: 0.88.4/m:40/d:1722 Received: from unknown (HELO Enigma) (gorlani@gorlani.com@194.244.115.129) by smtp4.aruba.it with SMTP; 17 Jan 2007 14:26:44 -0000 Message-ID: <000601c73a43$8683c170$6601880a@Enigma> From: "freebsd" To: "FreeBSD Questions" Date: Wed, 17 Jan 2007 15:26:45 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Spam-Rating: smtp4.aruba.it 1.6.2 0/1000/N 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 14:26:52 -0000 >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