mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-07-21 20:41:25 +02:00
base/postfix: remove, base:nullmailer: init
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
@@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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,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;
|
||||||
|
|||||||
Reference in New Issue
Block a user