Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Nov 2005 12:23:52 +0000
From:      Brian Candler <B.Candler@pobox.com>
To:        dungkaitai <dungkaitai@hk-cse.dyxnet.com>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: Backup/Secondary relay server (mailertable)
Message-ID:  <20051108122352.GB58984@uk.tiscali.com>
In-Reply-To: <20051107235736.M27385@hk-cse.dyxnet.com>
References:  <20051107235736.M27385@hk-cse.dyxnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051108122352.GB58984>