tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
ssmtp: add 'root' option
Nikolay Amiantov
11 years ago
1b6f0ffb
292e0768
+10
1 changed file
expand all
collapse all
unified
split
nixos
modules
programs
ssmtp.nix
+10
nixos/modules/programs/ssmtp.nix
···
44
44
'';
45
45
};
46
46
47
47
+
root = mkOption {
48
48
+
type = types.str;
49
49
+
default = "";
50
50
+
example = "root@example.org";
51
51
+
description = ''
52
52
+
The e-mail to which mail for users with UID < 1000 is forwarded.
53
53
+
'';
54
54
+
};
55
55
+
47
56
domain = mkOption {
48
57
type = types.str;
49
58
default = "";
···
103
112
''
104
113
MailHub=${cfg.hostName}
105
114
FromLineOverride=YES
115
115
+
${if cfg.root != "" then "root=${cfg.root}" else ""}
106
116
${if cfg.domain != "" then "rewriteDomain=${cfg.domain}" else ""}
107
117
UseTLS=${if cfg.useTLS then "YES" else "NO"}
108
118
UseSTARTTLS=${if cfg.useSTARTTLS then "YES" else "NO"}