2018-07-20 13:56:59 -07:00
|
|
|
{ config, lib, ... }:
|
2010-10-10 03:43:28 -07:00
|
|
|
|
2014-04-14 07:26:48 -07:00
|
|
|
with lib;
|
2010-10-10 03:43:28 -07:00
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
2011-09-14 11:20:50 -07:00
|
|
|
|
2010-10-10 03:43:28 -07:00
|
|
|
services.mail = {
|
2011-09-14 11:20:50 -07:00
|
|
|
|
2010-10-10 03:43:28 -07:00
|
|
|
sendmailSetuidWrapper = mkOption {
|
|
|
|
default = null;
|
2016-03-25 08:08:20 -07:00
|
|
|
internal = true;
|
2010-10-10 03:43:28 -07:00
|
|
|
description = ''
|
2016-03-25 08:08:20 -07:00
|
|
|
Configuration for the sendmail setuid wapper.
|
2010-10-10 03:43:28 -07:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf (config.services.mail.sendmailSetuidWrapper != null) {
|
|
|
|
|
2017-01-28 23:58:12 -08:00
|
|
|
security.wrappers.sendmail = config.services.mail.sendmailSetuidWrapper;
|
2010-10-10 03:43:28 -07:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|