Skip to content

Commit

Permalink
host(kita): initial postfix configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
soopyc committed Jul 22, 2024
1 parent 950f4d1 commit 33a0697
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions systems/kita/services/mail/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{...}: {
imports = [
./roundcube.nix

# HELL
./postfix.nix
];
}
30 changes: 30 additions & 0 deletions systems/kita/services/mail/postfix.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{config, ...}: let
cfg = config.services.postfix;
in {
services.postfix = {
enable = true;
domain = "soopy.moe";
hostname = "mx2.soopy.moe";
origin = "mx2.soopy.moe";
destination = [
"localhost"
"localhost.localdomain"
cfg.hostname
"staging.soopy.moe" # TODO: remove after testing
# don't put soopy.moe here, that goes into virtual stuff.
];

# leave relayHost to be "".
relayDomains = [];
networksStyle = "host";

postmasterAlias = "cassie";
rootAlias = "cassie";
};

networking.firewall.allowedTCPPorts = [
25 # smtp
465 # submissions (secure)
# 587 # submission (starttls)
];
}

0 comments on commit 33a0697

Please sign in to comment.