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