Fix WireGuard nat rules
This commit is contained in:
parent
f67a75b07d
commit
e7fe3707ee
11 changed files with 269 additions and 61 deletions
17
config/hosts/mail-2/postfix.nix
Normal file
17
config/hosts/mail-2/postfix.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ ... }: {
|
||||
# Postfix relay configuration, see: https://www.postfix.org/STANDARD_CONFIGURATION_README.html#backup
|
||||
services.postfix = {
|
||||
enable = true;
|
||||
hostname = "mail-2.grzb.de";
|
||||
relayDomains = [
|
||||
"grzb.de"
|
||||
"nekover.se"
|
||||
];
|
||||
extraConfig = ''
|
||||
message_size_limit = 20971520
|
||||
smtpd_relay_restrictions = permit_mynetworks reject_unauth_destination
|
||||
proxy_interfaces = 217.160.117.160
|
||||
relay_recipient_maps =
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue