Aliasvault

This commit is contained in:
Aleksandr Lebedev 2025-10-03 14:36:50 +02:00
parent 7a1053586d
commit 3cfbb8ec2e
5 changed files with 107 additions and 32 deletions

View file

@ -28,27 +28,4 @@ with lib.custom; {
attachment-cache-dir = "/var/lib/ntfy-sh/attachments";
};
};
services.postfix = {
enable = true;
config = {
myhostname = "stargate.local";
mydestination = "localhost, localhost.com";
relayhost = "";
transport_maps = "hash:/etc/postfix.conf";
};
};
environment.etc."postfix.conf".text = ''
localhost.com smtp:[127.0.0.1]:1299
'';
systemd.services.postmap-transport = {
description = "Generate postfix transport.db from transport";
wantedBy = ["multi-user.target"];
before = ["postfix.service"];
serviceConfig = {
Type = "oneshot";
ExecStart = "${pkgs.postfix}/bin/postmap /etc/postfix.conf";
};
};
}