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-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">
|
---|
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>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 then be
|
---|
35 | read by normal mail user agents.</para>
|
---|
36 |
|
---|
37 | &lfs72_checked;
|
---|
38 |
|
---|
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>
|
---|
60 |
|
---|
61 | <bridgehead renderas="sect3">Fetchmail Dependencies</bridgehead>
|
---|
62 |
|
---|
63 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
64 | <para role="required"><xref linkend="openssl"/> and a local MDA
|
---|
65 | (<xref linkend="procmail"/>)</para>
|
---|
66 |
|
---|
67 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
68 | <para role="optional"><xref linkend="python2"/> and <xref linkend="tk"/></para>
|
---|
69 |
|
---|
70 | <para condition="html" role="usernotes">User Notes:
|
---|
71 | <ulink url="&blfs-wiki;/fetchmail"/></para>
|
---|
72 |
|
---|
73 | </sect2>
|
---|
74 |
|
---|
75 | <sect2 role="installation">
|
---|
76 | <title>Installation of Fetchmail</title>
|
---|
77 |
|
---|
78 | <para>Install <application>Fetchmail</application> by running the following
|
---|
79 | commands:</para>
|
---|
80 |
|
---|
81 | <screen><userinput>./configure --prefix=/usr --with-ssl --enable-fallback=procmail &&
|
---|
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>
|
---|
89 |
|
---|
90 | </sect2>
|
---|
91 |
|
---|
92 | <sect2 role="commands">
|
---|
93 | <title>Command Explanations</title>
|
---|
94 |
|
---|
95 | <para><parameter>--with-ssl</parameter>: This enables SSL support, so that
|
---|
96 | you can handle connections to secure POP3 and IMAP servers.</para>
|
---|
97 |
|
---|
98 | <para><parameter>--enable-fallback=procmail</parameter>: This tells
|
---|
99 | <application>Fetchmail</application> to hand incoming mail to
|
---|
100 | <application>Procmail</application> for delivery, if the port 25 mail server is
|
---|
101 | not present or not responding.</para>
|
---|
102 |
|
---|
103 | </sect2>
|
---|
104 |
|
---|
105 | <sect2 role="configuration">
|
---|
106 | <title>Configuring Fetchmail</title>
|
---|
107 |
|
---|
108 | <sect3 id="fetchmail-config">
|
---|
109 | <title>Config Files</title>
|
---|
110 |
|
---|
111 | <para><filename>~/.fetchmailrc</filename></para>
|
---|
112 |
|
---|
113 | <indexterm zone="fetchmail fetchmail-config">
|
---|
114 | <primary sortas="e-AA.fetchmailrc">~/.fetchmailrc</primary>
|
---|
115 | </indexterm>
|
---|
116 |
|
---|
117 | </sect3>
|
---|
118 |
|
---|
119 | <sect3>
|
---|
120 | <title>Configuration Information</title>
|
---|
121 |
|
---|
122 | <screen><userinput>cat > ~/.fetchmailrc << "EOF"
|
---|
123 | <literal>set logfile /var/log/fetchmail.log
|
---|
124 | set no bouncemail
|
---|
125 | set postmaster root
|
---|
126 |
|
---|
127 | poll SERVERNAME :
|
---|
128 | user <replaceable><username></replaceable> pass <replaceable><password></replaceable>;
|
---|
129 | mda "/usr/bin/procmail -f %F -d %T";</literal>
|
---|
130 | EOF
|
---|
131 |
|
---|
132 | chmod -v 0600 ~/.fetchmailrc</userinput></screen>
|
---|
133 |
|
---|
134 | <para>This is an example configuration that should suffice for most people.
|
---|
135 | You can add as many users and servers as you need using the same syntax.</para>
|
---|
136 |
|
---|
137 | <para><command>man fetchmail</command>: Look for the section near
|
---|
138 | the bottom named <emphasis>CONFIGURATION EXAMPLES</emphasis>. It
|
---|
139 | gives some quick examples. There are countless other config options once
|
---|
140 | you get used to it.</para>
|
---|
141 |
|
---|
142 | </sect3>
|
---|
143 |
|
---|
144 | </sect2>
|
---|
145 |
|
---|
146 | <sect2 role="content">
|
---|
147 | <title>Contents</title>
|
---|
148 |
|
---|
149 | <segmentedlist>
|
---|
150 | <segtitle>Installed Programs</segtitle>
|
---|
151 | <segtitle>Installed Libraries</segtitle>
|
---|
152 | <segtitle>Installed Directories</segtitle>
|
---|
153 |
|
---|
154 | <seglistitem>
|
---|
155 | <seg>fetchmail and fetchmailconf</seg>
|
---|
156 | <seg>None</seg>
|
---|
157 | <seg>None</seg>
|
---|
158 | </seglistitem>
|
---|
159 | </segmentedlist>
|
---|
160 |
|
---|
161 | <variablelist>
|
---|
162 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
163 | <?dbfo list-presentation="list"?>
|
---|
164 | <?dbhtml list-presentation="table"?>
|
---|
165 |
|
---|
166 | <varlistentry id="fetchmail-prog">
|
---|
167 | <term><command>fetchmail</command></term>
|
---|
168 | <listitem>
|
---|
169 | <para>when executed as a user, this will source
|
---|
170 | <filename>~/.fetchmailrc</filename> and download the appropriate mail.
|
---|
171 | </para>
|
---|
172 | <indexterm zone="fetchmail fetchmail-prog">
|
---|
173 | <primary sortas="b-fetchmail">fetchmail</primary>
|
---|
174 | </indexterm>
|
---|
175 | </listitem>
|
---|
176 | </varlistentry>
|
---|
177 |
|
---|
178 | <varlistentry id="fetchmailconf">
|
---|
179 | <term><command>fetchmailconf</command></term>
|
---|
180 | <listitem>
|
---|
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
|
---|
185 | available.</para>
|
---|
186 | <indexterm zone="fetchmail fetchmailconf">
|
---|
187 | <primary sortas="b-fetchmailconf">fetchmailconf</primary>
|
---|
188 | </indexterm>
|
---|
189 | </listitem>
|
---|
190 | </varlistentry>
|
---|
191 |
|
---|
192 | </variablelist>
|
---|
193 |
|
---|
194 | </sect2>
|
---|
195 |
|
---|
196 | </sect1>
|
---|