hosts/mail: add SMTP relay configuration
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m15s
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m15s
This commit is contained in:
@ -23,7 +23,11 @@ in
|
||||
inputs.nixos-mailserver.nixosModule
|
||||
];
|
||||
|
||||
age.secrets."passwords/users/jordan".file = "${inputs.secrets}/passwords/users/jordan.age";
|
||||
age.secrets = {
|
||||
"files/services/postfix/sasl_passwd".file =
|
||||
"${inputs.secrets}/files/services/postfix/sasl_passwd.age";
|
||||
"passwords/users/jordan".file = "${inputs.secrets}/passwords/users/jordan.age";
|
||||
};
|
||||
|
||||
services.roundcube = {
|
||||
enable = true;
|
||||
@ -71,4 +75,17 @@ in
|
||||
"abuse@vimium.com" = "jordan@vimium.com";
|
||||
};
|
||||
};
|
||||
|
||||
services.postfix.config = {
|
||||
relayhost = "[mail.smtp2go.com]:2525";
|
||||
|
||||
smtp_sasl_auth_enable = "yes";
|
||||
smtp_sasl_password_maps = "texthash:${
|
||||
config.age.secrets."files/services/postfix/sasl_passwd".path
|
||||
}";
|
||||
smtp_sasl_security_options = "noanonymous";
|
||||
|
||||
smtp_destination_concurrency_limit = "20";
|
||||
header_size_limit = "4096000";
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user