You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-11-27 22:18:22 +02:00
Provide a more generic skeletton for postfix virtual lookups
This commit is contained in:
@@ -71,6 +71,26 @@ def postfix_alias_map(alias):
|
|||||||
flask.abort(404)
|
flask.abort(404)
|
||||||
|
|
||||||
|
|
||||||
|
@internal.route("/postfix/alias/domain/<domain>")
|
||||||
|
def postfix_alias_domain(domain):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@internal.route("/postfix/alias/map/<alias>")
|
||||||
|
def postfix_alias_map(alias):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@internal.route("/postfix/mailbox/domain/<domain>")
|
||||||
|
def postfix_mailbox_domain(domain):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@internal.route("/postfix/mailbox/map/<mailbox>")
|
||||||
|
def postfix_mailbox_map(domain):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
@internal.route("/dovecot/auth/passdb/<user_email>")
|
@internal.route("/dovecot/auth/passdb/<user_email>")
|
||||||
def dovecot_passdb_dict(user_email):
|
def dovecot_passdb_dict(user_email):
|
||||||
user = models.User.query.get(user_email) or flask.abort(403)
|
user = models.User.query.get(user_email) or flask.abort(403)
|
||||||
|
|||||||
@@ -56,9 +56,9 @@ smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
|
|||||||
|
|
||||||
# The alias map actually returns both aliases and local mailboxes, which is
|
# The alias map actually returns both aliases and local mailboxes, which is
|
||||||
# required for reject_unlisted_sender to work properly
|
# required for reject_unlisted_sender to work properly
|
||||||
virtual_alias_maps = ${podop}alias
|
virtual_alias_maps = ${podop}alias/domain
|
||||||
virtual_mailbox_domains = ${podop}domains
|
virtual_mailbox_domains = ${podop}mailbox/domain
|
||||||
virtual_mailbox_maps = ${podop}mailbox
|
virtual_mailbox_maps = ${podop}mailbox/map
|
||||||
|
|
||||||
# Mails are transported if required, then forwarded to Dovecot for delivery
|
# Mails are transported if required, then forwarded to Dovecot for delivery
|
||||||
relay_domains = ${podop}transport
|
relay_domains = ${podop}transport
|
||||||
|
|||||||
Reference in New Issue
Block a user