mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 23:32:12 +08:00
d8a1fe81bf
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4847 af4574ff-66df-0310-9fd7-8a98e5e911e0
190 lines
6.2 KiB
XML
190 lines
6.2 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY fetchmail-download-http "http://download.berlios.de/fetchmail/fetchmail-&fetchmail-version;.tar.gz">
|
|
<!ENTITY fetchmail-download-ftp "ftp://ftp2.be.freesbie.org/packages/openbsd/distfiles/fetchmail-&fetchmail-version;.tar.gz">
|
|
<!ENTITY fetchmail-md5sum "6eefef076bf3517a870f27a6133ff8c4">
|
|
<!ENTITY fetchmail-size "1.2 MB">
|
|
<!ENTITY fetchmail-buildsize "6.1 MB">
|
|
<!ENTITY fetchmail-time "0.1 SBU">
|
|
]>
|
|
|
|
<sect1 id="fetchmail" xreflabel="Fetchmail">
|
|
<?dbhtml filename="fetchmail.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>Fetchmail-&fetchmail-version;</title>
|
|
|
|
<indexterm zone="fetchmail">
|
|
<primary sortas="a-Fetchmail">Fetchmail</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to Fetchmail</title>
|
|
|
|
<para>The <application>Fetchmail</application> package contains a mail
|
|
retrieval program. "It retrieves mail from remote mail servers and
|
|
forwards it to your local (client) machine's delivery system, so it can then be
|
|
read by normal mail user agents." </para>
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing='compact'>
|
|
<listitem>
|
|
<para>Download (HTTP): <ulink url="&fetchmail-download-http;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download (FTP): <ulink url="&fetchmail-download-ftp;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download MD5 sum: &fetchmail-md5sum;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download size: &fetchmail-size;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated disk space required: &fetchmail-buildsize;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated build time: &fetchmail-time;</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">Fetchmail Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para><xref linkend="openssl"/> and a local MDA (<xref linkend="procmail"/>)</para>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para><xref linkend="python"/> and <xref linkend="tk"/></para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of Fetchmail</title>
|
|
|
|
<para>Install <application>Fetchmail</application> by running the following
|
|
commands:</para>
|
|
|
|
<screen><userinput>./configure --prefix=/usr --with-ssl --enable-fallback=procmail &&
|
|
make</userinput></screen>
|
|
|
|
<para>This package does not come with a test suite.</para>
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role='root'><userinput>make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para><parameter>--with-ssl</parameter>: This enables SSL if found, so that
|
|
you can handle connections to secure POP3 and IMAP servers.</para>
|
|
|
|
<para><parameter>--enable-fallback=procmail</parameter>: This tells
|
|
<application>Fetchmail</application> to hand incoming mail to
|
|
<application>Procmail</application> for delivery if your port 25 mail server is
|
|
not present or not responding.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="configuration">
|
|
<title>Configuring Fetchmail</title>
|
|
|
|
<sect3 id="fetchmail-config">
|
|
<title>Config Files</title>
|
|
|
|
<para><filename>~/.fetchmailrc</filename></para>
|
|
|
|
<indexterm zone="fetchmail fetchmail-config">
|
|
<primary sortas="e-AA.fetchmailrc">~/.fetchmailrc</primary>
|
|
</indexterm>
|
|
|
|
</sect3>
|
|
|
|
<sect3>
|
|
<title>Configuration Information</title>
|
|
|
|
<screen><userinput>cat > ~/.fetchmailrc << "EOF"
|
|
<literal>set logfile /var/log/fetchmail.log
|
|
set no bouncemail
|
|
set postmaster root
|
|
|
|
poll SERVERNAME :
|
|
user <replaceable>[username]</replaceable> pass <replaceable>[password]</replaceable>;
|
|
mda "/usr/bin/procmail -f %F -d %T";</literal>
|
|
EOF
|
|
|
|
chmod -v 0600 ~/.fetchmailrc</userinput></screen>
|
|
|
|
<para>This is an example configuration that should suffice for most people.
|
|
You can add as many users and servers as you need using the same syntax.</para>
|
|
|
|
<para><command>man fetchmail</command>: Look for the section near
|
|
the bottom named <emphasis role="strong">CONFIGURATION EXAMPLES</emphasis>. It
|
|
gives some quick examples. There are countless other config options once
|
|
you get used to it.</para>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Program</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>fetchmail and fetchmailconf</seg>
|
|
<seg>None</seg>
|
|
<seg>None</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="fetchmail-prog">
|
|
<term><command>fetchmail</command></term>
|
|
<listitem>
|
|
<para>when executed as a user, this will source that users
|
|
<filename>~/.fetchmailrc</filename> and download the appropriate mail.</para>
|
|
<indexterm zone="fetchmail fetchmail-prog">
|
|
<primary sortas="b-fetchmail">fetchmail</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="fetchmailconf">
|
|
<term><command>fetchmailconf</command></term>
|
|
<listitem>
|
|
<para>this program provides a <application>Tk</application>
|
|
GUI interface to your <filename>~/.fetchmailrc</filename>
|
|
file making it much easier to configure. However, you will require
|
|
<application>Python</application>, and it must have the Tkinker module
|
|
available.</para>
|
|
<indexterm zone="fetchmail fetchmailconf">
|
|
<primary sortas="b-fetchmailconf">fetchmailconf</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|