|
|
@ -108,7 +108,7 @@ def postfix_recipient_map(recipient):
|
|
|
|
|
|
|
|
|
|
|
|
This is meant for bounces to go back to the original sender.
|
|
|
|
This is meant for bounces to go back to the original sender.
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
srs = srslib.SRS(flask.current_app.config["SECRET_KEY"])
|
|
|
|
srs = srslib.SRS(flask.current_app.srs_key)
|
|
|
|
if srslib.SRS.is_srs_address(recipient):
|
|
|
|
if srslib.SRS.is_srs_address(recipient):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
return flask.jsonify(srs.reverse(recipient))
|
|
|
|
return flask.jsonify(srs.reverse(recipient))
|
|
|
@ -123,7 +123,7 @@ def postfix_sender_map(sender):
|
|
|
|
|
|
|
|
|
|
|
|
This is for bounces to come back the reverse path properly.
|
|
|
|
This is for bounces to come back the reverse path properly.
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
srs = srslib.SRS(flask.current_app.config["SECRET_KEY"])
|
|
|
|
srs = srslib.SRS(flask.current_app.srs_key)
|
|
|
|
domain = flask.current_app.config["DOMAIN"]
|
|
|
|
domain = flask.current_app.config["DOMAIN"]
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
localpart, domain_name = models.Email.resolve_domain(sender)
|
|
|
|
localpart, domain_name = models.Email.resolve_domain(sender)
|
|
|
|