]> Pileus Git - ~andy/fetchmail/blob - INSTALL
Revise some error messages so they are less confusing. Sunil Shetye.
[~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 gettext (internationalization)
43
44 Internationalization of fetchmail requires GNU gettext (libintl and
45 libiconv). Fetchmail, as of version 6.3.0, no longer ships its own
46 libintl copy.
47
48 1.4 IPv6
49
50 Building in IPv6 support *requires* an up-to-date operating system.
51 Recent Linux versions with glibc 2.1.1 or newer, FreeBSD, Solaris should
52 be fine.
53
54 If you have trouble with intl or gettext functions, try using the
55 configure option '--with-included-gettext'.
56
57
58 2. CONFIGURE
59
60 2.1 Basic options
61
62 Installing fetchmail is easy.  From within this directory, type:
63
64         ./configure
65
66 The autoconfiguration script will spend a bit of time figuring out the
67 specifics of your system.  If you want to specify a particular compiler
68 (e.g. you have gcc but want to compile with cc), set the environment
69 variable CC before you run configure.
70
71 The configure script accepts certain standard configuration options.
72 These include --prefix, --exec-prefix, --bindir, --infodir, --mandir,
73 and --srcdir.  Do 'configure --help' for more.
74
75 POP2 support is no longer compiled in by default, as POP2 is way obsolete
76 and there don't seem to be any live servers for it anymore.  You can
77 configure it back in if you want with 'configure --enable-POP2', but
78 leaving it out cuts the executable's size slightly.
79
80 Support for CompuServe's RPA authentication method (rather similar to
81 APOP) is available but also not included in the standard build.  You
82 can compile it in with 'configure --enable-RPA'.
83
84 Support for Microsoft's NTLM authentication method is also available
85 but also not included in the standard build.  You can compile it in
86 with 'configure --enable-NTLM'.
87
88 Support for authentication using RFC1731 GSSAPI is available
89 but also not included by default.  You can compile it in with
90 'configure --with-gssapi', which looks for GSSAPI support in standard
91 locations (/usr, /usr/local).  If you set --with-GSSAPI=DIR
92 you can direct the build to look for GSSAPI support under DIR.
93
94 Hooks for the OpenSSL library (see http://www.openssl.org/) are
95 included in the distribution.  To enable these, configure with
96 --with-ssl; they are not included in the standard build. Fetchmail's
97 configure script will probe some default locations for the
98 include/openssl/ssl.h file. If this doesn't work (i. e. configure prints
99 "SSL support enabled, but OpenSSL not found" and aborts), you need to
100 give the explicit prefix of your OpenSSL installation (specify the
101 directory that contains OpenSSL's "include" subdirectory), for instance:
102 "--with-ssl=/example/path" would assume that you have an
103 /example/path/include/openssl/ssl.h header file.
104
105 To specify a fallback MUA in case local port 25 doesn't respond, this is
106 not recommended, because you'll usually see differences between MTA and
107 MDA use. If you wish to proceed nonetheless, do one of:
108
109         configure --enable-fallback=procmail
110         configure --enable-fallback=sendmail
111
112 A disadvantage of using procmail is that local alias expansion
113 according to /etc/aliases won't get done if we fall back to it.
114
115 2.2 Advanced options
116
117 Specifying --with-kerberos=DIR or --with-kerberos5=DIR will tell the
118 fetchmail build process to look in DIR for Kerberos support.
119 Configure normally looks in /usr/kerberos and /usr/athena; if you
120 specify this option with an argument it will look in DIR first.
121
122 Unfortunately, there doesn't seem to be good standardization of where
123 Kerberos lives.  If your configuration doesn't match one of the four
124 that fetchmail's configure.in knows about, you may find you have to
125 hand-hack the Makefile a bit.
126
127 You may also want to hand-hack the Makefile if you're writing a custom
128 or bleeding-edge resolver library.  In that case you will probably
129 want to add -lresolv or whatever to the definition of LOADLIBS.
130
131 It is also possible to explicitly condition out the support for
132 POP3, IMAP, and ETRN (with configure arguments of --disable-POP3,
133 --disable-IMAP, and --disable-ETRN respectively).
134
135
136 3. BUILD
137
138 Run
139
140         make
141
142 This should compile fetchmail for your system.  If fetchmail fails to build
143 properly, see the FAQ section B on build-time problems.
144
145
146 4. INSTALL
147
148 Lastly, become root and run
149
150         make install
151
152 This will install fetchmail.  By default, fetchmail will be installed
153 in /usr/local/bin, with the man page in /usr/local/man/man1.  You can
154 use the configure options --bindir and --mandir to change these.
155
156 If you are tight on disk space, you can run instead
157
158         make install-strip
159
160 NOTE: If you are using an MTA other than sendmail (such as qmail,
161 exim, or smail), see the FAQ (section T) for discussion of any special
162 configuration steps that may be necessary.
163
164
165 5. SET UP A RUN CONTROL FILE
166
167 See the man page for a description of how to configure your individual
168 preferences.
169
170 If you're upgrading from popclient, see question F4 in the FAQ file.
171
172
173 6. TEST
174
175 I strongly recommend that your first fetchmail run use the -v, -a and -k
176 options, in case there is something not quite right with your server,
177 your local delivery configuration or your port 25 listener.  Also,
178 beware of aliases that direct your local mail back to the server host!
179
180 This software is known to work with the qpop/popper series of freeware
181 POP3 servers; also with the IMAP2bis and IMAP4 servers that are
182 distributed with Pine from the University of Washington; also with the
183 Cyrus IMAP server from CMU.  This covers all the servers commonly
184 hosted on Linux and *BSD systems.  It also works with the IMAP service
185 of Microsoft Exchange, despite the fact that Microsoft Exchange is
186 extremely broken (returns incorrect message lengths in LIST
187 responses).
188
189 See the FAQ, section S, for detailed advice on running with various
190 servers.
191
192
193 7. REPORTING BUGS
194
195 You should read the FAQ file question G3 before reporting a bug.
196
197
198 8. USE IT
199
200 Once you've verified your configuration, you can start fetchmail to
201 run in background and forget about it.  Enjoy!
202
203
204 END of text file INSTALL