Use postfix options for routing mails through tunnel #45

Closed
esavkin wants to merge 15 commits from enable-mail-proxy-and-tunnel into master
1 changed files with 5 additions and 5 deletions
Showing only changes of commit 45b53991d1 - Show all commits

View File

@ -270,15 +270,15 @@ in
interfaces.intl0 = {
ipv4.addresses = [
{
address = "5.78.16.0";
prefixLength = 32;
address = "10.47.3.2";
prefixLength = 30;
}
];
ipv4.routes = [
{
address = "0.0.0.0";
prefixLength = 0;
via = "5.78.16.0";
via = "10.47.3.0";
options.table = "3";
}
];
@ -405,7 +405,7 @@ in
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = "${pkgs.iproute2}/bin/ip rule add from 5.78.16.0/32 table 3";
ExecStart = "${pkgs.iproute2}/bin/ip rule add from 10.47.3.0/30 table 3";
ExecStop = "${pkgs.iproute2}/bin/ip rule del table 3";
};
};
@ -1332,7 +1332,7 @@ in
masterConfig.smtptun = {
type = "smtp";
command = "smtp";
args = "-o smtp_bind_address=10.42.0.2";
args = "-o smtp_bind_address=10.47.3.2";
};
};
};