diff --git a/server/mail/postfix.xml b/server/mail/postfix.xml
index 42159a779e..6e27e5ba29 100644
--- a/server/mail/postfix.xml
+++ b/server/mail/postfix.xml
@@ -86,13 +86,14 @@
Recommended
- ,
- , and
-
+ ,
+ , and
+
Optional
+ ,
for Email Address Internationalization (SMTPUTF8) support,
or MySQL,
,
@@ -161,8 +162,9 @@ chown -v postfix:postfix /var/mail
For all variants of the CCARGS you should ensure that -DNO_NIS is
- specified so that the build does not attempt to access an rpcsvc header
- which does not exist in BLFS.
+ specified so that the build does not attempt to access an rpcsvc
+ header which do not exist in BLFS. If is
+ not installed, -DNO_DB needs to be specified as well.
@@ -178,9 +180,20 @@ chown -v postfix:postfix /var/mail
Postfix, use the following arguments:
-CCARGS='-DNO_NIS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl'
+CCARGS="-DNO_NIS -DNO_DB \
+ -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
AUXLIBS='-lsasl2'
+
+
+ LMDB
+
+ To use LMDB with
+ Postfix, use the following arguments:
+
+
+CCARGS='-DNO_NIS -DNO_DB -DHAS_LMDB'
+AUXLIBS_LMDB='-llmdb'
@@ -191,7 +204,7 @@ AUXLIBS='-lsasl2'
Postfix, use the following arguments:
-CCARGS='-DNO_NIS -DHAS_LDAP'
+CCARGS='-DNO_NIS -DNO_DB -DHAS_LDAP'
AUXLIBS='-lldap -llber'
@@ -204,7 +217,7 @@ AUXLIBS='-lldap -llber'
Postfix, use the following arguments:
-CCARGS='-DNO_NIS -DHAS_SQLITE'
+CCARGS='-DNO_NIS -DNO_DB -DHAS_SQLITE'
AUXLIBS='-lsqlite3 -lpthread'
@@ -217,7 +230,7 @@ AUXLIBS='-lsqlite3 -lpthread'
Postfix, use the following arguments:
-CCARGS='-DNO_NIS -DHAS_MYSQL -I/usr/include/mysql'
+CCARGS='-DNO_NIS -DNO_DB -DHAS_MYSQL -I/usr/include/mysql'
AUXLIBS='-lmysqlclient -lz -lm'
@@ -230,7 +243,7 @@ AUXLIBS='-lmysqlclient -lz -lm'
Postfix, use the following arguments:
-CCARGS='-DNO_NIS -DHAS_PGSQL -I/usr/include/postgresql'
+CCARGS='-DNO_NIS -DNO_DB -DHAS_PGSQL -I/usr/include/postgresql'
AUXLIBS='-lpq -lz -lm'
@@ -244,7 +257,7 @@ AUXLIBS='-lpq -lz -lm'
Postfix, use the following arguments:
-CCARGS='-DNO_NIS -DHAS_CDB'
+CCARGS='-DNO_NIS -DNO_DB -DHAS_CDB'
AUXLIBS='</path/to/CDB>/libcdb.a'
@@ -257,7 +270,7 @@ AUXLIBS='</path/to/CDB>/libcdb.a'Postfix, use the following arguments:
-CCARGS='-DNO_NIS -DUSE_TLS -I/usr/include/openssl/'
+CCARGS='-DNO_NIS -DNO_DB -DUSE_TLS -I/usr/include/openssl/'
AUXLIBS='-lssl -lcrypto'
@@ -268,14 +281,17 @@ AUXLIBS='-lssl -lcrypto'
Adjust the following according to your needs. For example,
- if you have Cyrus SASL,
+ if you have Cyrus SASL and
+ LMDB,
install Postfix by running the following
commands:
-make CCARGS="-DNO_NIS -DUSE_TLS -I/usr/include/openssl/ \
- -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" \
+make CCARGS="-DNO_NIS -DNO_DB -DUSE_TLS -I/usr/include/openssl/ \
+ -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl \
+ -DHAS_LMDB" \
AUXLIBS="-lssl -lcrypto -lsasl2" \
+ AUXLIBS_LMDB="-llmdb" \
makefiles &&
make
@@ -377,6 +393,24 @@ EOF
should be checked and duplicate aliases removed, if present.
+
+ The BLFS editors recommend to use LMDB instead of Berkeley DB for
+ Postfix lookup tables. Add a line into
+ /etc/postfix/main.cf to make
+ postmap to encode the lookup tables in the LMDB
+ format by default:
+
+
+echo 'default_database_type = lmdb' >> /etc/postfix/main.cf
+
+
+ Note that if you are following an online tutorial to configure
+ Postfix, the tutorial may refer to a lookup table with
+ hash:/path/to/lookup_table. You should replace
+ hash with lmdb in order to use
+ a lookup table encoded in the LMDB format.
+
+
The /etc/postfix/main.cf and