fix: only deliver escapeangle mail locally
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
d9a3b79c27
commit
b2b16fcbe3
2 changed files with 17 additions and 6 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue