define spam-ml in krebs/3modules
This commit is contained in:
parent
04c0f3935b
commit
8167fe985a
@ -105,6 +105,23 @@ let
|
||||
combined-hosts = (mapAttrsToList (name: value: value.extraZones) cfg.hosts );
|
||||
in lib.mapAttrs' (name: value: nameValuePair (("zones/" + name)) ({ text=value; })) all-zones;
|
||||
|
||||
krebs.exim-smarthost.internet-aliases = let
|
||||
format = from: to:
|
||||
# TODO assert is-retiolum-mail-address to;
|
||||
{ inherit from;
|
||||
to = if typeOf to == "list"
|
||||
then concatMapStringsSep "," (getAttr "mail") to
|
||||
else to.mail; };
|
||||
in mapAttrsToList format (with config.krebs.users; let
|
||||
spam-ml = [
|
||||
lass
|
||||
makefu
|
||||
tv
|
||||
];
|
||||
in {
|
||||
"spam@krebsco.de" = spam-ml;
|
||||
});
|
||||
|
||||
services.openssh.hostKeys =
|
||||
let inherit (config.krebs.build.host.ssh) privkey; in
|
||||
mkIf (privkey != null) (mkForce [privkey]);
|
||||
|
@ -26,14 +26,6 @@
|
||||
|
||||
# TODO lists@smtp.retiolum [consul]
|
||||
{ from = "postmaster@krebsco.de"; to = tv.mail; }
|
||||
|
||||
{ from = "spam@krebsco.de";
|
||||
to = pkgs.lib.concatStringsSep "," [
|
||||
tv.mail
|
||||
"lass@mors.retiolum"
|
||||
makefu.mail
|
||||
];
|
||||
}
|
||||
];
|
||||
system-aliases = [
|
||||
{ from = "mailer-daemon"; to = "postmaster"; }
|
||||
|
Loading…
Reference in New Issue
Block a user