diff --git a/ops/nixos/lib/baserow.nix b/ops/nixos/lib/baserow.nix index b2c0b11746..7f46e3d2d4 100644 --- a/ops/nixos/lib/baserow.nix +++ b/ops/nixos/lib/baserow.nix @@ -17,6 +17,8 @@ let DATABASE_HOST = ""; DATABASE_PASSWORD = ""; REDIS_HOST = "localhost"; + EMAIL_SMTP = "yesplease"; + FROM_EMAIL = "no-reply@baserow.lukegb.com"; }; baserow-util = pkgs.stdenv.mkDerivation { name = "baserow-util"; @@ -188,4 +190,21 @@ in }; }; }; + + services.postfix = { + enable = true; + domain = "baserow.lukegb.com"; + hostname = "baserow.lukegb.com"; + extraConfig = '' + milter_protocol = 2 + milter_default_action = accept + smtpd_milters = ${config.services.opendkim.socket} + non_smtpd_milters = ${config.services.opendkim.socket} + ''; + }; + services.opendkim = { + enable = true; + domains = "csl:baserow.lukegb.com"; + selector = "totoro"; + }; }