summaryrefslogtreecommitdiffstats
path: root/lass/2configs/exim-retiolum.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-04-12 15:16:17 +0200
committerlassulus <lass@aidsballs.de>2016-04-12 15:16:17 +0200
commit4f04085d5239e2c688a370706f9007edd0a0d5bb (patch)
tree05779648974e222a754c90b9ac3cc006d8aff8ef /lass/2configs/exim-retiolum.nix
parentbe6bfb17365046486abdd3af01f05b0cb99331ea (diff)
l 2: add exim-retiolum.nix
Diffstat (limited to 'lass/2configs/exim-retiolum.nix')
-rw-r--r--lass/2configs/exim-retiolum.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/lass/2configs/exim-retiolum.nix b/lass/2configs/exim-retiolum.nix
new file mode 100644
index 000000000..ea2f553b8
--- /dev/null
+++ b/lass/2configs/exim-retiolum.nix
@@ -0,0 +1,14 @@
+{ config, lib, pkgs, ... }:
+
+with config.krebs.lib;
+
+{
+ krebs.exim-retiolum.enable = true;
+ krebs.setuid.sendmail = {
+ filename = "${pkgs.exim}/bin/exim";
+ mode = "4111";
+ };
+ krebs.iptables.tables.filter.INPUT.rules = [
+ { predicate = "-i retiolum -p tcp --dport smtp"; target = "ACCEPT"; }
+ ];
+}