* In ssmtp, keep the From line if set explicitly in a mail.

svn path=/nixos/trunk/; revision=11706
This commit is contained in:
Eelco Dolstra 2008-04-24 12:36:50 +00:00
parent 5dbe45bfea
commit f2598a9ca5

View file

@ -161,7 +161,8 @@ import ../helpers/make-etc.nix {
# Configuration for ssmtp.
++ optional config.networking.defaultMailServer.directDelivery {
source = let cfg = config.networking.defaultMailServer; in pkgs.writeText "ssmtp.conf" ''
mailhub=${cfg.hostName}
MailHub=${cfg.hostName}
FromLineOverride=YES
${if cfg.domain != "" then "rewriteDomain=${cfg.domain}" else ""}
UseTLS=${if cfg.useTLS then "YES" else "NO"}
UseSTARTTLS=${if cfg.useSTARTTLS then "YES" else "NO"}