mail works

This commit is contained in:
2026-09-26 16:59:53 -04:00
parent ec9335aec0
commit be529429a8
3 changed files with 16 additions and 14 deletions
+1 -1
View File
@@ -44,7 +44,7 @@
content = ''
chain prerouting {
type nat hook prerouting priority dstnat; policy accept;
iifname "enp1s0" tcp dport { 25, 80, 443 } dnat to 10.0.0.2
iifname "enp1s0" tcp dport { 25, 80, 443, 993 } dnat to 10.0.0.2
}
chain postrouting {
type nat hook postrouting priority srcnat; policy accept;
+14 -12
View File
@@ -12,6 +12,7 @@
tls = {
loader = "acme";
extraConfig = ''
hostname $(hostname)
email lilac@grasswren.net
agreed
challenge dns-01
@@ -21,18 +22,19 @@
'';
};
config = ''
hostname grasswren.net
primaryDomain = "grasswren.net";
hostname = "grasswren.net";
auth.pass_table authdb {
table sql_table {
driver sqlite3
table_name passwords
dsn auth.db
}
config = ''
auth.pass_table local_authdb {
table sql_table {
driver sqlite3
table_name passwords
dsn auth.db
}
}
storage.imapsql mailbox {
storage.imapsql local_mailboxes {
driver sqlite3
dsn mailbox.db
}
@@ -43,7 +45,7 @@
modify {
replace_rcpt regexp ".*" "lilac@grasswren.net"
}
deliver_to &mailbox
deliver_to &local_mailboxes
}
default_destination {
reject 550 5.1.1 "No Such User"
@@ -52,8 +54,8 @@
}
imap tls://0.0.0.0:993 {
auth &authdb
storage &mailbox
auth &local_authdb
storage &local_mailboxes
}
'';
};
+1 -1
View File
@@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }:
{
sops.defaultSopsFile = "../secrets.yaml";
sops.defaultSopsFile = ../secrets.yaml;
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
sops.secrets.cftoken = {