[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 |
|
---|
[8dfc5c3] | 7 | <!ENTITY fetchmail-download-http "&sourceforge-dl;/fetchmail/fetchmail-&fetchmail-version;.tar.xz">
|
---|
[ae0f6ec0] | 8 | <!ENTITY fetchmail-download-ftp " ">
|
---|
[c48bc3ba] | 9 | <!ENTITY fetchmail-md5sum "61b66faad044afa26e142bb1791aa2b3">
|
---|
[06f76d2c] | 10 | <!ENTITY fetchmail-size "1.2 MB">
|
---|
[c48bc3ba] | 11 | <!ENTITY fetchmail-buildsize "14 MB">
|
---|
[d8a1fe81] | 12 | <!ENTITY fetchmail-time "0.1 SBU">
|
---|
[bfe245f] | 13 | ]>
|
---|
| 14 |
|
---|
[31784c8] | 15 | <sect1 id="fetchmail" xreflabel="fetchmail-&fetchmail-version;">
|
---|
[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 |
|
---|
[6c61096] | 37 | &lfs84_checked;
|
---|
[06f76d2c] | 38 |
|
---|
[3bac165] | 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing='compact'>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (HTTP): <ulink url="&fetchmail-download-http;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (FTP): <ulink url="&fetchmail-download-ftp;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download MD5 sum: &fetchmail-md5sum;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download size: &fetchmail-size;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated disk space required: &fetchmail-buildsize;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated build time: &fetchmail-time;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | </itemizedlist>
|
---|
[481b3e8] | 60 |
|
---|
[a4f37269] | 61 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 62 | <itemizedlist spacing="compact">
|
---|
| 63 | <listitem>
|
---|
[428fb71] | 64 | <para>Required patch: <ulink
|
---|
| 65 | url="&patch-root;/fetchmail-&fetchmail-version;-disable_sslv3-1.patch"/></para>
|
---|
[a4f37269] | 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
[3bac165] | 69 | <bridgehead renderas="sect3">Fetchmail Dependencies</bridgehead>
|
---|
[481b3e8] | 70 |
|
---|
[d92abe56] | 71 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 72 | <para role="recommended">
|
---|
[c48bc3ba] | 73 | a local MDA (<xref linkend="procmail"/>)
|
---|
| 74 | </para>
|
---|
[481b3e8] | 75 |
|
---|
[3bac165] | 76 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[c48bc3ba] | 77 | <para role="optional">
|
---|
[6c61096] | 78 | <xref linkend="python2"/>, built after
|
---|
[c48bc3ba] | 79 | <xref linkend="tk"/>
|
---|
| 80 | </para>
|
---|
[481b3e8] | 81 |
|
---|
[061ec9d] | 82 | <para condition="html" role="usernotes">User Notes:
|
---|
| 83 | <ulink url="&blfs-wiki;/fetchmail"/></para>
|
---|
| 84 |
|
---|
[3bac165] | 85 | </sect2>
|
---|
[481b3e8] | 86 |
|
---|
[3bac165] | 87 | <sect2 role="installation">
|
---|
| 88 | <title>Installation of Fetchmail</title>
|
---|
[481b3e8] | 89 |
|
---|
| 90 | <para>Install <application>Fetchmail</application> by running the following
|
---|
[3bac165] | 91 | commands:</para>
|
---|
[481b3e8] | 92 |
|
---|
[428fb71] | 93 | <screen><userinput>patch -Np1 -i ../fetchmail-&fetchmail-version;-disable_sslv3-1.patch &&
|
---|
[a4f37269] | 94 | ./configure --prefix=/usr --with-ssl --enable-fallback=procmail &&
|
---|
[46441976] | 95 | make</userinput></screen>
|
---|
| 96 |
|
---|
| 97 | <para>This package does not come with a test suite.</para>
|
---|
| 98 |
|
---|
| 99 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 100 |
|
---|
| 101 | <screen role='root'><userinput>make install</userinput></screen>
|
---|
[481b3e8] | 102 |
|
---|
[3bac165] | 103 | </sect2>
|
---|
[481b3e8] | 104 |
|
---|
[3bac165] | 105 | <sect2 role="commands">
|
---|
[e3353b3] | 106 | <title>Command Explanations</title>
|
---|
[481b3e8] | 107 |
|
---|
[876ad7f] | 108 | <para><parameter>--with-ssl</parameter>: This enables SSL support, so that
|
---|
[3bac165] | 109 | you can handle connections to secure POP3 and IMAP servers.</para>
|
---|
[481b3e8] | 110 |
|
---|
[3bac165] | 111 | <para><parameter>--enable-fallback=procmail</parameter>: This tells
|
---|
| 112 | <application>Fetchmail</application> to hand incoming mail to
|
---|
[876ad7f] | 113 | <application>Procmail</application> for delivery, if the port 25 mail server is
|
---|
[3bac165] | 114 | not present or not responding.</para>
|
---|
[481b3e8] | 115 |
|
---|
[3bac165] | 116 | </sect2>
|
---|
[481b3e8] | 117 |
|
---|
[3bac165] | 118 | <sect2 role="configuration">
|
---|
| 119 | <title>Configuring Fetchmail</title>
|
---|
[481b3e8] | 120 |
|
---|
[3bac165] | 121 | <sect3 id="fetchmail-config">
|
---|
[e3353b3] | 122 | <title>Config Files</title>
|
---|
[481b3e8] | 123 |
|
---|
[3bac165] | 124 | <para><filename>~/.fetchmailrc</filename></para>
|
---|
[481b3e8] | 125 |
|
---|
[3bac165] | 126 | <indexterm zone="fetchmail fetchmail-config">
|
---|
| 127 | <primary sortas="e-AA.fetchmailrc">~/.fetchmailrc</primary>
|
---|
| 128 | </indexterm>
|
---|
[481b3e8] | 129 |
|
---|
[3bac165] | 130 | </sect3>
|
---|
[481b3e8] | 131 |
|
---|
[3bac165] | 132 | <sect3>
|
---|
| 133 | <title>Configuration Information</title>
|
---|
[481b3e8] | 134 |
|
---|
[3bac165] | 135 | <screen><userinput>cat > ~/.fetchmailrc << "EOF"
|
---|
| 136 | <literal>set logfile /var/log/fetchmail.log
|
---|
[bfe245f] | 137 | set no bouncemail
|
---|
| 138 | set postmaster root
|
---|
[481b3e8] | 139 |
|
---|
| 140 | poll SERVERNAME :
|
---|
[061ec9d] | 141 | user <replaceable><username></replaceable> pass <replaceable><password></replaceable>;
|
---|
[3bac165] | 142 | mda "/usr/bin/procmail -f %F -d %T";</literal>
|
---|
| 143 | EOF
|
---|
[481b3e8] | 144 |
|
---|
[e3353b3] | 145 | chmod -v 0600 ~/.fetchmailrc</userinput></screen>
|
---|
[481b3e8] | 146 |
|
---|
| 147 | <para>This is an example configuration that should suffice for most people.
|
---|
[3bac165] | 148 | You can add as many users and servers as you need using the same syntax.</para>
|
---|
[481b3e8] | 149 |
|
---|
[c48bc3ba] | 150 | <para><command>man fetchmail</command>: Look for the section near the
|
---|
| 151 | bottom named <emphasis>CONFIGURATION EXAMPLES</emphasis>. It gives some
|
---|
| 152 | quick examples. There are countless other configuration options once you
|
---|
| 153 | get used to it.</para>
|
---|
[481b3e8] | 154 |
|
---|
[3bac165] | 155 | </sect3>
|
---|
[481b3e8] | 156 |
|
---|
[3bac165] | 157 | </sect2>
|
---|
[481b3e8] | 158 |
|
---|
[3bac165] | 159 | <sect2 role="content">
|
---|
| 160 | <title>Contents</title>
|
---|
[481b3e8] | 161 |
|
---|
[3bac165] | 162 | <segmentedlist>
|
---|
[832d359b] | 163 | <segtitle>Installed Programs</segtitle>
|
---|
[3bac165] | 164 | <segtitle>Installed Libraries</segtitle>
|
---|
| 165 | <segtitle>Installed Directories</segtitle>
|
---|
[481b3e8] | 166 |
|
---|
[3bac165] | 167 | <seglistitem>
|
---|
| 168 | <seg>fetchmail and fetchmailconf</seg>
|
---|
| 169 | <seg>None</seg>
|
---|
[46441976] | 170 | <seg>None</seg>
|
---|
[3bac165] | 171 | </seglistitem>
|
---|
| 172 | </segmentedlist>
|
---|
[481b3e8] | 173 |
|
---|
[3bac165] | 174 | <variablelist>
|
---|
| 175 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 176 | <?dbfo list-presentation="list"?>
|
---|
| 177 | <?dbhtml list-presentation="table"?>
|
---|
[481b3e8] | 178 |
|
---|
[3bac165] | 179 | <varlistentry id="fetchmail-prog">
|
---|
| 180 | <term><command>fetchmail</command></term>
|
---|
| 181 | <listitem>
|
---|
[876ad7f] | 182 | <para>when executed as a user, this will source
|
---|
| 183 | <filename>~/.fetchmailrc</filename> and download the appropriate mail.
|
---|
| 184 | </para>
|
---|
[3bac165] | 185 | <indexterm zone="fetchmail fetchmail-prog">
|
---|
| 186 | <primary sortas="b-fetchmail">fetchmail</primary>
|
---|
| 187 | </indexterm>
|
---|
| 188 | </listitem>
|
---|
| 189 | </varlistentry>
|
---|
[481b3e8] | 190 |
|
---|
[3bac165] | 191 | <varlistentry id="fetchmailconf">
|
---|
| 192 | <term><command>fetchmailconf</command></term>
|
---|
| 193 | <listitem>
|
---|
[876ad7f] | 194 | <para>it will assist you in setting up and editing a
|
---|
| 195 | <filename>~/.fetchmailrc</filename> configuration file, by using
|
---|
| 196 | a <application>Tk</application> GUI interface. It requires
|
---|
[6c61096] | 197 | <application>Python 2</application> and it must have the Tkinker
|
---|
| 198 | module available.</para>
|
---|
[3bac165] | 199 | <indexterm zone="fetchmail fetchmailconf">
|
---|
| 200 | <primary sortas="b-fetchmailconf">fetchmailconf</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
[481b3e8] | 204 |
|
---|
[3bac165] | 205 | </variablelist>
|
---|
[481b3e8] | 206 |
|
---|
[3bac165] | 207 | </sect2>
|
---|
[481b3e8] | 208 |
|
---|
[f45b1953] | 209 | </sect1>
|
---|