From owner-freebsd-isp@FreeBSD.ORG Tue Nov 8 13:23:55 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 39ACD16A41F for ; Tue, 8 Nov 2005 13:23:55 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from mail.yazzy.org (mail.yazzy.org [217.8.140.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABF8F43D45 for ; Tue, 8 Nov 2005 13:23:54 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from 217-13-2-82.dd.nextgentel.com ([217.13.2.82] helo=marcin) by mail.yazzy.org with esmtps (TLSv1:AES256-SHA:256) (YazzY.org) id 1EZTRW-0004kw-Su; Tue, 08 Nov 2005 14:23:20 +0100 Date: Tue, 8 Nov 2005 14:23:44 +0100 From: Marcin Jessa To: Brian Candler Message-Id: <20051108142344.6ac9799a.lists@yazzy.org> In-Reply-To: <20051108122352.GB58984@uk.tiscali.com> References: <20051107235736.M27385@hk-cse.dyxnet.com> <20051108122352.GB58984@uk.tiscali.com> Organization: YazzY.org X-Mailer: Sylpheed version 2.0.3 (GTK+ 2.6.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -2.5 (--) Cc: freebsd-isp@freebsd.org, dungkaitai@hk-cse.dyxnet.com 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 13:23:55 -0000 On Tue, 8 Nov 2005 12:23:52 +0000 Brian Candler wrote: > 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. I could not agree more. I run exim on FreeBSD and NetBSD and found it to be the moste flexible open source SMTP-server. Mostly thanks to it's ACL's. Here are some configs of mine: http://www.yazzy.org/configs/freebsd/exim/ Cheers Marcin. P.S For the postfix lovers: Yeah, it's an awsome workhorse too.