Fix alias resolution through podop

master
kaiyou 6 years ago
parent 6d088504bd
commit 0d52364eac

@ -76,7 +76,7 @@ def postfix_alias_map(alias):
else: else:
alias_obj = models.Alias.resolve(localpart, domain) alias_obj = models.Alias.resolve(localpart, domain)
if alias_obj: if alias_obj:
return flask.jsonify(alias_obj.destination) return flask.jsonify(",".join(alias_obj.destination))
user_obj = models.User.query.get(email) user_obj = models.User.query.get(email)
if user_obj: if user_obj:
return flask.jsonify(user_obj.destination) return flask.jsonify(user_obj.destination)

Loading…
Cancel
Save