email: email is semi functional, can send but it doesnot save to sent items

Unsure about recieve
This commit is contained in:
silver 2023-06-16 23:18:53 +01:00
parent 5463914184
commit 6585a3c88a
18 changed files with 383 additions and 46 deletions

57
machines/gir.nix Normal file
View file

@ -0,0 +1,57 @@
/*
Name: https://zim.fandom.com/wiki/GIR
Why: Gir used to have this role before, servers never die
Type: VM
Hardware: -
From: 2023
Role: Email Server
Notes:
*/
{ pkgs, lib, nodes, ... }:
let
# name of the server, sets teh hostname and record for it
name = "gir";
ip_pub = "193.1.99.76";
ip_priv = "172.20.20.5";
hostname = "${name}.skynet.ie";
#hostname = ip_pub;
in {
imports = [
../applications/email.nix
];
deployment = {
targetHost = hostname;
targetPort = 22;
targetUser = "root";
tags = [ "active" ];
};
# add this server to dns
skynet_dns.records = {
external = [
"${name} A ${ip_pub}"
];
reverse = [
"${builtins.substring 9 3 ip_pub} IN PTR ${name}"
];
};
# we use this to pass in teh relevent infomation to the
services.skynet_email = {
enable = true;
host = {
# pass in teh ip (used for firewall)
ip = ip_pub;
# the name is used for dns
name = name;
};
};
}

View file

@ -61,9 +61,6 @@ in {
external = [
"${name} A ${ip_pub}"
"${ns} A ${ip_pub}"
# needs this, temporally
"mail A ${ip_pub}"
];
cname = [
#"misc CNAME vendetta"