[bfe245f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[bfe245f] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[dad0149a] | 7 | <!ENTITY fetchmail-download-http "http://download2.berlios.de/fetchmail/fetchmail-&fetchmail-version;.tar.bz2">
|
---|
[876ad7f] | 8 | <!ENTITY fetchmail-download-ftp "&gentoo-ftp-repo;/fetchmail-&fetchmail-version;.tar.bz2">
|
---|
| 9 | <!ENTITY fetchmail-md5sum "66b97500b0a1e3c0916b3b5314f597f5">
|
---|
| 10 | <!ENTITY fetchmail-size "1.3 MB">
|
---|
| 11 | <!ENTITY fetchmail-buildsize "8.9 MB">
|
---|
[d8a1fe81] | 12 | <!ENTITY fetchmail-time "0.1 SBU">
|
---|
[bfe245f] | 13 | ]>
|
---|
| 14 |
|
---|
[1708d1e9] | 15 | <sect1 id="fetchmail" xreflabel="Fetchmail">
|
---|
[3bac165] | 16 | <?dbhtml filename="fetchmail.html"?>
|
---|
[481b3e8] | 17 |
|
---|
[3bac165] | 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
[481b3e8] | 22 |
|
---|
[3bac165] | 23 | <title>Fetchmail-&fetchmail-version;</title>
|
---|
[481b3e8] | 24 |
|
---|
[3bac165] | 25 | <indexterm zone="fetchmail">
|
---|
| 26 | <primary sortas="a-Fetchmail">Fetchmail</primary>
|
---|
| 27 | </indexterm>
|
---|
[481b3e8] | 28 |
|
---|
[3bac165] | 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Fetchmail</title>
|
---|
[481b3e8] | 31 |
|
---|
[3bac165] | 32 | <para>The <application>Fetchmail</application> package contains a mail
|
---|
[876ad7f] | 33 | retrieval program. It retrieves mail from remote mail servers and
|
---|
| 34 | forwards it to the local (client) machine's delivery system, so it can then be
|
---|
| 35 | read by normal mail user agents.</para>
|
---|
[481b3e8] | 36 |
|
---|
[3bac165] | 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing='compact'>
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>Download (HTTP): <ulink url="&fetchmail-download-http;"/></para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (FTP): <ulink url="&fetchmail-download-ftp;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download MD5 sum: &fetchmail-md5sum;</para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download size: &fetchmail-size;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Estimated disk space required: &fetchmail-buildsize;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated build time: &fetchmail-time;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | </itemizedlist>
|
---|
[481b3e8] | 58 |
|
---|
[3bac165] | 59 | <bridgehead renderas="sect3">Fetchmail Dependencies</bridgehead>
|
---|
[481b3e8] | 60 |
|
---|
[3bac165] | 61 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[4dbbf634] | 62 | <para role="required"><xref linkend="openssl"/> and a local MDA
|
---|
| 63 | (<xref linkend="procmail"/>)</para>
|
---|
[481b3e8] | 64 |
|
---|
[3bac165] | 65 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[4dbbf634] | 66 | <para role="optional"><xref linkend="python"/> and <xref linkend="tk"/></para>
|
---|
[481b3e8] | 67 |
|
---|
[061ec9d] | 68 | <para condition="html" role="usernotes">User Notes:
|
---|
| 69 | <ulink url="&blfs-wiki;/fetchmail"/></para>
|
---|
| 70 |
|
---|
[3bac165] | 71 | </sect2>
|
---|
[481b3e8] | 72 |
|
---|
[3bac165] | 73 | <sect2 role="installation">
|
---|
| 74 | <title>Installation of Fetchmail</title>
|
---|
[481b3e8] | 75 |
|
---|
| 76 | <para>Install <application>Fetchmail</application> by running the following
|
---|
[3bac165] | 77 | commands:</para>
|
---|
[481b3e8] | 78 |
|
---|
[3bac165] | 79 | <screen><userinput>./configure --prefix=/usr --with-ssl --enable-fallback=procmail &&
|
---|
[46441976] | 80 | make</userinput></screen>
|
---|
| 81 |
|
---|
| 82 | <para>This package does not come with a test suite.</para>
|
---|
| 83 |
|
---|
| 84 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 85 |
|
---|
| 86 | <screen role='root'><userinput>make install</userinput></screen>
|
---|
[481b3e8] | 87 |
|
---|
[3bac165] | 88 | </sect2>
|
---|
[481b3e8] | 89 |
|
---|
[3bac165] | 90 | <sect2 role="commands">
|
---|
[e3353b3] | 91 | <title>Command Explanations</title>
|
---|
[481b3e8] | 92 |
|
---|
[876ad7f] | 93 | <para><parameter>--with-ssl</parameter>: This enables SSL support, so that
|
---|
[3bac165] | 94 | you can handle connections to secure POP3 and IMAP servers.</para>
|
---|
[481b3e8] | 95 |
|
---|
[3bac165] | 96 | <para><parameter>--enable-fallback=procmail</parameter>: This tells
|
---|
| 97 | <application>Fetchmail</application> to hand incoming mail to
|
---|
[876ad7f] | 98 | <application>Procmail</application> for delivery, if the port 25 mail server is
|
---|
[3bac165] | 99 | not present or not responding.</para>
|
---|
[481b3e8] | 100 |
|
---|
[3bac165] | 101 | </sect2>
|
---|
[481b3e8] | 102 |
|
---|
[3bac165] | 103 | <sect2 role="configuration">
|
---|
| 104 | <title>Configuring Fetchmail</title>
|
---|
[481b3e8] | 105 |
|
---|
[3bac165] | 106 | <sect3 id="fetchmail-config">
|
---|
[e3353b3] | 107 | <title>Config Files</title>
|
---|
[481b3e8] | 108 |
|
---|
[3bac165] | 109 | <para><filename>~/.fetchmailrc</filename></para>
|
---|
[481b3e8] | 110 |
|
---|
[3bac165] | 111 | <indexterm zone="fetchmail fetchmail-config">
|
---|
| 112 | <primary sortas="e-AA.fetchmailrc">~/.fetchmailrc</primary>
|
---|
| 113 | </indexterm>
|
---|
[481b3e8] | 114 |
|
---|
[3bac165] | 115 | </sect3>
|
---|
[481b3e8] | 116 |
|
---|
[3bac165] | 117 | <sect3>
|
---|
| 118 | <title>Configuration Information</title>
|
---|
[481b3e8] | 119 |
|
---|
[3bac165] | 120 | <screen><userinput>cat > ~/.fetchmailrc << "EOF"
|
---|
| 121 | <literal>set logfile /var/log/fetchmail.log
|
---|
[bfe245f] | 122 | set no bouncemail
|
---|
| 123 | set postmaster root
|
---|
[481b3e8] | 124 |
|
---|
| 125 | poll SERVERNAME :
|
---|
[061ec9d] | 126 | user <replaceable><username></replaceable> pass <replaceable><password></replaceable>;
|
---|
[3bac165] | 127 | mda "/usr/bin/procmail -f %F -d %T";</literal>
|
---|
| 128 | EOF
|
---|
[481b3e8] | 129 |
|
---|
[e3353b3] | 130 | chmod -v 0600 ~/.fetchmailrc</userinput></screen>
|
---|
[481b3e8] | 131 |
|
---|
| 132 | <para>This is an example configuration that should suffice for most people.
|
---|
[3bac165] | 133 | You can add as many users and servers as you need using the same syntax.</para>
|
---|
[481b3e8] | 134 |
|
---|
[3bac165] | 135 | <para><command>man fetchmail</command>: Look for the section near
|
---|
[876ad7f] | 136 | the bottom named <emphasis>CONFIGURATION EXAMPLES</emphasis>. It
|
---|
[481b3e8] | 137 | gives some quick examples. There are countless other config options once
|
---|
[3bac165] | 138 | you get used to it.</para>
|
---|
[481b3e8] | 139 |
|
---|
[3bac165] | 140 | </sect3>
|
---|
[481b3e8] | 141 |
|
---|
[3bac165] | 142 | </sect2>
|
---|
[481b3e8] | 143 |
|
---|
[3bac165] | 144 | <sect2 role="content">
|
---|
| 145 | <title>Contents</title>
|
---|
[481b3e8] | 146 |
|
---|
[3bac165] | 147 | <segmentedlist>
|
---|
| 148 | <segtitle>Installed Program</segtitle>
|
---|
| 149 | <segtitle>Installed Libraries</segtitle>
|
---|
| 150 | <segtitle>Installed Directories</segtitle>
|
---|
[481b3e8] | 151 |
|
---|
[3bac165] | 152 | <seglistitem>
|
---|
| 153 | <seg>fetchmail and fetchmailconf</seg>
|
---|
| 154 | <seg>None</seg>
|
---|
[46441976] | 155 | <seg>None</seg>
|
---|
[3bac165] | 156 | </seglistitem>
|
---|
| 157 | </segmentedlist>
|
---|
[481b3e8] | 158 |
|
---|
[3bac165] | 159 | <variablelist>
|
---|
| 160 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 161 | <?dbfo list-presentation="list"?>
|
---|
| 162 | <?dbhtml list-presentation="table"?>
|
---|
[481b3e8] | 163 |
|
---|
[3bac165] | 164 | <varlistentry id="fetchmail-prog">
|
---|
| 165 | <term><command>fetchmail</command></term>
|
---|
| 166 | <listitem>
|
---|
[876ad7f] | 167 | <para>when executed as a user, this will source
|
---|
| 168 | <filename>~/.fetchmailrc</filename> and download the appropriate mail.
|
---|
| 169 | </para>
|
---|
[3bac165] | 170 | <indexterm zone="fetchmail fetchmail-prog">
|
---|
| 171 | <primary sortas="b-fetchmail">fetchmail</primary>
|
---|
| 172 | </indexterm>
|
---|
| 173 | </listitem>
|
---|
| 174 | </varlistentry>
|
---|
[481b3e8] | 175 |
|
---|
[3bac165] | 176 | <varlistentry id="fetchmailconf">
|
---|
| 177 | <term><command>fetchmailconf</command></term>
|
---|
| 178 | <listitem>
|
---|
[876ad7f] | 179 | <para>it will assist you in setting up and editing a
|
---|
| 180 | <filename>~/.fetchmailrc</filename> configuration file, by using
|
---|
| 181 | a <application>Tk</application> GUI interface. It requires
|
---|
| 182 | <application>Python</application> and it must have the Tkinker module
|
---|
[3bac165] | 183 | available.</para>
|
---|
| 184 | <indexterm zone="fetchmail fetchmailconf">
|
---|
| 185 | <primary sortas="b-fetchmailconf">fetchmailconf</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
[481b3e8] | 189 |
|
---|
[3bac165] | 190 | </variablelist>
|
---|
[481b3e8] | 191 |
|
---|
[3bac165] | 192 | </sect2>
|
---|
[481b3e8] | 193 |
|
---|
[f45b1953] | 194 | </sect1>
|
---|