stockholm/krebs/2configs/exim-smarthost.nix

60 lines
1.7 KiB
Nix
Raw Normal View History

2023-06-10 10:50:53 +00:00
{ config, lib, ... }:
with import ../../lib/pure.nix { inherit lib; };
let
format = from: to: {
inherit from;
# TODO assert is-retiolum-mail-address to;
to = concatMapStringsSep "," (getAttr "mail") (toList to);
};
in {
krebs.exim-smarthost.internet-aliases =
mapAttrsToList format (with config.krebs.users; let
brain-ml = [
lass
makefu
tv
];
eloop-ml = spam-ml ++ [
{ mail = "unreal@rtinf.net"; }
];
2022-11-22 14:02:14 +00:00
krebstel-ml = [
config.krebs.users."0x4A6F"
{ mail = "krebstel-1rxz0mqa95nkmk298s1731ly0ii7vc36kkm36pnjj89hrq52pgn1@ni.r"; }
{ mail = "krebstel-1difh7483axpiaq92ghi14r5cql822wbhixqb0nn3y3jkcj0b785@ni.r"; }
{ mail = "lass@green.r"; }
tv
];
spam-ml = [
lass
makefu
tv
];
in {
"brain@krebsco.de" = brain-ml;
2022-06-08 08:39:48 +00:00
"eloop2022@krebsco.de" = eloop-ml;
2024-10-02 14:55:45 +00:00
"2024@eloop.org" = eloop-ml;
2022-06-08 09:10:13 +00:00
"root@eloop.org" = eloop-ml; # obsolete, use spam@eloop.org instead
"spam@eloop.org" = eloop-ml;
"youtube@eloop.org" = eloop-ml; # obsolete, use spam@eloop.org instead
"postmaster@krebsco.de" = spam-ml; # RFC 822
2022-11-22 14:02:14 +00:00
"krebstel@krebsco.de" = krebstel-ml;
"lass@krebsco.de" = lass;
"makefu@krebsco.de" = makefu;
"spam@krebsco.de" = spam-ml;
"tv@krebsco.de" = tv;
2023-07-06 18:26:40 +00:00
"xkey@krebsco.de" = { mail = "lennart@cope.cool"; };
# XXX These are no internet aliases
# XXX exim-retiolum hosts should be able to relay to retiolum addresses
"lass@retiolum" = lass;
"makefu@retiolum" = makefu;
"spam@retiolum" = spam-ml;
"tv@retiolum" = tv;
"lass@r" = lass;
"makefu@r" = makefu;
"spam@r" = spam-ml;
"tv@r" = tv;
});
}