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