Re-word-wrap this entire question; some lines are just *way* too long,

all through the question.
This commit is contained in:
Michael Lucas 2002-01-28 13:43:48 +00:00
parent 33fa28c010
commit 0257f60a1a
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=11939

View file

@ -6727,62 +6727,67 @@ parse returns: $# uucp-dom $@ <replaceable>your.uucp.relay</replaceab
</question>
<answer>
<para>If you have got a statically assigned IP number, you should
not need to adjust anything from the default. Set your host
name up as your assigned Internet name and sendmail will do
the rest.</para>
<para>If you have got a statically assigned IP number, you
should not need to adjust anything from the default. Set
your host name up as your assigned Internet name and
sendmail will do the rest.</para>
<para>If you have got a dynamically assigned IP number and use a
dialup PPP connection to the
Internet, you will probably be given a mailbox on your ISPs
mail server. Lets assume your ISPs domain is
<hostid role="domainname">myISP.com</hostid>, and that your user name is
<username>user</username>. Lets also assume you have
called your machine <hostid role="fqdn">bsd.home</hostid> and that your
ISP has told you that you may use
<hostid role="fqdn">relay.myISP.com</hostid> as a mail relay.</para>
<para>If you have got a dynamically assigned IP number and
use a dialup PPP connection to the Internet, you will
probably be given a mailbox on your ISPs mail server. Lets
assume your ISPs domain is <hostid
role="domainname">myISP.com</hostid>, and that your user
name is <username>user</username>. Lets also assume you
have called your machine <hostid
role="fqdn">bsd.home</hostid> and that your ISP has told
you that you may use <hostid
role="fqdn">relay.myISP.com</hostid> as a mail
relay.</para>
<para>In order to retrieve mail from your mailbox, you will need
to install a retrieval agent. <application>Fetchmail</application> is a good choice as it supports
many different protocols. Usually, POP3 will be provided by
your ISP. If you have chosen to use user-PPP, you can
automatically fetch your mail when a connection to the 'net is
established with the following entry in
<filename>/etc/ppp/ppp.linkup</filename>:</para>
<para>In order to retrieve mail from your mailbox, you will
need to install a retrieval
agent. <application>Fetchmail</application> is a good
choice as it supports many different protocols. Usually,
POP3 will be provided by your ISP. If you have chosen to
use user-PPP, you can automatically fetch your mail when a
connection to the 'net is established with the following
entry in <filename>/etc/ppp/ppp.linkup</filename>:</para>
<programlisting>MYADDR:
!bg su user -c fetchmail</programlisting>
<para>If you are using <application>sendmail</application>
(as shown below) to deliver mail to non-local accounts, put
the command</para>
(as shown below) to deliver mail to non-local accounts,
put the command</para>
<programlisting> !bg su user -c "sendmail -q"</programlisting>
<para>after the above shown entry. This forces <application>sendmail</application> to
process your mailqueue as soon as the connection to the 'net
is established.</para>
<para>after the above shown entry. This forces
<application>sendmail</application> to process your
mailqueue as soon as the connection to the 'net is
established.</para>
<para>I am assuming that you have an account for
<username>user</username> on
<hostid role="fqdn">bsd.home</hostid>. In the home directory of
<username>user</username> on
<hostid role="fqdn">bsd.home</hostid>, create a
<username>user</username> on <hostid
role="fqdn">bsd.home</hostid>. In the home directory of
<username>user</username> on <hostid
role="fqdn">bsd.home</hostid>, create a
<filename>.fetchmailrc</filename> file:</para>
<programlisting>poll myISP.com protocol pop3 fetchall pass MySecret</programlisting>
<para>This file should not be readable by
anyone except <username>user</username> as it contains
the password <literal>MySecret</literal>.</para>
<para>This file should not be readable by anyone except
<username>user</username> as it contains the password
<literal>MySecret</literal>.</para>
<para>In order to send mail with the correct
<literal>from:</literal> header, you must tell
<application>sendmail</application> to use <literal>user@myISP.com</literal> rather than
<literal>user@bsd.home</literal>. You may also wish to tell
<application>sendmail</application> to send all mail via
<hostid role="fqdn">relay.myISP.com</hostid>, allowing quicker mail
transmission.</para>
<application>sendmail</application> to use
<literal>user@myISP.com</literal> rather than
<literal>user@bsd.home</literal>. You may also wish to
tell <application>sendmail</application> to send all mail
via <hostid role="fqdn">relay.myISP.com</hostid>, allowing
quicker mail transmission.</para>
<para>The following <filename>.mc</filename> file should
suffice:</para>
@ -6804,10 +6809,11 @@ Dmbsd.home
define(`confDOMAIN_NAME',`bsd.home')dnl
define(`confDELIVERY_MODE',`deferred')dnl</programlisting>
<para>Refer to the previous section for details of how to turn
this <filename>.mc</filename> file into a
<filename>sendmail.cf</filename> file. Also, do not forget to
restart <application>sendmail</application> after updating <filename>sendmail.cf</filename>.</para>
<para>Refer to the previous section for details of how to
turn this <filename>.mc</filename> file into a
<filename>sendmail.cf</filename> file. Also, do not
forget to restart <application>sendmail</application>
after updating <filename>sendmail.cf</filename>.</para>
</answer>
</qandaentry>