You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-08-10 22:31:47 +02:00
Update rspamd.py
Ensure we IDNA encode DKIM/ARC domains and their alternatives
This commit is contained in:
committed by
GitHub
parent
cc7f94d5f6
commit
1f7a1fa727
@@ -25,8 +25,6 @@ def rspamd_dkim_key(domain_name):
|
||||
'selector': flask.current_app.config.get('DKIM_SELECTOR', 'dkim'),
|
||||
}
|
||||
)
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
elif domain := models.Alternative.query.get(domain_name):
|
||||
if key := domain.domain.dkim_key:
|
||||
selectors.append(
|
||||
@@ -36,7 +34,6 @@ def rspamd_dkim_key(domain_name):
|
||||
'selector': flask.current_app.config.get('DKIM_SELECTOR', 'dkim'),
|
||||
}
|
||||
)
|
||||
>>>>>>> 35ffcb07 (added idna function to perform puny encoding on IDN domains)
|
||||
return flask.jsonify({'data': {'selectors': selectors}})
|
||||
|
||||
@internal.route("/rspamd/local_domains", methods=['GET'])
|
||||
|
Reference in New Issue
Block a user