. Use more intuitive names for describing the secondary MX and primary

MX hosts at the dialup PPP mail server part.
. Remove an explicit reference to -bd 15m and rc.conf for secondary MX
  since they are too FreeBSD specific and will very often be untrue
  (especially if the secondary MX is not a FreeBSD machine).

PR:		docs/39757
Submitted by:	Chris Pepper <pepper@rockefeller.edu>
This commit is contained in:
Giorgos Keramidas 2002-07-15 05:15:10 +00:00
parent d64caf545a
commit f7414992a1
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=13626

View file

@ -800,36 +800,34 @@ to /etc/mail/sendmail.cf.</programlisting>
<indexterm><primary>UUCP</primary></indexterm>
<para>There are at least two ways to do this, an alternative
being UUCP.</para>
<para>There are at least two ways to do this. One way is to use
UUCP.</para>
<para>The key is to get a Internet site to provide secondary MX
service for your domain. For example:</para>
<para>Another way is to get a full-time Internet server to provide secondary MX
services for your domain. For example:</para>
<programlisting>bigco.com. MX 10 bigco.com.
MX 20 smalliap.com.</programlisting>
<programlisting>myco.com. MX 10 myco.com.
MX 20 myisp.com.</programlisting>
<para>Only one host should be specified as the final recipient
(add <literal>Cw bigco.com</literal> in
<filename>/etc/mail/sendmail.cf</filename> on <hostid role="domainname">bigco.com</hostid>).</para>
(add <literal>Cw myco.com</literal> in
<filename>/etc/mail/sendmail.cf</filename> on <hostid role="domainname">myco.com</hostid>).</para>
<para>When the sending <command>sendmail</command> 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 (<hostid role="domainname">myco.com</hostid>) over the modem
link. It will most likely time out because you are not online.
<command>sendmail</command> will automatically deliver it to the
secondary MX site, i.e. your Internet provider. The secondary MX
site will try every
(<literal>sendmail_flags = -bd -q15m</literal> in
<filename>/etc/rc.conf</filename>) 15 minutes to connect to
your host to deliver the mail to the primary MX site.</para>
<application>Sendmail</application> will automatically deliver it to the
secondary MX site, i.e. your Internet provider (<hostid role="domainname">myisp.com</hostid>). The secondary MX
site will then periodically try to connect to
your host and deliver the mail to the primary MX host (<hostid role="domainname">myco.com</hostid>).</para>
<para>You might want to use something like this as a login
script.</para>
<programlisting>#!/bin/sh
# Put me in /usr/local/bin/pppbigco
# Put me in /usr/local/bin/pppmyisp
( sleep 60 ; /usr/sbin/sendmail -q ) &amp;
/usr/sbin/ppp -direct pppbigco</programlisting>
/usr/sbin/ppp -direct pppmyisp</programlisting>
<para>If you are going to create a separate login script for a
user you could use <command>sendmail -qRbigco.com</command>