From owner-freebsd-isp@FreeBSD.ORG Tue Nov 8 12:23:57 2005 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03F8516A41F for ; Tue, 8 Nov 2005 12:23:57 +0000 (GMT) (envelope-from discussion-lists@linnet.org) Received: from orb.pobox.com (orb.pobox.com [207.8.226.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9092C43D49 for ; Tue, 8 Nov 2005 12:23:56 +0000 (GMT) (envelope-from discussion-lists@linnet.org) Received: from orb (localhost [127.0.0.1]) by orb.pobox.com (Postfix) with ESMTP id 90C50404F; Tue, 8 Nov 2005 07:24:40 -0500 (EST) Received: from mappit.local.linnet.org (212-74-113-67.static.dsl.as9105.com [212.74.113.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by orb.sasl.smtp.pobox.com (Postfix) with ESMTP id 258E587; Tue, 8 Nov 2005 07:24:38 -0500 (EST) Received: from lists by mappit.local.linnet.org with local (Exim 4.54 (FreeBSD)) id 1EZSW0-000FMS-Pc; Tue, 08 Nov 2005 12:23:52 +0000 Date: Tue, 8 Nov 2005 12:23:52 +0000 From: Brian Candler To: dungkaitai Message-ID: <20051108122352.GB58984@uk.tiscali.com> References: <20051107235736.M27385@hk-cse.dyxnet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051107235736.M27385@hk-cse.dyxnet.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-isp@freebsd.org Subject: Re: Backup/Secondary relay server (mailertable) X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2005 12:23:57 -0000 On Tue, Nov 08, 2005 at 07:59:39AM +0800, dungkaitai wrote: > I wanted to know how should the backup/secondary relay server should be setup. (1) Install Exim. You won't regret it. # cd /usr/ports/mail/exim # make all install clean [/etc/mail/mailer.conf] sendmail /usr/local/sbin/exim send-mail /usr/local/sbin/exim mailq /usr/local/sbin/exim # /etc/rc.d/sendmail stop [/etc/rc.conf] sendmail_enable="NONE" exim_enable="YES" # /usr/local/etc/rc.d/exim.sh start (2) Edit /usr/local/etc/exim/configure, find this line, and list the domains you wish to allow backup MX for: domainlist relay_to_domains = foo.com : bar.com (3) # /usr/local/etc/rc.d/exim.sh restart (4) relax :-) Exim is the Swiss-army knife of MTAs. You can easily replace that configuration line with a database lookup (so you can act as backup MX for tens of thousands of domains), or set it to act as backup MX for anyone who lists your server in the DNS as a secondary MX: domainlist relay_to_domains = @mx_secondary See /usr/local/share/doc/exim/spec.txt for full details. Regards, Brian.