From owner-freebsd-isp Sat Jan 13 1:51:33 2001 Delivered-To: freebsd-isp@freebsd.org Received: from ns.internet.dk (ns.internet.dk [194.19.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 862A737B400 for ; Sat, 13 Jan 2001 01:51:15 -0800 (PST) Received: (from uucp@localhost) by ns.internet.dk (8.11.1/8.11.1) with UUCP id f0D9ow234126; Sat, 13 Jan 2001 10:50:58 +0100 (CET) (envelope-from leifn@neland.dk) Received: from localhost (localhost [127.0.0.1]) by arnold.neland.dk (8.11.1/8.11.0) with ESMTP id f0D9oki46097; Sat, 13 Jan 2001 10:50:52 +0100 (CET) (envelope-from leifn@neland.dk) Date: Sat, 13 Jan 2001 10:50:46 +0100 (CET) From: Leif Neland To: Dirk Meyer Cc: freebsd-isp@FreeBSD.ORG Subject: Re: sendmail queue In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 12 Jan 2001, Dirk Meyer wrote: > Ryan Masse wrote: > > > Could anyone provide some info with regards to setting up a secondary mail > > server? having the mail get queued in the secondary mail server when the PMS > > is down then send all the mail back to the PMS when back up? > > 1) The easy way: > configure Sendmail to accept mail for this host/domain: > simply add in /etc/mail/mailertable: > > primary.do.main smpt:[hostname of primary mail-server] > > After rebuild of mailertable.db the server will accept mail > for this domain and deliver it towards the primary server. > Please keep the Hostname or IP in square brackets, > to avoid any DNS-lookup. > This is not needed. sendmail will look at the mx-records, and will send to the primary mailserver when it becomes available. You could put primary.do.main dsmtp:[hostname of primary mail-server] Then sendmail wouldn't try delivering until the primary mailserver sent an ETRN to this server. It is however nessecary to tell sendmail to accept relaying to that domain, otherwise it will be rejected with "we do not relay". The domain-name needs to be in /etc/mail/relay-domains (In the new sendmail-configfile-naming-scheme) Leif To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message