|
|
@ -3,7 +3,7 @@ from mailu.internal import internal
|
|
|
|
|
|
|
|
|
|
|
|
import flask
|
|
|
|
import flask
|
|
|
|
import socket
|
|
|
|
import socket
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
|
|
@internal.route("/dovecot/passdb/<user_email>")
|
|
|
|
@internal.route("/dovecot/passdb/<user_email>")
|
|
|
|
def dovecot_passdb_dict(user_email):
|
|
|
|
def dovecot_passdb_dict(user_email):
|
|
|
@ -13,6 +13,7 @@ def dovecot_passdb_dict(user_email):
|
|
|
|
app.config.get("POD_ADDRESS_RANGE") or
|
|
|
|
app.config.get("POD_ADDRESS_RANGE") or
|
|
|
|
socket.gethostbyname(app.config["HOST_FRONT"])
|
|
|
|
socket.gethostbyname(app.config["HOST_FRONT"])
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
if os.environ["WEBMAIL"] != "none":
|
|
|
|
allow_nets.append(socket.gethostbyname(app.config["HOST_WEBMAIL"]))
|
|
|
|
allow_nets.append(socket.gethostbyname(app.config["HOST_WEBMAIL"]))
|
|
|
|
print(allow_nets)
|
|
|
|
print(allow_nets)
|
|
|
|
return flask.jsonify({
|
|
|
|
return flask.jsonify({
|
|
|
|