MONGODB_TABLE(5) File Formats Manual MONGODB_TABLE(5) (NAME) mongodb_table - MongoDB Postfix (SYNOPSIS) postmap -q "string" mongodb:/etc/postfix/filename postmap -q - mongodb:/etc/postfix/filename (DESCRIPTION) Postfix . lmdb: cdb: hash: dbm: . MongoDB . Postfix "postconf -m" . MongoDB MongoDB main.cf : alias_maps = mongodb:/etc/postfix/mongodb-aliases.cf /etc/postfix/mongodb-aliases.cf main.cf Postfix . main.cf " MAIN.CF" . proxy:mongodb . : alias_maps = proxy:mongodb:/etc/postfix/mongodb-aliases.cf : proxy:mongodb:/file postfix ( mail_owner Postfix ) . MONGODB (MONGODB PARAMETERS) uri (URI) mongo Postfix . : https://www.mongodb.com/docs/manual/reference/connection-string : uri = mongodb+srv://user:pass@loclhost:27017/mail dbname . : dbname = mail collection () . : collection = mailbox query_filter MongoDB %s Postfix . : https://www.mongodb.com/docs/manual/tutorial/query-documents : query_filter = {"$or": [{"username": "%s"}, {"alias.address": "%s"}], "active": 1} '%' : %% '%' . %s . %s Postfix ( ) . Postfix . %u user@domain %u . %u . %d user@domain %d . %[1-9] %1 %2 ... %9 . user@mail.example.com %1 com %2 example %3 mail . RFC 4627 . . projection MongoDB. : https://www.mongodb.com/docs/manual/tutorial/project-fields-from-query-results o projection result_attribute . o string (UTF8) integer (int32 int64) array . . : https://mongoc.org/libbson/current/bson_type_t.html o result_attribute _id ( OID) . result_attribute . o result_attribute projection . o projection _id ( OID) . result_format (: %s) projection result_attribute. ( ) . '%' : %% '%' . %s . . %u user@domain %u . . %d user@domain %d . (unqualified) . %[SUD1-9] . query_filter . "result_format = smtp:[%s]" mailHost transport(5) . . expansion_limit . %s . : ! JSON . domain (: ) "type:table" . (fully qualified) ** : 'user' "@domain" . . : domain = postfix.org, hash:/etc/postfix/searchdomains expansion_limit (: 0) ( ) . . . 1 . MAIN.CF (OBSOLETE MAIN.CF PARAMETERS) MongoDB main.cf . MongoDB . MongoDB (_) . "mongodb:mongodb_source" "uri" main.cf "mongodb_source_uri" . : main.cf '$' mongodb '$$' . (SEE ALSO) postmap(1) Postfix postconf(5) (README FILES) "postconf readme_directory" "postconf html_directory" . DATABASE_README Postfix MONGODB_README MONGODB Postfix (LICENSE) Secure Mailer . (HISTORY) MongoDB 3.9 Postfix . (AUTHORS) Hamid Maadani (hamid@dexo.tech) Dextrous Technologies, LLC : Wietse Venema porcupine.org : Stephan Ferraro Aionda GmbH MONGODB_TABLE(5)