]> Pileus Git - ~andy/fetchmail/blob - INSTALL
3a623b9a8f40e40a3da2920604be0505e97fed40
[~andy/fetchmail] / INSTALL
1 INSTALL Instructions for fetchmail
2 ==================================
3
4 If you are installing from the subversion repository, see README.svn for
5 further instructions on how to set up the checked out repository.
6
7 If you have installed binaries (e.g. from a Linux RPM or DPKG, Solaris
8 package or FreeBSD port), you can skip to step 5.
9
10 The Frequently Asked Questions list, included as the file FAQ in this
11 distributions, answers the most common questions about configuring and
12 running fetchmail.
13
14 1. USEFUL THINGS TO INSTALL FIRST
15
16 1.1 OTP/OPIE
17
18 If you want support for RFC1938-compliant one-time passwords, you'll
19 need to install Craig Metz's OPIE libraries first and *make sure
20 they're on the normal library path* where configure will find them.  Then
21 configure with --enable-OPIE, and fetchmail build process will detect
22 them and compile appropriately.
23
24 Note: there is no point in doing this unless your server is
25 OTP-enabled.  To test this, telnet to the server port and give it
26 a valid USER id.  If the OK response includes the string "otp-",
27 you should install OPIE.  You need version 2.32 or better.
28
29 The OPIE library sources are available at http://www.inner.net/pub/opie/
30 You can also find OPIE and IPV6-capable servers there.
31
32 1.2 OpenSSL
33
34 If you are installing OpenSSL yourself, it is recommended that you build
35 shared OpenSSL libraries, it works better and updating OpenSSL does not
36 then require you to reinstall all applications that use OpenSSL.
37
38 Try after unpacking OpenSSL:
39
40         ./config shared && make && make test && make install
41
42 1.3 IPv6
43
44 Building in IPv6 support *requires* an up-to-date operating system.
45 Recent Linux versions with glibc 2.1.1 or newer, FreeBSD, Solaris should
46 be fine.
47
48 If you have trouble with intl or gettext functions, try using the
49 configure option '--with-included-gettext'.
50
51
52 2. CONFIGURE
53
54 2.1 Basic options
55
56 Installing fetchmail is easy.  From within this directory, type:
57
58         ./configure
59
60 The autoconfiguration script will spend a bit of time figuring out the
61 specifics of your system.  If you want to specify a particular compiler
62 (e.g. you have gcc but want to compile with cc), set the environment
63 variable CC before you run configure.
64
65 The configure script accepts certain standard configuration options.
66 These include --prefix, --exec-prefix, --bindir, --infodir, --mandir,
67 and --srcdir.  Do 'configure --help' for more.
68
69 POP2 support is no longer compiled in by default, as POP2 is way obsolete
70 and there don't seem to be any live servers for it anymore.  You can
71 configure it back in if you want with 'configure --enable-POP2', but
72 leaving it out cuts the executable's size slightly.
73
74 Support for CompuServe's RPA authentication method (rather similar to
75 APOP) is available but also not included in the standard build.  You
76 can compile it in with 'configure --enable-RPA'.
77
78 Support for Microsoft's NTLM authentication method is also available
79 but also not included in the standard build.  You can compile it in
80 with 'configure --enable-NTLM'.
81
82 Support for authentication using RFC1731 GSSAPI is available
83 but also not included by default.  You can compile it in with
84 'configure --with-gssapi', which looks for GSSAPI support in standard
85 locations (/usr, /usr/local).  If you set --with-GSSAPI=DIR
86 you can direct the build to look for GSSAPI support under DIR.
87
88 Hooks for the OpenSSL library (see http://www.openssl.org/) are
89 included in the distribution.  To enable these, configure with
90 --with-ssl; they are not included in the standard build. Fetchmail's
91 configure script will probe some default locations for the
92 include/openssl/ssl.h file. If this doesn't work (i. e. configure prints
93 "SSL support enabled, but OpenSSL not found" and aborts), you need to
94 give the explicit prefix of your OpenSSL installation (specify the
95 directory that contains OpenSSL's "include" subdirectory), for instance:
96 "--with-ssl=/example/path" would assume that you have an
97 /example/path/include/openssl/ssl.h header file.
98
99 To specify a fallback MUA in case local port 25 doesn't respond, this is
100 not recommended, because you'll usually see differences between MTA and
101 MDA use. If you wish to proceed nonetheless, do one of:
102
103         configure --enable-fallback=procmail
104         configure --enable-fallback=sendmail
105
106 A disadvantage of using procmail is that local alias expansion
107 according to /etc/aliases won't get done if we fall back to it.
108
109 2.2 Advanced options
110
111 Specifying --with-kerberos=DIR or --with-kerberos5=DIR will tell the
112 fetchmail build process to look in DIR for Kerberos support.
113 Configure normally looks in /usr/kerberos and /usr/athena; if you
114 specify this option with an argument it will look in DIR first.
115
116 Unfortunately, there doesn't seem to be good standardization of where
117 Kerberos lives.  If your configuration doesn't match one of the four
118 that fetchmail's configure.in knows about, you may find you have to
119 hand-hack the Makefile a bit.
120
121 You may also want to hand-hack the Makefile if you're writing a custom
122 or bleeding-edge resolver library.  In that case you will probably
123 want to add -lresolv or whatever to the definition of LOADLIBS.
124
125 It is also possible to explicitly condition out the support for
126 POP3, IMAP, and ETRN (with configure arguments of --disable-POP3,
127 --disable-IMAP, and --disable-ETRN respectively).
128
129
130 3. BUILD
131
132 Run
133
134         make
135
136 This should compile fetchmail for your system.  If fetchmail fails to build
137 properly, see the FAQ section B on build-time problems.
138
139
140 4. INSTALL
141
142 Lastly, become root and run
143
144         make install
145
146 This will install fetchmail.  By default, fetchmail will be installed
147 in /usr/local/bin, with the man page in /usr/local/man/man1.  You can
148 use the configure options --bindir and --mandir to change these.
149
150 If you are tight on disk space, you can run instead
151
152         make install-strip
153
154 NOTE: If you are using an MTA other than sendmail (such as qmail,
155 exim, or smail), see the FAQ (section T) for discussion of any special
156 configuration steps that may be necessary.
157
158
159 5. SET UP A RUN CONTROL FILE
160
161 See the man page for a description of how to configure your individual
162 preferences.
163
164 If you're upgrading from popclient, see question F4 in the FAQ file.
165
166
167 6. TEST
168
169 I strongly recommend that your first fetchmail run use the -v, -a and -k
170 options, in case there is something not quite right with your server,
171 your local delivery configuration or your port 25 listener.  Also,
172 beware of aliases that direct your local mail back to the server host!
173
174 This software is known to work with the qpop/popper series of freeware
175 POP3 servers; also with the IMAP2bis and IMAP4 servers that are
176 distributed with Pine from the University of Washington; also with the
177 Cyrus IMAP server from CMU.  This covers all the servers commonly
178 hosted on Linux and *BSD systems.  It also works with the IMAP service
179 of Microsoft Exchange, despite the fact that Microsoft Exchange is
180 extremely broken (returns incorrect message lengths in LIST
181 responses).
182
183 See the FAQ, section S, for detailed advice on running with various
184 servers.
185
186
187 7. REPORTING BUGS
188
189 You should read the FAQ file question G3 before reporting a bug.
190
191
192 8. USE IT
193
194 Once you've verified your configuration, you can start fetchmail to
195 run in background and forget about it.  Enjoy!
196
197
198 END of text file INSTALL