2014-04-14 16:26:48 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2010-10-10 12:43:28 +02:00
|
|
|
|
2014-04-14 16:26:48 +02:00
|
|
|
with lib;
|
2010-10-10 12:43:28 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
2011-09-14 20:20:50 +02:00
|
|
|
|
2010-10-10 12:43:28 +02:00
|
|
|
services.mail = {
|
2011-09-14 20:20:50 +02:00
|
|
|
|
2010-10-10 12:43:28 +02:00
|
|
|
sendmailSetuidWrapper = mkOption {
|
|
|
|
default = null;
|
2016-03-25 16:08:20 +01:00
|
|
|
internal = true;
|
2010-10-10 12:43:28 +02:00
|
|
|
description = ''
|
2016-03-25 16:08:20 +01:00
|
|
|
Configuration for the sendmail setuid wapper.
|
2010-10-10 12:43:28 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf (config.services.mail.sendmailSetuidWrapper != null) {
|
|
|
|
|
2017-01-29 05:48:03 +01:00
|
|
|
security.wrappers.setuid = [ config.services.mail.sendmailSetuidWrapper ];
|
2010-10-10 12:43:28 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|