Rectify decleration of domain_name

master
Tim Möhlmann 6 years ago committed by GitHub
parent 2d382f2d67
commit aed80a74fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,7 +27,7 @@ def postfix_alias_map(alias):
@internal.route("/postfix/transport/<email>") @internal.route("/postfix/transport/<email>")
def postfix_transport(email): def postfix_transport(email):
localpart, domain = models.Email.resolve_domain(email) localpart, domain_name = models.Email.resolve_domain(email)
relay = models.Relay.query.get(domain_name) or flask.abort(404) relay = models.Relay.query.get(domain_name) or flask.abort(404)
return flask.jsonify("smtp:[{}]".format(relay.smtp)) return flask.jsonify("smtp:[{}]".format(relay.smtp))

Loading…
Cancel
Save