2014-04-14 18:26:48 +04:00
|
|
|
{ config, lib, pkgs, ... }:
|
2010-10-10 14:43:28 +04:00
|
|
|
|
2014-04-14 18:26:48 +04:00
|
|
|
with lib;
|
2010-10-10 14:43:28 +04:00
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
2011-09-14 22:20:50 +04:00
|
|
|
|
2010-10-10 14:43:28 +04:00
|
|
|
services.mail = {
|
2011-09-14 22:20:50 +04:00
|
|
|
|
2010-10-10 14:43:28 +04:00
|
|
|
sendmailSetuidWrapper = mkOption {
|
|
|
|
default = null;
|
|
|
|
description = ''
|
|
|
|
Configuration for the sendmail setuid wrwapper (like an element of
|
|
|
|
security.setuidOwners)";
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf (config.services.mail.sendmailSetuidWrapper != null) {
|
|
|
|
|
|
|
|
security.setuidOwners = [ config.services.mail.sendmailSetuidWrapper ];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|