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
'';
45
};
46
0
0
0
0
0
0
0
0
0
47
domain = mkOption {
48
type = types.str;
49
default = "";
···
103
''
104
MailHub=${cfg.hostName}
105
FromLineOverride=YES
0
106
${if cfg.domain != "" then "rewriteDomain=${cfg.domain}" else ""}
107
UseTLS=${if cfg.useTLS then "YES" else "NO"}
108
UseSTARTTLS=${if cfg.useSTARTTLS then "YES" else "NO"}
···
44
'';
45
};
46
47
+
root = mkOption {
48
+
type = types.str;
49
+
default = "";
50
+
example = "root@example.org";
51
+
description = ''
52
+
The e-mail to which mail for users with UID < 1000 is forwarded.
53
+
'';
54
+
};
55
+
56
domain = mkOption {
57
type = types.str;
58
default = "";
···
112
''
113
MailHub=${cfg.hostName}
114
FromLineOverride=YES
115
+
${if cfg.root != "" then "root=${cfg.root}" else ""}
116
${if cfg.domain != "" then "rewriteDomain=${cfg.domain}" else ""}
117
UseTLS=${if cfg.useTLS then "YES" else "NO"}
118
UseSTARTTLS=${if cfg.useSTARTTLS then "YES" else "NO"}