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