From dc08412ba24552da1e47c3a554ac8c98172067e0 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 13 Aug 2022 11:22:01 +0800 Subject: [PATCH] update email settings --- nixbld-etc-nixos/configuration.nix | 2 +- nixbld-etc-nixos/rfq/uwsgi-config.nix | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 849fa980..590362d4 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -529,7 +529,7 @@ in mailer = { ENABLED = true; - HOST = "ssl.serverraum.org:587"; + HOST = "mail.m-labs.hk:587"; FROM = "sysop@m-labs.hk"; USER = "sysop@m-labs.hk"; }; diff --git a/nixbld-etc-nixos/rfq/uwsgi-config.nix b/nixbld-etc-nixos/rfq/uwsgi-config.nix index b301fa35..68093da6 100644 --- a/nixbld-etc-nixos/rfq/uwsgi-config.nix +++ b/nixbld-etc-nixos/rfq/uwsgi-config.nix @@ -7,13 +7,13 @@ in { pythonPackages = self: [ pkg ]; module = "rfq:app"; env = [ - "FLASK_MAIL_SERVER=ssl.serverraum.org" + "FLASK_MAIL_SERVER=mail.m-labs.hk" "FLASK_MAIL_PORT=465" "FLASK_MAIL_USE_SSL=True" - "FLASK_MAIL_USERNAME=sales@m-labs.hk" - "FLASK_MAIL_PASSWORD=${import /etc/nixos/secret/sales_password.nix}" + "FLASK_MAIL_USERNAME=sysop@m-labs.hk" + "FLASK_MAIL_PASSWORD=${import /etc/nixos/secret/sysop_password.nix}" "FLASK_MAIL_RECIPIENT=sales@m-labs.hk" - "FLASK_MAIL_SENDER=sales@m-labs.hk" + "FLASK_MAIL_SENDER=sysop@m-labs.hk" ]; socket = "${config.services.uwsgi.runDir}/uwsgi-rfq.sock"; # allow access from nginx