View | Details | Raw Unified | Return to bug 39757
Collapse All | Expand All

(-)chapter.sgml (-13 / +13 lines)
Lines 803-835 Link Here
803
	<para>There are at least two ways to do this, an alternative
803
	<para>There are at least two ways to do this, an alternative
804
	  being UUCP.</para>
804
	  being UUCP.</para>
805
      
805
      
806
	<para>The key is to get a Internet site to provide secondary MX
806
	<para>The key is to get an full-time Internet server to provide secondary MX
807
	  service for your domain.  For example:</para>
807
	  service for your domain.  For example:</para>
808
808
809
	<programlisting>bigco.com.            MX        10      bigco.com.
809
	<programlisting>myco.com.            MX        10      myco.com.
810
                      MX        20      smalliap.com.</programlisting>
810
                      MX        20      myisp.com.</programlisting>
811
          
811
          
812
	<para>Only one host should be specified as the final recipient
812
	<para>Only one host should be specified as the final recipient
813
	  (add <literal>Cw bigco.com</literal> in
813
	  (add <literal>Cw myco.com</literal> in
814
	  <filename>/etc/mail/sendmail.cf</filename> on <hostid role="domainname">bigco.com</hostid>).</para>
814
	  <filename>/etc/mail/sendmail.cf</filename> on <hostid role="domainname">myco.com</hostid>).</para>
815
          
815
          
816
	<para>When the sending <command>sendmail</command> is trying to
816
	<para>When the sending <command>sendmail</command> is trying to
817
	  deliver the mail it will try to connect to you over the modem
817
	  deliver the mail it will try to connect to you (<hostid role="domainname">myco.com</hostid>) over the modem
818
	  link.  It will most likely time out because you are not online.
818
	  link.  It will most likely time out because you are not online.
819
	  <command>sendmail</command> will automatically deliver it to the
819
	  <command>sendmail</command> will automatically deliver it to the
820
	  secondary MX site, i.e. your Internet provider.  The secondary MX
820
	  secondary MX site, i.e. your Internet provider (<hostid role="domainname">myisp.com</hostid>).  The secondary MX
821
	  site will try every
821
	  site will then try every
822
	  (<literal>sendmail_flags = -bd -q15m</literal> in
822
	  15 minutes (assuming they have <literal>sendmail_flags = -bd -q15m</literal> in
823
	  <filename>/etc/rc.conf</filename>) 15 minutes to connect to
823
	  <filename>/etc/rc.conf</filename> or the equivalent) to connect to
824
	  your host to deliver the mail to the primary MX site.</para>
824
	  your host and deliver the mail to the primary MX host (<hostid role="domainname">myco.com</hostid>).</para>
825
          
825
          
826
	<para>You might want to use something like this as a login
826
	<para>You might want to use something like this as a login
827
	  script.</para>
827
	  script.</para>
828
828
829
	<programlisting>#!/bin/sh
829
	<programlisting>#!/bin/sh
830
# Put me in /usr/local/bin/pppbigco
830
# Put me in /usr/local/bin/pppmyisp
831
( sleep 60 ; /usr/sbin/sendmail -q ) &amp;
831
( sleep 60 ; /usr/sbin/sendmail -q ) &amp;
832
/usr/sbin/ppp -direct pppbigco</programlisting>
832
/usr/sbin/ppp -direct pppmyisp</programlisting>
833
833
834
	<para>If you are going to create a separate login script for a
834
	<para>If you are going to create a separate login script for a
835
	  user you could use <command>sendmail -qRbigco.com</command>
835
	  user you could use <command>sendmail -qRbigco.com</command>

Return to bug 39757