fix: only deliver escapeangle mail locally

Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
Lander Van den Bulcke 2025-10-21 11:33:15 +02:00
parent d9a3b79c27
commit b2b16fcbe3
Signed by: lander
GPG key ID: 0142722B4B0C536F
2 changed files with 17 additions and 6 deletions

View file

@ -1,4 +1,4 @@
{ inputs, config, ... }:
{ config, lib, ... }:
let
floatingIPv4 = "78.47.245.200";
in
@ -61,8 +61,19 @@ in
virusScanning = true;
};
services.postfix.config = {
"smtp_bind_address" = floatingIPv4;
services.postfix = {
config = {
smtp_bind_address = floatingIPv4;
mydestination = lib.mkForce [
"localhost"
"escapeangle.com"
];
virtual_mailbox_domains = lib.mkForce (builtins.toFile "vhosts" "escapeangle.com");
};
localRecipients = [ "@escapeangle.com" ];
};
sops = {