2010-10-10 10:43:28 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
with pkgs.lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
2011-09-14 18:20:50 +00:00
|
|
|
|
2010-10-10 10:43:28 +00:00
|
|
|
services.mail = {
|
2011-09-14 18:20:50 +00:00
|
|
|
|
2010-10-10 10:43:28 +00: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 ];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|