[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 |
|
---|
[8dfc5c3] | 7 | <!ENTITY fetchmail-download-http "&sourceforge-dl;/fetchmail/fetchmail-&fetchmail-version;.tar.xz">
|
---|
[ae0f6ec0] | 8 | <!ENTITY fetchmail-download-ftp " ">
|
---|
[a0e87fb] | 9 | <!ENTITY fetchmail-md5sum "d29875a7c88003013eeb8f41bbec1670">
|
---|
[6b21b3dd] | 10 | <!ENTITY fetchmail-size "1.3 MB">
|
---|
[a0e87fb] | 11 | <!ENTITY fetchmail-buildsize "13 MB including tests">
|
---|
[6b21b3dd] | 12 | <!ENTITY fetchmail-time "0.1 SBU including tests">
|
---|
[bfe245f] | 13 | ]>
|
---|
| 14 |
|
---|
[31784c8] | 15 | <sect1 id="fetchmail" xreflabel="fetchmail-&fetchmail-version;">
|
---|
[3bac165] | 16 | <?dbhtml filename="fetchmail.html"?>
|
---|
[481b3e8] | 17 |
|
---|
[3bac165] | 18 | <sect1info>
|
---|
| 19 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
[481b3e8] | 21 |
|
---|
[3bac165] | 22 | <title>Fetchmail-&fetchmail-version;</title>
|
---|
[481b3e8] | 23 |
|
---|
[3bac165] | 24 | <indexterm zone="fetchmail">
|
---|
| 25 | <primary sortas="a-Fetchmail">Fetchmail</primary>
|
---|
| 26 | </indexterm>
|
---|
[481b3e8] | 27 |
|
---|
[3bac165] | 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to Fetchmail</title>
|
---|
[481b3e8] | 30 |
|
---|
[7c56ece] | 31 | <para>
|
---|
| 32 | The <application>Fetchmail</application> package contains a mail
|
---|
| 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
|
---|
| 35 | then be read by normal mail user agents.
|
---|
| 36 | </para>
|
---|
[481b3e8] | 37 |
|
---|
[94ef7be] | 38 | &lfs111_checked;
|
---|
[06f76d2c] | 39 |
|
---|
[3bac165] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing='compact'>
|
---|
| 42 | <listitem>
|
---|
[7c56ece] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&fetchmail-download-http;"/>
|
---|
| 45 | </para>
|
---|
[3bac165] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[7c56ece] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&fetchmail-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[3bac165] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[7c56ece] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &fetchmail-md5sum;
|
---|
| 55 | </para>
|
---|
[3bac165] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[7c56ece] | 58 | <para>
|
---|
| 59 | Download size: &fetchmail-size;
|
---|
| 60 | </para>
|
---|
[3bac165] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[7c56ece] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &fetchmail-buildsize;
|
---|
| 65 | </para>
|
---|
[3bac165] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[7c56ece] | 68 | <para>
|
---|
| 69 | Estimated build time: &fetchmail-time;
|
---|
| 70 | </para>
|
---|
[3bac165] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
[481b3e8] | 73 |
|
---|
[3bac165] | 74 | <bridgehead renderas="sect3">Fetchmail Dependencies</bridgehead>
|
---|
[481b3e8] | 75 |
|
---|
[d92abe56] | 76 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 77 | <para role="recommended">
|
---|
[c48bc3ba] | 78 | a local MDA (<xref linkend="procmail"/>)
|
---|
| 79 | </para>
|
---|
[481b3e8] | 80 |
|
---|
[3bac165] | 81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[c48bc3ba] | 82 | <para role="optional">
|
---|
[afe4b852] | 83 | <!-- hesiod was at ftp://athena-dist.mit.edu/pub/ATHENA/hesiod/ but that
|
---|
| 84 | is dead. Debian had 3.2.1, git hub has a very old 3.1.
|
---|
| 85 | libintl is part of gettext so enabled by default on LFS -->
|
---|
[4f9e6ae5] | 86 | <xref linkend="mitkrb"/> and
|
---|
| 87 | <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">libgssapi</ulink>
|
---|
[c48bc3ba] | 88 | </para>
|
---|
[481b3e8] | 89 |
|
---|
[c9194c7] | 90 | <bridgehead renderas="sect4">Optional (for running fetchmailconf)</bridgehead>
|
---|
| 91 | <para role="optional">
|
---|
| 92 | <xref linkend="python3"/>, built after
|
---|
| 93 | <xref linkend="tk"/>, with the
|
---|
| 94 | <ulink url="http://python-future.org/">py-future</ulink> package
|
---|
| 95 | </para>
|
---|
| 96 |
|
---|
[061ec9d] | 97 | <para condition="html" role="usernotes">User Notes:
|
---|
| 98 | <ulink url="&blfs-wiki;/fetchmail"/></para>
|
---|
| 99 |
|
---|
[3bac165] | 100 | </sect2>
|
---|
[481b3e8] | 101 |
|
---|
[3bac165] | 102 | <sect2 role="installation">
|
---|
| 103 | <title>Installation of Fetchmail</title>
|
---|
[481b3e8] | 104 |
|
---|
[afe4b852] | 105 | <para>
|
---|
| 106 | Create a dedicated user for the fetchmail program.
|
---|
| 107 | Issue the following commands as the
|
---|
| 108 | <systemitem class="username">root</systemitem> user:
|
---|
| 109 | </para>
|
---|
| 110 |
|
---|
| 111 | <screen role="root"><userinput>useradd -c "Fetchmail User" -d /dev/null -g nogroup \
|
---|
| 112 | -s /bin/false -u 38 fetchmail</userinput></screen>
|
---|
| 113 |
|
---|
[7c56ece] | 114 | <para>
|
---|
| 115 | Install <application>Fetchmail</application> by running the following
|
---|
| 116 | commands:
|
---|
| 117 | </para>
|
---|
[481b3e8] | 118 |
|
---|
[afe4b852] | 119 | <screen><userinput>PYTHON=python3 \
|
---|
| 120 | ./configure --prefix=/usr \
|
---|
[4f9e6ae5] | 121 | --enable-fallback=procmail &&
|
---|
[46441976] | 122 | make</userinput></screen>
|
---|
| 123 |
|
---|
[afe4b852] | 124 | <para>
|
---|
| 125 | To test the results, issue: <command>make check</command>.
|
---|
| 126 | </para>
|
---|
| 127 |
|
---|
[46441976] | 128 |
|
---|
[7c56ece] | 129 | <para>
|
---|
| 130 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 131 | </para>
|
---|
[46441976] | 132 |
|
---|
[afe4b852] | 133 | <screen role='root'><userinput>make install &&
|
---|
| 134 | chown -v fetchmail:nogroup /usr/bin/fetchmail</userinput></screen>
|
---|
[481b3e8] | 135 |
|
---|
[3bac165] | 136 | </sect2>
|
---|
[481b3e8] | 137 |
|
---|
[3bac165] | 138 | <sect2 role="commands">
|
---|
[e3353b3] | 139 | <title>Command Explanations</title>
|
---|
[481b3e8] | 140 |
|
---|
[afe4b852] | 141 | <para>
|
---|
| 142 | <parameter>PYTHON=python3</parameter>: a version of Python is
|
---|
| 143 | <emphasis>required</emphasis>, but only used to install a module to allow
|
---|
| 144 | fetchmailconf to be run. That module is unmaintained and should not be
|
---|
| 145 | used.
|
---|
| 146 | </para>
|
---|
[481b3e8] | 147 |
|
---|
[7c56ece] | 148 | <para>
|
---|
| 149 | <parameter>--enable-fallback=procmail</parameter>: This tells
|
---|
| 150 | <application>Fetchmail</application> to hand incoming mail to
|
---|
| 151 | <application>Procmail</application> for delivery, if the port 25 mail
|
---|
| 152 | server is not present or not responding.
|
---|
| 153 | </para>
|
---|
[481b3e8] | 154 |
|
---|
[3bac165] | 155 | </sect2>
|
---|
[481b3e8] | 156 |
|
---|
[3bac165] | 157 | <sect2 role="configuration">
|
---|
| 158 | <title>Configuring Fetchmail</title>
|
---|
[481b3e8] | 159 |
|
---|
[3bac165] | 160 | <sect3 id="fetchmail-config">
|
---|
[e3353b3] | 161 | <title>Config Files</title>
|
---|
[481b3e8] | 162 |
|
---|
[7c56ece] | 163 | <para>
|
---|
| 164 | <filename>~/.fetchmailrc</filename>
|
---|
| 165 | </para>
|
---|
[481b3e8] | 166 |
|
---|
[3bac165] | 167 | <indexterm zone="fetchmail fetchmail-config">
|
---|
| 168 | <primary sortas="e-AA.fetchmailrc">~/.fetchmailrc</primary>
|
---|
| 169 | </indexterm>
|
---|
[481b3e8] | 170 |
|
---|
[3bac165] | 171 | </sect3>
|
---|
[481b3e8] | 172 |
|
---|
[3bac165] | 173 | <sect3>
|
---|
| 174 | <title>Configuration Information</title>
|
---|
[481b3e8] | 175 |
|
---|
[fecfae0] | 176 | <note>
|
---|
| 177 | <para>
|
---|
| 178 | If you are connecting to a mailserver that supports SSL/TLS-wrapped
|
---|
| 179 | or "implicit" mode on a dedicated port (default 993) you should use
|
---|
| 180 | <command>fetchmail --ssl</command> or add the option 'ssl' in an
|
---|
| 181 | rcfile.
|
---|
| 182 | </para>
|
---|
| 183 | </note>
|
---|
| 184 |
|
---|
[3bac165] | 185 | <screen><userinput>cat > ~/.fetchmailrc << "EOF"
|
---|
[afe4b852] | 186 | <literal>
|
---|
| 187 | # The logfile needs to exist when fetchmail is invoked, otherwise it will
|
---|
| 188 | # dump the details to the screen. As with all logs, you will need to rotate
|
---|
| 189 | # or clear it from time to time.
|
---|
| 190 | set logfile fetchmail.log
|
---|
[bfe245f] | 191 | set no bouncemail
|
---|
[afe4b852] | 192 | # You probably want to set your local username as the postmaster
|
---|
| 193 | set postmaster <replaceable><username></replaceable>
|
---|
[481b3e8] | 194 |
|
---|
| 195 | poll SERVERNAME :
|
---|
[afe4b852] | 196 | user <replaceable><isp_username></replaceable> pass <replaceable><password></replaceable>;
|
---|
[3bac165] | 197 | mda "/usr/bin/procmail -f %F -d %T";</literal>
|
---|
| 198 | EOF
|
---|
[481b3e8] | 199 |
|
---|
[afe4b852] | 200 | touch ~/fetchmail.log &&
|
---|
[e3353b3] | 201 | chmod -v 0600 ~/.fetchmailrc</userinput></screen>
|
---|
[481b3e8] | 202 |
|
---|
[7c56ece] | 203 | <para>
|
---|
| 204 | This is an example configuration that should suffice for most people.
|
---|
| 205 | You can add as many users and servers as you need using the same syntax.
|
---|
| 206 | </para>
|
---|
| 207 |
|
---|
| 208 | <para>
|
---|
| 209 | <command>man fetchmail</command>: Look for the section near the bottom
|
---|
| 210 | named <emphasis>CONFIGURATION EXAMPLES</emphasis>. It gives some quick
|
---|
| 211 | examples. There are countless other configuration options once you get
|
---|
| 212 | used to it.
|
---|
| 213 | </para>
|
---|
| 214 |
|
---|
| 215 | <para>
|
---|
| 216 | If you expect to receive very little mail you can invoke fetchmail
|
---|
| 217 | when you wish to receive any incoming mail. More commonly, it is either
|
---|
| 218 | invoked in daemon mode with the <literal>-d</literal> option either on
|
---|
| 219 | the command line, or in <filename>.fetchmailrc</filename> (see 'DAEMON
|
---|
| 220 | MODE' in man fetchmailconf), or alternatively it is invoked from a
|
---|
| 221 | cron job.
|
---|
| 222 | </para>
|
---|
[f684538] | 223 |
|
---|
[3bac165] | 224 | </sect3>
|
---|
[481b3e8] | 225 |
|
---|
[3bac165] | 226 | </sect2>
|
---|
[481b3e8] | 227 |
|
---|
[3bac165] | 228 | <sect2 role="content">
|
---|
| 229 | <title>Contents</title>
|
---|
[481b3e8] | 230 |
|
---|
[3bac165] | 231 | <segmentedlist>
|
---|
[832d359b] | 232 | <segtitle>Installed Programs</segtitle>
|
---|
[3bac165] | 233 | <segtitle>Installed Libraries</segtitle>
|
---|
| 234 | <segtitle>Installed Directories</segtitle>
|
---|
[481b3e8] | 235 |
|
---|
[3bac165] | 236 | <seglistitem>
|
---|
| 237 | <seg>fetchmail and fetchmailconf</seg>
|
---|
| 238 | <seg>None</seg>
|
---|
[46441976] | 239 | <seg>None</seg>
|
---|
[3bac165] | 240 | </seglistitem>
|
---|
| 241 | </segmentedlist>
|
---|
[481b3e8] | 242 |
|
---|
[3bac165] | 243 | <variablelist>
|
---|
| 244 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 245 | <?dbfo list-presentation="list"?>
|
---|
| 246 | <?dbhtml list-presentation="table"?>
|
---|
[481b3e8] | 247 |
|
---|
[3bac165] | 248 | <varlistentry id="fetchmail-prog">
|
---|
| 249 | <term><command>fetchmail</command></term>
|
---|
| 250 | <listitem>
|
---|
[7c56ece] | 251 | <para>
|
---|
| 252 | when executed as a user, this will source
|
---|
| 253 | <filename>~/.fetchmailrc</filename> and download the appropriate
|
---|
[4c24eb0a] | 254 | mail
|
---|
[876ad7f] | 255 | </para>
|
---|
[3bac165] | 256 | <indexterm zone="fetchmail fetchmail-prog">
|
---|
| 257 | <primary sortas="b-fetchmail">fetchmail</primary>
|
---|
| 258 | </indexterm>
|
---|
| 259 | </listitem>
|
---|
| 260 | </varlistentry>
|
---|
[481b3e8] | 261 |
|
---|
[3bac165] | 262 | <varlistentry id="fetchmailconf">
|
---|
| 263 | <term><command>fetchmailconf</command></term>
|
---|
| 264 | <listitem>
|
---|
[7c56ece] | 265 | <para>
|
---|
[c9194c7] | 266 | is intended to assist you in setting up and editing a
|
---|
[7c56ece] | 267 | <filename>~/.fetchmailrc</filename> configuration file, by using
|
---|
| 268 | a <application>Tk</application> GUI interface. It is written for
|
---|
[c9194c7] | 269 | <application>Python</application> and the Tkinter module but is
|
---|
| 270 | labelled with a WARNING that it needs to be updated
|
---|
[4c24eb0a] | 271 | for fetchmail 6.4's SSL options and other recent new options
|
---|
[c9194c7] | 272 | </para>
|
---|
| 273 | <!-- keep this description commented but fetchmailconf
|
---|
| 274 | has been updated in the last months (June 2020). It can use
|
---|
| 275 | Python 3, with the help of the "past" module.
|
---|
[afe4b852] | 276 | <para>
|
---|
| 277 | is an unmaintained GUI command to assist in creating a
|
---|
| 278 | <filename>~/.fetchmailrc</filename> configuration file and
|
---|
| 279 | should not be used.
|
---|
[c9194c7] | 280 | </para>-->
|
---|
[3bac165] | 281 | <indexterm zone="fetchmail fetchmailconf">
|
---|
| 282 | <primary sortas="b-fetchmailconf">fetchmailconf</primary>
|
---|
| 283 | </indexterm>
|
---|
| 284 | </listitem>
|
---|
| 285 | </varlistentry>
|
---|
[481b3e8] | 286 |
|
---|
[3bac165] | 287 | </variablelist>
|
---|
[481b3e8] | 288 |
|
---|
[3bac165] | 289 | </sect2>
|
---|
[481b3e8] | 290 |
|
---|
[f45b1953] | 291 | </sect1>
|
---|