source: networking/mailnews/fetchmail.xml@ 3f2db3a6

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 3f2db3a6 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 17 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

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