2004-06-12 14:27:56 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-12 14:27:56 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2012-05-11 03:26:11 +08:00
|
|
|
<!ENTITY fetchmail-download-http "&sourceforge-repo;/fetchmail.berlios/fetchmail-&fetchmail-version;.tar.xz">
|
|
|
|
<!ENTITY fetchmail-download-ftp "ftp://ftp.at.gnucash.org/pub/infosys/mail/fetchmail/fetchmail-&fetchmail-version;.tar.xz">
|
|
|
|
<!ENTITY fetchmail-md5sum "db75ef2058423599386add311bc954ce">
|
|
|
|
<!ENTITY fetchmail-size "1.2 MB">
|
|
|
|
<!ENTITY fetchmail-buildsize "15 MB">
|
2005-07-31 08:47:00 +08:00
|
|
|
<!ENTITY fetchmail-time "0.1 SBU">
|
2004-06-12 14:27:56 +08:00
|
|
|
]>
|
|
|
|
|
2010-10-21 05:02:08 +08:00
|
|
|
<sect1 id="fetchmail" xreflabel="fetchmail-&fetchmail-version;">
|
2005-04-29 04:06:40 +08:00
|
|
|
<?dbhtml filename="fetchmail.html"?>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<title>Fetchmail-&fetchmail-version;</title>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<indexterm zone="fetchmail">
|
|
|
|
<primary sortas="a-Fetchmail">Fetchmail</primary>
|
|
|
|
</indexterm>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Fetchmail</title>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<para>The <application>Fetchmail</application> package contains a mail
|
2007-08-04 04:56:08 +08:00
|
|
|
retrieval program. It retrieves mail from remote mail servers and
|
|
|
|
forwards it to the local (client) machine's delivery system, so it can then be
|
|
|
|
read by normal mail user agents.</para>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2013-03-27 00:39:48 +08:00
|
|
|
&lfs73_checked;
|
2012-05-11 03:26:11 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<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>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<bridgehead renderas="sect3">Fetchmail Dependencies</bridgehead>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2005-12-02 03:57:37 +08:00
|
|
|
<para role="required"><xref linkend="openssl"/> and a local MDA
|
|
|
|
(<xref linkend="procmail"/>)</para>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2012-02-17 22:43:28 +08:00
|
|
|
<para role="optional"><xref linkend="python2"/> and <xref linkend="tk"/></para>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2006-04-11 02:35:11 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/fetchmail"/></para>
|
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
</sect2>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Fetchmail</title>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
|
|
|
<para>Install <application>Fetchmail</application> by running the following
|
2005-04-29 04:06:40 +08:00
|
|
|
commands:</para>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2008-12-27 18:08:18 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr --with-ssl --enable-fallback=procmail &&
|
2005-06-17 04:04:11 +08:00
|
|
|
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>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
</sect2>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<sect2 role="commands">
|
2005-05-01 17:37:53 +08:00
|
|
|
<title>Command Explanations</title>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2007-08-04 04:56:08 +08:00
|
|
|
<para><parameter>--with-ssl</parameter>: This enables SSL support, so that
|
2005-04-29 04:06:40 +08:00
|
|
|
you can handle connections to secure POP3 and IMAP servers.</para>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<para><parameter>--enable-fallback=procmail</parameter>: This tells
|
|
|
|
<application>Fetchmail</application> to hand incoming mail to
|
2007-08-04 04:56:08 +08:00
|
|
|
<application>Procmail</application> for delivery, if the port 25 mail server is
|
2005-04-29 04:06:40 +08:00
|
|
|
not present or not responding.</para>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
</sect2>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring Fetchmail</title>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<sect3 id="fetchmail-config">
|
2005-05-01 17:37:53 +08:00
|
|
|
<title>Config Files</title>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<para><filename>~/.fetchmailrc</filename></para>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<indexterm zone="fetchmail fetchmail-config">
|
|
|
|
<primary sortas="e-AA.fetchmailrc">~/.fetchmailrc</primary>
|
|
|
|
</indexterm>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
</sect3>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<sect3>
|
|
|
|
<title>Configuration Information</title>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<screen><userinput>cat > ~/.fetchmailrc << "EOF"
|
|
|
|
<literal>set logfile /var/log/fetchmail.log
|
2004-06-12 14:27:56 +08:00
|
|
|
set no bouncemail
|
|
|
|
set postmaster root
|
2005-05-22 18:19:50 +08:00
|
|
|
|
|
|
|
poll SERVERNAME :
|
2006-04-11 02:35:11 +08:00
|
|
|
user <replaceable><username></replaceable> pass <replaceable><password></replaceable>;
|
2005-04-29 04:06:40 +08:00
|
|
|
mda "/usr/bin/procmail -f %F -d %T";</literal>
|
|
|
|
EOF
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-05-01 17:37:53 +08:00
|
|
|
chmod -v 0600 ~/.fetchmailrc</userinput></screen>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
|
|
|
<para>This is an example configuration that should suffice for most people.
|
2005-04-29 04:06:40 +08:00
|
|
|
You can add as many users and servers as you need using the same syntax.</para>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<para><command>man fetchmail</command>: Look for the section near
|
2007-08-04 04:56:08 +08:00
|
|
|
the bottom named <emphasis>CONFIGURATION EXAMPLES</emphasis>. It
|
2005-05-22 18:19:50 +08:00
|
|
|
gives some quick examples. There are countless other config options once
|
2005-04-29 04:06:40 +08:00
|
|
|
you get used to it.</para>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
</sect3>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
</sect2>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<segmentedlist>
|
2008-10-28 18:09:57 +08:00
|
|
|
<segtitle>Installed Programs</segtitle>
|
2005-04-29 04:06:40 +08:00
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<seglistitem>
|
|
|
|
<seg>fetchmail and fetchmailconf</seg>
|
|
|
|
<seg>None</seg>
|
2005-06-17 04:04:11 +08:00
|
|
|
<seg>None</seg>
|
2005-04-29 04:06:40 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<varlistentry id="fetchmail-prog">
|
|
|
|
<term><command>fetchmail</command></term>
|
|
|
|
<listitem>
|
2007-08-04 04:56:08 +08:00
|
|
|
<para>when executed as a user, this will source
|
|
|
|
<filename>~/.fetchmailrc</filename> and download the appropriate mail.
|
|
|
|
</para>
|
2005-04-29 04:06:40 +08:00
|
|
|
<indexterm zone="fetchmail fetchmail-prog">
|
|
|
|
<primary sortas="b-fetchmail">fetchmail</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
<varlistentry id="fetchmailconf">
|
|
|
|
<term><command>fetchmailconf</command></term>
|
|
|
|
<listitem>
|
2007-08-04 04:56:08 +08:00
|
|
|
<para>it will assist you in setting up and editing a
|
|
|
|
<filename>~/.fetchmailrc</filename> configuration file, by using
|
|
|
|
a <application>Tk</application> GUI interface. It requires
|
|
|
|
<application>Python</application> and it must have the Tkinker module
|
2005-04-29 04:06:40 +08:00
|
|
|
available.</para>
|
|
|
|
<indexterm zone="fetchmail fetchmailconf">
|
|
|
|
<primary sortas="b-fetchmailconf">fetchmailconf</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
</variablelist>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2005-04-29 04:06:40 +08:00
|
|
|
</sect2>
|
2005-05-22 18:19:50 +08:00
|
|
|
|
2002-07-08 04:28:42 +08:00
|
|
|
</sect1>
|