2016-02-01 16:53:16 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2016-10-20 18:54:38 +00:00
|
|
|
with import <stockholm/lib>;
|
2015-09-26 22:24:17 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
krebs.exim-smarthost = {
|
|
|
|
enable = true;
|
2016-03-05 19:28:08 +00:00
|
|
|
dkim = [
|
|
|
|
{ domain = "viljetic.de"; }
|
|
|
|
];
|
2015-09-26 22:24:17 +00:00
|
|
|
sender_domains = [
|
2016-02-21 20:55:17 +00:00
|
|
|
"krebsco.de"
|
2015-09-26 22:24:17 +00:00
|
|
|
"shackspace.de"
|
|
|
|
"viljetic.de"
|
|
|
|
];
|
2017-03-09 15:54:58 +00:00
|
|
|
relay_from_hosts = concatMap (host: host.nets.retiolum.addrs) [
|
2016-02-21 20:55:17 +00:00
|
|
|
config.krebs.hosts.nomic
|
|
|
|
config.krebs.hosts.wu
|
|
|
|
config.krebs.hosts.xu
|
2015-09-26 22:24:17 +00:00
|
|
|
];
|
|
|
|
internet-aliases = with config.krebs.users; [
|
2016-08-09 09:53:57 +00:00
|
|
|
{ from = "bku-eppler@viljetic.de"; to = tv.mail; }
|
2016-02-21 20:55:17 +00:00
|
|
|
{ from = "postmaster@viljetic.de"; to = tv.mail; } # RFC 822
|
2017-05-06 08:23:11 +00:00
|
|
|
{ from = "mirko@viljetic.de"; to = mv-ni.mail; }
|
2015-09-26 22:24:17 +00:00
|
|
|
{ from = "tomislav@viljetic.de"; to = tv.mail; }
|
|
|
|
{ from = "tv@destroy.dyn.shackspace.de"; to = tv.mail; }
|
2015-10-05 01:07:14 +00:00
|
|
|
{ from = "tv@viljetic.de"; to = tv.mail; }
|
2016-02-21 20:55:17 +00:00
|
|
|
{ from = "tv@shackspace.de"; to = tv.mail; }
|
2015-09-26 22:24:17 +00:00
|
|
|
];
|
|
|
|
system-aliases = [
|
|
|
|
{ from = "mailer-daemon"; to = "postmaster"; }
|
|
|
|
{ from = "postmaster"; to = "root"; }
|
|
|
|
{ from = "nobody"; to = "root"; }
|
|
|
|
{ from = "hostmaster"; to = "root"; }
|
|
|
|
{ from = "usenet"; to = "root"; }
|
|
|
|
{ from = "news"; to = "root"; }
|
|
|
|
{ from = "webmaster"; to = "root"; }
|
|
|
|
{ from = "www"; to = "root"; }
|
|
|
|
{ from = "ftp"; to = "root"; }
|
|
|
|
{ from = "abuse"; to = "root"; }
|
|
|
|
{ from = "noc"; to = "root"; }
|
|
|
|
{ from = "security"; to = "root"; }
|
|
|
|
{ from = "root"; to = "tv"; }
|
|
|
|
{ from = "mirko"; to = "mv"; }
|
|
|
|
];
|
|
|
|
};
|
2016-06-29 22:52:35 +00:00
|
|
|
tv.iptables.input-internet-accept-tcp = singleton "smtp";
|
2015-09-26 22:24:17 +00:00
|
|
|
}
|