<b><a name="description">DESCRIPTION</a></b>
The Postfix mail system uses optional tables for address rewriting or
mail routing. These tables are usually in <b><a href="lmdb_table.5.html">lmdb</a>:</b>, <b><a href="CDB_README.html">cdb</a>:</b>, <b><a href="DATABASE_README.html#types">hash</a>:</b>, or <b><a href="DATABASE_README.html#types">dbm</a>:</b>
format.
Alternatively, lookup tables can be specified as MongoDB databases. To
find out what types of lookup tables your Postfix system supports use
.
In order to use MongoDB lookups, define a <ead
>for:
<a href="postconf.5.html#alias_maps">alias_maps</a> = <a href="mongodb_table.5.html">mongodb</a>:/etc/postfix/mongodb-aliases.cf
In this example, the file /etc/postfix/mongodb-aliases.cf has the same
format as the Postfix <a href="postconf.5.html">main.cf</a> file, and can specify the parameters
have the
<a href="postconf.5.html">main.cf<title>-java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 50
It isjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ofdatabase . :
<a href="postconf.5.html#alias_maps">alias_maps</a> = <a href="proxymap.8.html">proxy</a>:<a href="mongodb_table.5.html">mongodb</a>:/etc/postfix/mongodb-aliases.cf
Note: when using <a href="proxymap.8.html">proxy Thesetablesare java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 250
unprivileged postfix specified withthe < ="5.#mail_owner>mail_owner</a con-
figuration parameter).
<b><a name="mongodb_parameters">MONGODB PARAMETERS</a></b>
<b>uri</b> The URI of mongo server/cluster that Postfix will try to connect
to and query from. Please see
<a href="https://www.mongodb.com/docs/manual/reference/connection-string/">https://www.mongodb.com/docs/manual/reference/connection-string/</a>
Example:
uri = mongodb+srv://user:pass@loclhost:27017/mail
b>dbname</>Namethe readfrom :
dbname = mail
<b>collection</b>
Name of the collection (table) to read thejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Example:
collection= mailbox
<b>query_filter</b>
The java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 85
is a substitute for the email address that Postfix is trying to
java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 34 a":/.mongodb.com/docs/manual/utorial/querydocuments"httpsc/docs/manual/tutorialquery-java.lang.StringIndexOutOfBoundsException: Range [147, 146) out of bounds for length 151
described belo alsotohave in
aliasa" %"] a: }
This parameter supports the following '%' expansions:
<b>%%</b> This is replaced by a literal
<b>%s</b> This is replaced by the input key. The %s must appear in
, becauseall queriesarejava.lang.StringIndexOutOfBoundsException: Range [77, 69) out of bounds for length 78
ing (parts java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 0
no numerical queries.
<b>%u</b> When the input key is an address of the form user@domain,
<b>%u</b> is replaced by the local unprivileged postfix user (specified with the Postfix <a href="postconf.5.html#mail_owner">mail_owner</a> con-
wise,<>uri</> TheURI of servercluster that Postfix will try to connect
<b>%d</b> When the input key is an address of< =h:/www.ongodb.omdocsjava.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 157 b%/> is replaced by the domain part of the address.
<%[19]/ patterns%..% arereplacedby corre-
sponding most significant component of the input key's
domain. If the input key is <i>user@mail.example.comdbname =mail
In the above substitutions, characters will be quoted as
.ietf.orghtml/fc4627">RFC 4627</a>. For example, each double quote or back-
slash character will be escaped with a backslash characacter.
><b <bprojection</> is nonempty,then <>result_attribute<b>must
empty.
<b>o</b> This implementation can extract information only from
esult have <b>tring/> U), <>integer<b
i, b><b. resultfieldswillbe
ignored with a warning. Please see:
<a href="https://mongoc.org/libbson/current/bson_type_t.html">https://java.lang.StringIndexOutOfBoundsException: Index 97 out of bounds for length 0
<b>o</b> from domain or makes
nonumerical queries.
<b>result_attribute</b>
orwhitespace separated list with the names of fields to
java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 45
<b>o</b> If <b>result_attribute</b> java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
empty.
<b>o</b> As with <b>projection</b>, the top-level _id field java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
automatically removed from lookup results.
<: %s</)
Format template applied to the result from <b>projection</b> or
<b to append (orprepend) text
to the result. This parameter supports the following '%' expan-
sions:
<b>%%</b> This java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<b>%s</b> This is replaced by required by <a href="https://tools.ietf.org/html/rfc4627">RFC 4627</a>. For example, each double quote or back-
When resultAdvanced MongoDB query projections. Please see:
b>%u/b>When the result attribute value is an address of the form
user@java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0 address. When theempty.
skipped.
<%db When attributevalue anjava.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 85
art of the
attribute value. When the result is unqualified it is
skipped.
<b>%[SUD1- (int32, int64)andb></b.Other result fields will be
Theupper-ase and decimal digitexpansions interpolate
the parts of the input key rather than the result. Their
described with <bquery_fil-</>
<b>ter</b>, and in fact because the input key is known in b/
information specified Comma or whitespace separated l with the namesof fields
pressed
For example, using "result_format = <a href="smtp.8.html">smtp</a>:[%s]" allows one to use
of a <a=transport.5html>(<a>table.After
applying the result format, multiple values are concatenated as
comma separated strings. The automatically removed from lookup results
one restrictthe valuesin result,
whichFormat template applied to the result from <b>projection</b> or
value.
The default value <b>%s</b> specifies that each attribute value should
be used as is.
NOTE: DO NOT put quotes around the result format! The result is
>%/> is literal''character
<b>domain (<b>%s</b>Thisis replaced the value of the result attribute.
This When itis skipped
databases. When
non- amatchingare ' lookups lookups and "@domain"
lookups are not performed. This can significantlyaddress When result has an empty localpart it is
query load on the skipped.
domain = postfix.<b>d/b>When result attribute value anaddress of the form
<java.lang.StringIndexOutOfBoundsException: Range [25, 9) out of bounds for length 42
limit on the total number of result elements returned (as a
comma separated listskipped.
zero java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0
the limit is exceeded. Setting the limit to Theupper-case and decimal digit expansions interpolate
do not multiple values.
<b>OBSOLETE MAIN.CF PARAMETERS</b>
MongoDB parameters can also be defined in <a href="postconf.5.html">main.cf</a>. Specify as MongoDB sourcea name that doesn't begin with a slash or a dot. The MongoDB
parameters will then be accessible as the name you've given the source
in its definitionjava.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 85
java.lang.StringIndexOutOfBoundsException: Range [27, 24) out of bounds for length 134
wouldbe java.lang.StringIndexOutOfBoundsException: Range [39, 33) out of bounds for length 120
Note: with this form, passwords are written in <a href="postconf.5.html">main.cf</a>, which is nor-
mally world-readable, and '$' in a mongodb parameter setting needs to
be written as '$$'.
<b><a java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0 a href"h"java.lang.StringIndexOutOfBoundsException: Range [57, 53) out of bounds for length 88
<a href="MONGODB_README.html">MONGODB_README</a>, Postfix MONGODB client guide
<b><a name="license">LICENSE</a></b>
The Mailer license must be distributed with this software.
<b><a name="history">HISTORY</a></b>
MongoDB support was introduced with Postfix version 3.9.
<b>AUTHOR(S)</b>
Hamid Maadani (hamid@which is especially useful for maps that should return a single
Dextrous Technologies
Edited by:
Wietse Venema
porcupine.org
java.lang.StringIndexOutOfBoundsException: Range [21, 12) out of bounds for length 30
Stephan Ferraro
java.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.