mail works
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@
|
|||||||
content = ''
|
content = ''
|
||||||
chain prerouting {
|
chain prerouting {
|
||||||
type nat hook prerouting priority dstnat; policy accept;
|
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 {
|
chain postrouting {
|
||||||
type nat hook postrouting priority srcnat; policy accept;
|
type nat hook postrouting priority srcnat; policy accept;
|
||||||
|
|||||||
+14
-12
@@ -12,6 +12,7 @@
|
|||||||
tls = {
|
tls = {
|
||||||
loader = "acme";
|
loader = "acme";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
hostname $(hostname)
|
||||||
email lilac@grasswren.net
|
email lilac@grasswren.net
|
||||||
agreed
|
agreed
|
||||||
challenge dns-01
|
challenge dns-01
|
||||||
@@ -21,18 +22,19 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
config = ''
|
primaryDomain = "grasswren.net";
|
||||||
hostname grasswren.net
|
hostname = "grasswren.net";
|
||||||
|
|
||||||
auth.pass_table authdb {
|
config = ''
|
||||||
table sql_table {
|
auth.pass_table local_authdb {
|
||||||
driver sqlite3
|
table sql_table {
|
||||||
table_name passwords
|
driver sqlite3
|
||||||
dsn auth.db
|
table_name passwords
|
||||||
}
|
dsn auth.db
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
storage.imapsql mailbox {
|
storage.imapsql local_mailboxes {
|
||||||
driver sqlite3
|
driver sqlite3
|
||||||
dsn mailbox.db
|
dsn mailbox.db
|
||||||
}
|
}
|
||||||
@@ -43,7 +45,7 @@
|
|||||||
modify {
|
modify {
|
||||||
replace_rcpt regexp ".*" "lilac@grasswren.net"
|
replace_rcpt regexp ".*" "lilac@grasswren.net"
|
||||||
}
|
}
|
||||||
deliver_to &mailbox
|
deliver_to &local_mailboxes
|
||||||
}
|
}
|
||||||
default_destination {
|
default_destination {
|
||||||
reject 550 5.1.1 "No Such User"
|
reject 550 5.1.1 "No Such User"
|
||||||
@@ -52,8 +54,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
imap tls://0.0.0.0:993 {
|
imap tls://0.0.0.0:993 {
|
||||||
auth &authdb
|
auth &local_authdb
|
||||||
storage &mailbox
|
storage &local_mailboxes
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
sops.defaultSopsFile = "../secrets.yaml";
|
sops.defaultSopsFile = ../secrets.yaml;
|
||||||
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||||
|
|
||||||
sops.secrets.cftoken = {
|
sops.secrets.cftoken = {
|
||||||
|
|||||||
Reference in New Issue
Block a user