{ config, lib, pkgs, ... }: { accounts = { email.accounts = { gmail = { primary = true; realName = "Matt Jallen"; address = "matt.l.jallen@gmail.com"; userName = "matt.l.jallen@gmail.com"; passwordCommand = "${pkgs.uutils-coreutils-noprefix}/bin/cat ${ config.sops.secrets."gmail-smtp-password".path }"; flavor = "gmail.com"; thunderbird.enable = true; smtp = { tls = { enable = false; useStartTls = true; }; host = "smtp.gmail.com"; port = lib.mkForce 465; }; }; protonmail = { realName = "Matt Jallen"; address = "jalle008@protonmail.com"; userName = "jalle008@protonmail.com"; passwordCommand = "${pkgs.uutils-coreutils-noprefix}/bin/cat ${ config.sops.secrets."protonmail-password".path }"; smtp = { tls = { enable = false; useStartTls = true; }; host = "127.0.0.1"; port = lib.mkForce 1025; }; }; }; }; }