From owner-freebsd-questions Wed Jun 7 8:30:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from pure.evilcode.com (cm38719-a.ftwrth1.tx.home.com [24.11.9.38]) by hub.freebsd.org (Postfix) with ESMTP id 2C72837B5B3 for ; Wed, 7 Jun 2000 08:30:49 -0700 (PDT) (envelope-from daemus@pure.evilcode.com) Received: (from daemus@localhost) by pure.evilcode.com (8.10.1/8.10.1) id e57FWKg22511; Wed, 7 Jun 2000 10:32:20 -0500 (CDT) Date: Wed, 7 Jun 2000 10:32:20 -0500 From: James To: questions@FreeBSD.ORG Cc: webmaster@wmptl.com Subject: Re: secondary MX host Message-ID: <20000607103219.A22343@evilcode.com> Mail-Followup-To: James , questions@FreeBSD.ORG, webmaster@wmptl.com References: <393E5325.6C99EC35@wmptl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <393E5325.6C99EC35@wmptl.com>; from webmaster@wmptl.com on Wed, Jun 07, 2000 at 09:50:29AM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Is it possible to have a secondary MX host that will just queue incoming > messsages and relay them back to the main mailserver when it becomes > available? Sendmail makes this very easy. Make sure that you have the following line in your sendmail.cf file: FR-o /etc/mail/relay-domains Then, open up /etc/mail/relay-domains (unless you changed the name of this file), and put it in a list of domains that this server will queue mail for (one domain per line). send a HUP signal to the main sendmail process, and you're setup (for sendmail). Next, for each domain that you want to use the backup MX, make sure that you have your primary MX record set to a higher priority than the secondaries (by giving it a lower number), i.e.: yourdomain.com IN MX 10 your.primary.mx.host. yourdomain.com IN MX 20 your.secondary.mx.host. This causes MTAs to attempt delivery for yourdomain.com to your.primary.mx.host first, and then your.secondary.mx.host if the other couldn't be reached. then as per the secondary server's queue time (-q switch to sendmail when starting), it will attempt delivery to your.primary.mx.host until it succeeds, or until a certain period of time goes by. Also, you can have the primary server ask the secondaries to process a domain's queue by running the etrn.pl script that comes with sendmail (in contrib/), or by running ``sendmail -q'' on the secondary MX host. Hope this helps. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message