From 455856d7c00987b52e79518aad7a983a43690487 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Tue, 21 Dec 2021 08:11:38 +0000 Subject: [PATCH] baserow: enable postfix (totoro) --- ops/nixos/lib/baserow.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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"; + }; }