1
0
Fork 0

nixbld: send mail from m-labs-intl.com through trump0

This commit is contained in:
Sébastien Bourdeauducq 2024-10-17 15:04:32 +08:00
parent f8a3d54b54
commit 19aee9b59f
1 changed files with 17 additions and 0 deletions

View File

@ -1261,6 +1261,23 @@ in
enablePop3Ssl = true;
certificateScheme = "acme-nginx";
} // (import /etc/nixos/secret/email_settings.nix);
services.postfix = {
mapFiles."sender_transport" = builtins.toFile "sender_transport" ''
@m-labs-intl.com intltunnel:
'';
config = {
sender_dependent_default_transport_maps = "hash:/var/lib/postfix/conf/sender_transport";
};
masterConfig."intltunnel" = {
type = "unix";
command = "smtp";
args = [
"-o" "inet_interfaces=10.47.3.1"
"-o" "smtp_helo_name=mail.m-labs-intl.com"
"-o" "inet_protocols=ipv4"
];
};
};
services.roundcube = {
enable = true;
hostName = "mail.m-labs.hk";