From owner-freebsd-doc Sun Jun 23 21:20:16 2002 Delivered-To: freebsd-doc@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id EC11237B403 for ; Sun, 23 Jun 2002 21:20:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5O4K1Z99981; Sun, 23 Jun 2002 21:20:01 -0700 (PDT) (envelope-from gnats) Received: from guest.reppep.com (guest.reppep.com [64.81.19.110]) by hub.freebsd.org (Postfix) with ESMTP id 5EBC937B401 for ; Sun, 23 Jun 2002 21:16:36 -0700 (PDT) Received: by guest.reppep.com (Postfix, from userid 501) id B38E5A86A; Mon, 24 Jun 2002 00:16:39 -0400 (EDT) Message-Id: <20020624041639.B38E5A86A@guest.reppep.com> Date: Mon, 24 Jun 2002 00:16:39 -0400 (EDT) From: Chris Pepper Reply-To: Chris Pepper To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/39757: Clarification for remote MX sendmail explanation (Handbook 18.5.3) Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 39757 >Category: docs >Synopsis: Clarification for remote MX sendmail explanation (Handbook 18.5.3) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 23 21:20:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Chris Pepper >Release: FreeBSD 4.6-STABLE i386 >Organization: >Environment: System: FreeBSD guest.reppep.com 4.6-STABLE FreeBSD 4.6-STABLE #0: Tue Jun 18 21:27:59 EDT 2002 pepper@guest.reppep.com:/usr/obj/usr/src/sys/GENERIC i386 >Description: In the Sendmail chapter of the Handbook, "18.5.3. How can I run a mail server on a dial-up PPP host?" provides an example of how to have an external host provide secondary MX service. Unfortunately, the hostnames were very confusing. I've tried to use more obvious names, but someone who actually uses sendmail should check my changes. >How-To-Repeat: >Fix: Patch provided, changing bigco.com to myco.com and smalliap.com to myisp.com, and adding some additional clarification. --- chapter.sgml.diff begins here --- Index: chapter.sgml =================================================================== RCS file: /home/ncvs/doc/en_US.ISO8859-1/books/handbook/mail/chapter.sgml,v retrieving revision 1.52 diff -u -r1.52 chapter.sgml --- chapter.sgml 2002/06/11 23:50:46 1.52 +++ chapter.sgml 2002/06/24 04:12:24 @@ -803,33 +803,33 @@ There are at least two ways to do this, an alternative being UUCP. - The key is to get a Internet site to provide secondary MX + The key is to get an full-time Internet server to provide secondary MX service for your domain. For example: - bigco.com. MX 10 bigco.com. - MX 20 smalliap.com. + myco.com. MX 10 myco.com. + MX 20 myisp.com. Only one host should be specified as the final recipient - (add Cw bigco.com in - /etc/mail/sendmail.cf on bigco.com). + (add Cw myco.com in + /etc/mail/sendmail.cf on myco.com). When the sending sendmail is trying to - deliver the mail it will try to connect to you over the modem + deliver the mail it will try to connect to you (myco.com) over the modem link. It will most likely time out because you are not online. sendmail will automatically deliver it to the - secondary MX site, i.e. your Internet provider. The secondary MX - site will try every - (sendmail_flags = -bd -q15m in - /etc/rc.conf) 15 minutes to connect to - your host to deliver the mail to the primary MX site. + secondary MX site, i.e. your Internet provider (myisp.com). The secondary MX + site will then try every + 15 minutes (assuming they have sendmail_flags = -bd -q15m in + /etc/rc.conf or the equivalent) to connect to + your host and deliver the mail to the primary MX host (myco.com). You might want to use something like this as a login script. #!/bin/sh -# Put me in /usr/local/bin/pppbigco +# Put me in /usr/local/bin/pppmyisp ( sleep 60 ; /usr/sbin/sendmail -q ) & -/usr/sbin/ppp -direct pppbigco +/usr/sbin/ppp -direct pppmyisp If you are going to create a separate login script for a user you could use sendmail -qRbigco.com --- chapter.sgml.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message