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