base/postfix: remove, base:nullmailer: init

This commit is contained in:
h7x4
2026-07-21 20:11:28 +09:00
parent 9a837d210d
commit 361a23f4d3
4 changed files with 17 additions and 32 deletions
+1 -1
View File
@@ -30,9 +30,9 @@
./services/journald-upload.nix ./services/journald-upload.nix
./services/logrotate.nix ./services/logrotate.nix
./services/nginx.nix ./services/nginx.nix
./services/nullmailer.nix
./services/openssh.nix ./services/openssh.nix
./services/polkit.nix ./services/polkit.nix
./services/postfix.nix
./services/prometheus-flake-input-exporter.nix ./services/prometheus-flake-input-exporter.nix
./services/prometheus-node-exporter.nix ./services/prometheus-node-exporter.nix
./services/prometheus-systemd-exporter.nix ./services/prometheus-systemd-exporter.nix
+15
View File
@@ -0,0 +1,15 @@
{ config, lib, ... }:
{
services.nullmailer = {
enable = true;
config = {
adminaddr = "root@pvv.ntnu.no";
defaultdomain = "pvv.ntnu.no";
defaulthost = "pvv.ntnu.no";
me = lib.mkDefault config.networking.fqdn;
remotes = lib.mkDefault "smtp.pvv.ntnu.no smtp port=587 starttls";
};
};
}
-22
View File
@@ -1,22 +0,0 @@
{ config, pkgs, lib, ... }:
let
cfg = config.services.postfix;
in
{
services.postfix = {
enable = true;
settings.main = {
myhostname = "${config.networking.hostName}.pvv.ntnu.no";
mydomain = "pvv.ntnu.no";
# Nothing should be delivered to this machine
mydestination = [ ];
relayhost = [ "smtp.pvv.ntnu.no:465" ];
smtp_tls_wrappermode = "yes";
smtp_tls_security_level = "encrypt";
};
};
}
+1 -9
View File
@@ -1,14 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
services.postfix.enable = lib.mkForce false; services.nullmailer.enable = true;
services.nullmailer = {
enable = true;
config = {
me = config.networking.fqdn;
remotes = "mail.pvv.ntnu.no smtp --port=25";
};
};
services.bro = { services.bro = {
enable = true; enable = true;