diff --git a/core/admin/mailu/internal/nginx.py b/core/admin/mailu/internal/nginx.py index 2dac4db1..d5f2d697 100644 --- a/core/admin/mailu/internal/nginx.py +++ b/core/admin/mailu/internal/nginx.py @@ -80,12 +80,12 @@ def extract_host_port(host_and_port, default_port): def get_server(protocol, authenticated=False): if protocol == "imap": - hostname, port = extract_host_port(app.config['HOST_IMAP'], 143) + hostname, port = extract_host_port(app.config['IMAP_ADDRESS'], 143) elif protocol == "pop3": - hostname, port = extract_host_port(app.config['HOST_POP3'], 110) + hostname, port = extract_host_port(app.config['POP3_ADDRESS'], 110) elif protocol == "smtp": if authenticated: - hostname, port = extract_host_port(app.config['HOST_AUTHSMTP'], 10025) + hostname, port = extract_host_port(app.config['AUTHSMTP_ADDRESS'], 10025) else: - hostname, port = extract_host_port(app.config['HOST_SMTP'], 25) + hostname, port = extract_host_port(app.config['SMTP_ADDRESS'], 25) return hostname, port