- Timestamp:
- 11/21/2023 02:51:49 AM (5 months ago)
- Branches:
- 12.1, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18
- Children:
- 61936ca3
- Parents:
- c94de90
- git-author:
- Xi Ruoyao <xry111@…> (11/21/2023 02:39:54 AM)
- git-committer:
- Xi Ruoyao <xry111@…> (11/21/2023 02:51:49 AM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/mail/postfix.xml
rc94de90 r90066bf 87 87 <bridgehead renderas="sect4">Recommended</bridgehead> 88 88 <para role="recommended"> 89 <xref linkend=" db"/>,90 <xref linkend=" cyrus-sasl"/>, and91 <xref linkend="l ibnsl"/>89 <xref linkend="cyrus-sasl"/>, 90 <xref linkend="libnsl"/>, and 91 <xref linkend="lmdb"/> 92 92 </para> 93 93 94 94 <bridgehead renderas="sect4">Optional</bridgehead> 95 95 <para role="optional"> 96 <xref linkend="db"/>, 96 97 <xref linkend="icu"/> for Email Address Internationalization (SMTPUTF8) support, 97 98 <xref linkend="mariadb"/> or <ulink url="https://www.mysql.com/">MySQL</ulink>, … … 162 163 <para> 163 164 For all variants of the CCARGS you should ensure that -DNO_NIS is 164 specified so that the build does not attempt to access an rpcsvc header 165 which does not exist in BLFS. 165 specified so that the build does not attempt to access an rpcsvc 166 header which do not exist in BLFS. If <xref linkend='db'/> is 167 not installed, -DNO_DB needs to be specified as well. 166 168 </para> 167 169 </note> … … 179 181 </para> 180 182 181 <screen><literal>CCARGS='-DNO_NIS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl' 183 <screen><literal>CCARGS="-DNO_NIS -DNO_DB \ 184 -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" 182 185 AUXLIBS='-lsasl2'</literal></screen> 183 186 </sect4> 187 188 <sect4> 189 <title>LMDB</title> 190 <para> 191 To use <application>LMDB</application> with 192 <application>Postfix</application>, use the following arguments: 193 </para> 194 195 <screen><literal>CCARGS='-DNO_NIS -DNO_DB -DHAS_LMDB' 196 AUXLIBS_LMDB='-llmdb'</literal></screen> 184 197 </sect4> 185 198 … … 192 205 </para> 193 206 194 <screen><literal>CCARGS='-DNO_NIS -D HAS_LDAP'207 <screen><literal>CCARGS='-DNO_NIS -DNO_DB -DHAS_LDAP' 195 208 AUXLIBS='-lldap -llber'</literal></screen> 196 209 … … 205 218 </para> 206 219 207 <screen><literal>CCARGS='-DNO_NIS -D HAS_SQLITE'220 <screen><literal>CCARGS='-DNO_NIS -DNO_DB -DHAS_SQLITE' 208 221 AUXLIBS='-lsqlite3 -lpthread'</literal></screen> 209 222 … … 218 231 </para> 219 232 220 <screen><literal>CCARGS='-DNO_NIS -D HAS_MYSQL -I/usr/include/mysql'233 <screen><literal>CCARGS='-DNO_NIS -DNO_DB -DHAS_MYSQL -I/usr/include/mysql' 221 234 AUXLIBS='-lmysqlclient -lz -lm'</literal></screen> 222 235 … … 231 244 </para> 232 245 233 <screen><literal>CCARGS='-DNO_NIS -D HAS_PGSQL -I/usr/include/postgresql'246 <screen><literal>CCARGS='-DNO_NIS -DNO_DB -DHAS_PGSQL -I/usr/include/postgresql' 234 247 AUXLIBS='-lpq -lz -lm'</literal></screen> 235 248 … … 245 258 </para> 246 259 247 <screen><literal>CCARGS='-DNO_NIS -D HAS_CDB'260 <screen><literal>CCARGS='-DNO_NIS -DNO_DB -DHAS_CDB' 248 261 AUXLIBS='<replaceable></path/to/CDB></replaceable>/libcdb.a'</literal></screen> 249 262 … … 258 271 </para> 259 272 260 <screen><literal>CCARGS='-DNO_NIS -D USE_TLS -I/usr/include/openssl/'273 <screen><literal>CCARGS='-DNO_NIS -DNO_DB -DUSE_TLS -I/usr/include/openssl/' 261 274 AUXLIBS='-lssl -lcrypto'</literal></screen> 262 275 </sect4> … … 269 282 <para> 270 283 Adjust the following according to your needs. For example, 271 if you have <application>Cyrus SASL</application>, 284 if you have <application>Cyrus SASL</application> and 285 <application>LMDB</application>, 272 286 install <application>Postfix</application> by running the following 273 287 commands: 274 288 </para> 275 289 276 <screen><userinput>make CCARGS="-DNO_NIS -DUSE_TLS -I/usr/include/openssl/ \ 277 -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" \ 290 <screen><userinput>make CCARGS="-DNO_NIS -DNO_DB -DUSE_TLS -I/usr/include/openssl/ \ 291 -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl \ 292 -DHAS_LMDB" \ 278 293 AUXLIBS="-lssl -lcrypto -lsasl2" \ 294 AUXLIBS_LMDB="-llmdb" \ 279 295 makefiles && 280 296 make</userinput></screen> … … 376 392 the above command appends these aliases to it if it exists. This file 377 393 should be checked and duplicate aliases removed, if present. 394 </para> 395 396 <para> 397 The BLFS editors recommend to use LMDB instead of Berkeley DB for 398 Postfix lookup tables. Add a line into 399 <filename>/etc/postfix/main.cf</filename> to make 400 <command>postmap</command> to encode the lookup tables in the LMDB 401 format by default: 402 </para> 403 404 <screen role="root"><userinput>echo 'default_database_type = lmdb' >> /etc/postfix/main.cf</userinput></screen> 405 406 <para> 407 Note that if you are following an online tutorial to configure 408 Postfix, the tutorial may refer to a lookup table with 409 <literal>hash:/path/to/lookup_table</literal>. You should replace 410 <literal>hash</literal> with <literal>lmdb</literal> in order to use 411 a lookup table encoded in the LMDB format. 378 412 </para> 379 413
Note:
See TracChangeset
for help on using the changeset viewer.