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
+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
}
'';
};