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