mail works
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
+9
-7
@@ -12,6 +12,7 @@
|
||||
tls = {
|
||||
loader = "acme";
|
||||
extraConfig = ''
|
||||
hostname $(hostname)
|
||||
email lilac@grasswren.net
|
||||
agreed
|
||||
challenge dns-01
|
||||
@@ -21,10 +22,11 @@
|
||||
'';
|
||||
};
|
||||
|
||||
config = ''
|
||||
hostname grasswren.net
|
||||
primaryDomain = "grasswren.net";
|
||||
hostname = "grasswren.net";
|
||||
|
||||
auth.pass_table authdb {
|
||||
config = ''
|
||||
auth.pass_table local_authdb {
|
||||
table sql_table {
|
||||
driver sqlite3
|
||||
table_name passwords
|
||||
@@ -32,7 +34,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
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
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user