[bfe245f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/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">
|
---|
[0a58ea4] | 8 | <!ENTITY fetchmail-download-ftp " ">
|
---|
| 9 | <!--
|
---|
[d8a1fe81] | 10 | <!ENTITY fetchmail-download-ftp "ftp://ftp2.be.freesbie.org/packages/openbsd/distfiles/fetchmail-&fetchmail-version;.tar.gz">
|
---|
[0a58ea4] | 11 | -->
|
---|
[dad0149a] | 12 | <!ENTITY fetchmail-md5sum "35ded0414fcff79b492d6ade2ce48911">
|
---|
[bfe245f] | 13 | <!ENTITY fetchmail-size "1.2 MB">
|
---|
[dad0149a] | 14 | <!ENTITY fetchmail-buildsize "9.4 MB">
|
---|
[d8a1fe81] | 15 | <!ENTITY fetchmail-time "0.1 SBU">
|
---|
[bfe245f] | 16 | ]>
|
---|
| 17 |
|
---|
[1708d1e9] | 18 | <sect1 id="fetchmail" xreflabel="Fetchmail">
|
---|
[3bac165] | 19 | <?dbhtml filename="fetchmail.html"?>
|
---|
[481b3e8] | 20 |
|
---|
[3bac165] | 21 | <sect1info>
|
---|
| 22 | <othername>$LastChangedBy$</othername>
|
---|
| 23 | <date>$Date$</date>
|
---|
| 24 | </sect1info>
|
---|
[481b3e8] | 25 |
|
---|
[3bac165] | 26 | <title>Fetchmail-&fetchmail-version;</title>
|
---|
[481b3e8] | 27 |
|
---|
[3bac165] | 28 | <indexterm zone="fetchmail">
|
---|
| 29 | <primary sortas="a-Fetchmail">Fetchmail</primary>
|
---|
| 30 | </indexterm>
|
---|
[481b3e8] | 31 |
|
---|
[3bac165] | 32 | <sect2 role="package">
|
---|
| 33 | <title>Introduction to Fetchmail</title>
|
---|
[481b3e8] | 34 |
|
---|
[3bac165] | 35 | <para>The <application>Fetchmail</application> package contains a mail
|
---|
| 36 | retrieval program. "It retrieves mail from remote mail servers and
|
---|
| 37 | forwards it to your local (client) machine's delivery system, so it can then be
|
---|
| 38 | read by normal mail user agents." </para>
|
---|
[481b3e8] | 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>
|
---|
[4dbbf634] | 65 | <para role="required"><xref linkend="openssl"/> and a local MDA
|
---|
| 66 | (<xref linkend="procmail"/>)</para>
|
---|
[481b3e8] | 67 |
|
---|
[3bac165] | 68 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[4dbbf634] | 69 | <para role="optional"><xref linkend="python"/> and <xref linkend="tk"/></para>
|
---|
[481b3e8] | 70 |
|
---|
[061ec9d] | 71 | <para condition="html" role="usernotes">User Notes:
|
---|
| 72 | <ulink url="&blfs-wiki;/fetchmail"/></para>
|
---|
| 73 |
|
---|
[3bac165] | 74 | </sect2>
|
---|
[481b3e8] | 75 |
|
---|
[3bac165] | 76 | <sect2 role="installation">
|
---|
| 77 | <title>Installation of Fetchmail</title>
|
---|
[481b3e8] | 78 |
|
---|
| 79 | <para>Install <application>Fetchmail</application> by running the following
|
---|
[3bac165] | 80 | commands:</para>
|
---|
[481b3e8] | 81 |
|
---|
[3bac165] | 82 | <screen><userinput>./configure --prefix=/usr --with-ssl --enable-fallback=procmail &&
|
---|
[46441976] | 83 | make</userinput></screen>
|
---|
| 84 |
|
---|
| 85 | <para>This package does not come with a test suite.</para>
|
---|
| 86 |
|
---|
| 87 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 88 |
|
---|
| 89 | <screen role='root'><userinput>make install</userinput></screen>
|
---|
[481b3e8] | 90 |
|
---|
[3bac165] | 91 | </sect2>
|
---|
[481b3e8] | 92 |
|
---|
[3bac165] | 93 | <sect2 role="commands">
|
---|
[e3353b3] | 94 | <title>Command Explanations</title>
|
---|
[481b3e8] | 95 |
|
---|
| 96 | <para><parameter>--with-ssl</parameter>: This enables SSL if found, so that
|
---|
[3bac165] | 97 | you can handle connections to secure POP3 and IMAP servers.</para>
|
---|
[481b3e8] | 98 |
|
---|
[3bac165] | 99 | <para><parameter>--enable-fallback=procmail</parameter>: This tells
|
---|
| 100 | <application>Fetchmail</application> to hand incoming mail to
|
---|
| 101 | <application>Procmail</application> for delivery if your port 25 mail server is
|
---|
| 102 | not present or not responding.</para>
|
---|
[481b3e8] | 103 |
|
---|
[3bac165] | 104 | </sect2>
|
---|
[481b3e8] | 105 |
|
---|
[3bac165] | 106 | <sect2 role="configuration">
|
---|
| 107 | <title>Configuring Fetchmail</title>
|
---|
[481b3e8] | 108 |
|
---|
[3bac165] | 109 | <sect3 id="fetchmail-config">
|
---|
[e3353b3] | 110 | <title>Config Files</title>
|
---|
[481b3e8] | 111 |
|
---|
[3bac165] | 112 | <para><filename>~/.fetchmailrc</filename></para>
|
---|
[481b3e8] | 113 |
|
---|
[3bac165] | 114 | <indexterm zone="fetchmail fetchmail-config">
|
---|
| 115 | <primary sortas="e-AA.fetchmailrc">~/.fetchmailrc</primary>
|
---|
| 116 | </indexterm>
|
---|
[481b3e8] | 117 |
|
---|
[3bac165] | 118 | </sect3>
|
---|
[481b3e8] | 119 |
|
---|
[3bac165] | 120 | <sect3>
|
---|
| 121 | <title>Configuration Information</title>
|
---|
[481b3e8] | 122 |
|
---|
[3bac165] | 123 | <screen><userinput>cat > ~/.fetchmailrc << "EOF"
|
---|
| 124 | <literal>set logfile /var/log/fetchmail.log
|
---|
[bfe245f] | 125 | set no bouncemail
|
---|
| 126 | set postmaster root
|
---|
[481b3e8] | 127 |
|
---|
| 128 | poll SERVERNAME :
|
---|
[061ec9d] | 129 | user <replaceable><username></replaceable> pass <replaceable><password></replaceable>;
|
---|
[3bac165] | 130 | mda "/usr/bin/procmail -f %F -d %T";</literal>
|
---|
| 131 | EOF
|
---|
[481b3e8] | 132 |
|
---|
[e3353b3] | 133 | chmod -v 0600 ~/.fetchmailrc</userinput></screen>
|
---|
[481b3e8] | 134 |
|
---|
| 135 | <para>This is an example configuration that should suffice for most people.
|
---|
[3bac165] | 136 | You can add as many users and servers as you need using the same syntax.</para>
|
---|
[481b3e8] | 137 |
|
---|
[3bac165] | 138 | <para><command>man fetchmail</command>: Look for the section near
|
---|
[481b3e8] | 139 | the bottom named <emphasis role="strong">CONFIGURATION EXAMPLES</emphasis>. It
|
---|
| 140 | gives some quick examples. There are countless other config options once
|
---|
[3bac165] | 141 | you get used to it.</para>
|
---|
[481b3e8] | 142 |
|
---|
[3bac165] | 143 | </sect3>
|
---|
[481b3e8] | 144 |
|
---|
[3bac165] | 145 | </sect2>
|
---|
[481b3e8] | 146 |
|
---|
[3bac165] | 147 | <sect2 role="content">
|
---|
| 148 | <title>Contents</title>
|
---|
[481b3e8] | 149 |
|
---|
[3bac165] | 150 | <segmentedlist>
|
---|
| 151 | <segtitle>Installed Program</segtitle>
|
---|
| 152 | <segtitle>Installed Libraries</segtitle>
|
---|
| 153 | <segtitle>Installed Directories</segtitle>
|
---|
[481b3e8] | 154 |
|
---|
[3bac165] | 155 | <seglistitem>
|
---|
| 156 | <seg>fetchmail and fetchmailconf</seg>
|
---|
| 157 | <seg>None</seg>
|
---|
[46441976] | 158 | <seg>None</seg>
|
---|
[3bac165] | 159 | </seglistitem>
|
---|
| 160 | </segmentedlist>
|
---|
[481b3e8] | 161 |
|
---|
[3bac165] | 162 | <variablelist>
|
---|
| 163 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 164 | <?dbfo list-presentation="list"?>
|
---|
| 165 | <?dbhtml list-presentation="table"?>
|
---|
[481b3e8] | 166 |
|
---|
[3bac165] | 167 | <varlistentry id="fetchmail-prog">
|
---|
| 168 | <term><command>fetchmail</command></term>
|
---|
| 169 | <listitem>
|
---|
| 170 | <para>when executed as a user, this will source that users
|
---|
| 171 | <filename>~/.fetchmailrc</filename> and download the appropriate mail.</para>
|
---|
| 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>
|
---|
| 181 | <para>this program provides a <application>Tk</application>
|
---|
[481b3e8] | 182 | GUI interface to your <filename>~/.fetchmailrc</filename>
|
---|
[3bac165] | 183 | file making it much easier to configure. However, you will require
|
---|
| 184 | <application>Python</application>, and it must have the Tkinker module
|
---|
| 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>
|
---|