mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
ssmtp: Add AuthUser and AuthPass options.
Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
This commit is contained in:
parent
7d2ec75ae7
commit
4be036ca64
1 changed files with 18 additions and 0 deletions
|
@ -63,6 +63,22 @@ let
|
|||
";
|
||||
};
|
||||
|
||||
authUser = mkOption {
|
||||
default = "";
|
||||
example = "foo@example.org";
|
||||
description = "
|
||||
Username used for SMTP auth. Leave blank to disable.
|
||||
";
|
||||
};
|
||||
|
||||
authPass = mkOption {
|
||||
default = "";
|
||||
example = "correctHorseBatteryStaple";
|
||||
default = "
|
||||
Password used for SMTP auth.
|
||||
";
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
@ -82,6 +98,8 @@ mkIf cfg.directDelivery {
|
|||
UseTLS=${if cfg.useTLS then "YES" else "NO"}
|
||||
UseSTARTTLS=${if cfg.useSTARTTLS then "YES" else "NO"}
|
||||
#Debug=YES
|
||||
${if cfg.authUser != "" then "AuthUser=${cfg.authUser}" else ""}
|
||||
${if cfg.authPass != "" then "AuthPass=${cfg.authPass}" else ""}
|
||||
'';
|
||||
target = "ssmtp/ssmtp.conf";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue