Mercurial > dovecot > original-hg > dovecot-1.2
annotate INSTALL @ 1590:6bf54ebc16af HEAD
CPPFLAGS/LDFLAGS examples were missing -I / -L options..
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 01 Jul 2003 22:17:02 +0300 |
parents | a3de39b92838 |
children | 587f7911b93d |
rev | line source |
---|---|
1157 | 1 Build Instructions |
428 | 2 ------------------ |
3 | |
4 For most people, the usual: | |
5 | |
6 ./configure | |
7 make | |
8 sudo make install | |
9 | |
10 is enough. This installs Dovecot under /usr/local. You must also rename the | |
11 configuration file to get it to work: | |
12 | |
13 mv /usr/local/etc/dovecot-example.conf /usr/local/etc/dovecot.conf | |
14 | |
1317 | 15 Read through it, make needed modifications and start dovecot binary. |
429 | 16 doc/configuration.txt tells you more about configuring Dovecot. |
17 | |
1580
a3de39b92838
Say something about CPPFLAGS and LDFLAGS.
Timo Sirainen <tss@iki.fi>
parents:
1577
diff
changeset
|
18 If you have installed some libraries into locations which require special |
a3de39b92838
Say something about CPPFLAGS and LDFLAGS.
Timo Sirainen <tss@iki.fi>
parents:
1577
diff
changeset
|
19 include or library paths, you can give them in CPPFLAGS and LDFLAGS |
a3de39b92838
Say something about CPPFLAGS and LDFLAGS.
Timo Sirainen <tss@iki.fi>
parents:
1577
diff
changeset
|
20 environment variables. For example: |
a3de39b92838
Say something about CPPFLAGS and LDFLAGS.
Timo Sirainen <tss@iki.fi>
parents:
1577
diff
changeset
|
21 |
1590
6bf54ebc16af
CPPFLAGS/LDFLAGS examples were missing -I / -L options..
Timo Sirainen <tss@iki.fi>
parents:
1580
diff
changeset
|
22 CPPFLAGS=-I/opt/openssl/include LDFLAGS=-L/opt/openssl/lib ./configure |
1580
a3de39b92838
Say something about CPPFLAGS and LDFLAGS.
Timo Sirainen <tss@iki.fi>
parents:
1577
diff
changeset
|
23 |
428 | 24 |
25 SSL/TLS | |
26 ------- | |
27 | |
623 | 28 Dovecot supports both GNUTLS and OpenSSL. Dovecot prefers GNUTLS if it's |
29 found, but fallbacks to OpenSSL. If you wish to force using OpenSSL, give | |
30 --with-ssl=openssl to configure. | |
31 | |
32 For GNUTLS support you need version 0.5.5 or later. You can get GNUTLS from | |
33 http://www.gnutls.org/ | |
428 | 34 |
429 | 35 |
1157 | 36 Optional Configure Options |
428 | 37 -------------------------- |
38 | |
39 You can get a full list with: | |
40 | |
41 ./configure --help | |
42 | |
43 The options are listed like --with-thing or --enable-thing, usually they're | |
44 also enabled by default. You can disable them with --without-thing or | |
45 --disable-thing. | |
46 | |
47 Besides the standard options, Dovecot has added these: | |
48 | |
49 --enable-ipv6 Enable IPv6 support (default) | |
50 | |
51 Enable IPv6 support. By default it's enabled if system is detected to | |
52 support it. | |
53 | |
54 --with-file-offset-size=BITS | |
55 | |
56 Specifies if we use 32bit or 64bit file offsets. 64bit is default if system | |
57 supports it (Linux and Solaris does). You most likely won't have mails | |
58 larger than 2GB, so you may want to drop this to 32bit for a bit smaller | |
59 disk and memory usage. | |
60 | |
439
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
429
diff
changeset
|
61 --with-mem-align=BYTES |
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
429
diff
changeset
|
62 |
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
429
diff
changeset
|
63 Specifies memory alignment, needed with many non-x86 systems and should |
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
429
diff
changeset
|
64 speed up x86 systems too. Default is 8 with everyone to make sure 64bit |
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
429
diff
changeset
|
65 memory accessing work. Currently it should also be safe to set to 4 when |
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
429
diff
changeset
|
66 using 32bit file offets. With x86 it could be 1 as well if you want to save |
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
429
diff
changeset
|
67 a bit of disk space (in .imap.index.data file) and memory. |
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
429
diff
changeset
|
68 |
1157 | 69 --with-rawlog Build support for logging user traffic |
70 | |
71 When Dovecot is compiled with this option and user's home directory | |
1577 | 72 contains dovecot.rawlog directory, all IMAP connections are logged into |
1157 | 73 timstamp-pid.in and .out files. This is mostly useful for debugging. |
74 | |
75 --enable-debug Enable some extra checks for debugging | |
439
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
429
diff
changeset
|
76 |
1157 | 77 This is mostly useful for developers. It does quite a lot of unnecessary |
78 work but should catch some programming mistakes more quickly. | |
79 | |
80 --with-ssl=gnutls|openssl Build with GNUTLS (default) or OpenSSL | |
81 --with-ssldir=DIR SSL base directory for certificates (/etc/ssl) | |
82 | |
83 SSL options. | |
84 | |
85 --with-pop3d Build POP3 server (default) | |
86 | |
87 Build pop3d binary. It still has to be separately enabled from configuration | |
88 file. | |
439
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
429
diff
changeset
|
89 |
428 | 90 --with-passwd Build with /etc/passwd support (default) |
91 --with-passwd-file Build with passwd-like file support (default) | |
92 --with-shadow Build with shadow password support (default) | |
93 --with-pam Build with PAM support (default) | |
1157 | 94 --with-ldap Build with LDAP support |
428 | 95 --with-vpopmail Build with vpopmail support (default) |
1157 | 96 --with-static-userdb Build with static userdb support (default) |
1283
2d8af547a8b4
Added PostgreSQL support, patch by Alex Howansky
Timo Sirainen <tss@iki.fi>
parents:
1190
diff
changeset
|
97 --with-pgsql Build with PostgreSQL support |
428 | 98 |
99 Specify which authentication modules to use. Disabling them give you a few | |
100 bytes smaller binary, but not much else. | |
101 | |
1157 | 102 |
103 Dynamic Authentication Modules | |
104 ------------------------------ | |
105 | |
106 Dovecot can also dynamically load authentication modules from | |
107 $prefix/lib/dovecot/auth/ directory. Binary packages builders should use | |
108 them for auth modules which require external libraries (eg. LDAP and | |
109 vpopmail). There's no standard way to build them as modules currently, but | |
110 something like this should work: | |
428 | 111 |
1465
03dd87873a81
Added support for dynamically loadable imap/pop3 modules.
Timo Sirainen <tss@iki.fi>
parents:
1317
diff
changeset
|
112 gcc -shared -fPIC -DHAVE_CONFIG_H -DUSERDB_LDAP -DPASSDB_LDAP \ |
1159 | 113 -I../.. -I../lib -I../lib-settings \ |
1157 | 114 db-ldap.c userdb-ldap.c passdb-ldap.c -o ldap.so \ |
115 ../lib-settings/libsettings.a -lldap | |
116 | |
1465
03dd87873a81
Added support for dynamically loadable imap/pop3 modules.
Timo Sirainen <tss@iki.fi>
parents:
1317
diff
changeset
|
117 gcc -shared -fPIC -DHAVE_CONFIG_H -DUSERDB_PGSQL -DPASSDB_PGSQL \ |
1283
2d8af547a8b4
Added PostgreSQL support, patch by Alex Howansky
Timo Sirainen <tss@iki.fi>
parents:
1190
diff
changeset
|
118 -I../.. -I../lib -I../lib-settings -I/usr/include/postgresql \ |
2d8af547a8b4
Added PostgreSQL support, patch by Alex Howansky
Timo Sirainen <tss@iki.fi>
parents:
1190
diff
changeset
|
119 db-pgsql.c userdb-pgsql.c passdb-pgsql.c -o pgsql.so \ |
2d8af547a8b4
Added PostgreSQL support, patch by Alex Howansky
Timo Sirainen <tss@iki.fi>
parents:
1190
diff
changeset
|
120 ../lib-settings/libsettings.a -L/usr/lib/postgresql -lpq |
2d8af547a8b4
Added PostgreSQL support, patch by Alex Howansky
Timo Sirainen <tss@iki.fi>
parents:
1190
diff
changeset
|
121 |
1465
03dd87873a81
Added support for dynamically loadable imap/pop3 modules.
Timo Sirainen <tss@iki.fi>
parents:
1317
diff
changeset
|
122 gcc -shared -fPIC -DHAVE_CONFIG_H -DUSERDB_VPOPMAIL -DPASSDB_VPOPMAIL \ |
03dd87873a81
Added support for dynamically loadable imap/pop3 modules.
Timo Sirainen <tss@iki.fi>
parents:
1317
diff
changeset
|
123 -I../.. -I../lib userdb-vpopmail.c passdb-vpopmail.c -o vpopmail.so \ |
03dd87873a81
Added support for dynamically loadable imap/pop3 modules.
Timo Sirainen <tss@iki.fi>
parents:
1317
diff
changeset
|
124 -lvpopmail |
1157 | 125 |
1283
2d8af547a8b4
Added PostgreSQL support, patch by Alex Howansky
Timo Sirainen <tss@iki.fi>
parents:
1190
diff
changeset
|
126 Including libsettings.a in ldap.so and pgsql.so is kind of annoying, but it's |
2d8af547a8b4
Added PostgreSQL support, patch by Alex Howansky
Timo Sirainen <tss@iki.fi>
parents:
1190
diff
changeset
|
127 not needed elsewhere in dovecot-auth. |
1465
03dd87873a81
Added support for dynamically loadable imap/pop3 modules.
Timo Sirainen <tss@iki.fi>
parents:
1317
diff
changeset
|
128 |
03dd87873a81
Added support for dynamically loadable imap/pop3 modules.
Timo Sirainen <tss@iki.fi>
parents:
1317
diff
changeset
|
129 Dynamic IMAP and POP3 Modules |
03dd87873a81
Added support for dynamically loadable imap/pop3 modules.
Timo Sirainen <tss@iki.fi>
parents:
1317
diff
changeset
|
130 ----------------------------- |
03dd87873a81
Added support for dynamically loadable imap/pop3 modules.
Timo Sirainen <tss@iki.fi>
parents:
1317
diff
changeset
|
131 |
03dd87873a81
Added support for dynamically loadable imap/pop3 modules.
Timo Sirainen <tss@iki.fi>
parents:
1317
diff
changeset
|
132 If imap_use_modules or pop3_use_modules is set to yes, Dovecot will load all |
03dd87873a81
Added support for dynamically loadable imap/pop3 modules.
Timo Sirainen <tss@iki.fi>
parents:
1317
diff
changeset
|
133 *.so modules from directory pointed by imap_modules or pop3_modules. These |
03dd87873a81
Added support for dynamically loadable imap/pop3 modules.
Timo Sirainen <tss@iki.fi>
parents:
1317
diff
changeset
|
134 modules can do anything, they're only expected to contain <module name>_init |
03dd87873a81
Added support for dynamically loadable imap/pop3 modules.
Timo Sirainen <tss@iki.fi>
parents:
1317
diff
changeset
|
135 and <module name>_deinit functions which are called. |