play around with email more, no real results
This commit is contained in:
parent
8c28158095
commit
f4462c2c22
2 changed files with 28 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
nginx.enable = true;
|
nginx.enable = true;
|
||||||
mail.enable = true; # broken
|
mail.enable = true; # broken
|
||||||
website.enable = true; # broken
|
website.enable = true;
|
||||||
fedi.enable = false; # broken
|
fedi.enable = false; # broken
|
||||||
matrix.enable = true;
|
matrix.enable = true;
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
|
|
|
@ -40,6 +40,10 @@ in mkIf conf.mail.enable {
|
||||||
protocol = "smtp";
|
protocol = "smtp";
|
||||||
bind = "[::]:465";
|
bind = "[::]:465";
|
||||||
};
|
};
|
||||||
|
smtp = {
|
||||||
|
protocol = "smtp";
|
||||||
|
bind = "[::]:25";
|
||||||
|
};
|
||||||
imaps = {
|
imaps = {
|
||||||
protocol = "imap";
|
protocol = "imap";
|
||||||
bind = "[::]:993";
|
bind = "[::]:993";
|
||||||
|
@ -64,8 +68,29 @@ in mkIf conf.mail.enable {
|
||||||
cert = "%{file:/var/lib/acme/chpu.eu/cert.pem}%";
|
cert = "%{file:/var/lib/acme/chpu.eu/cert.pem}%";
|
||||||
private-key = "%{file:/var/lib/acme/chpu.eu/key.pem}%";
|
private-key = "%{file:/var/lib/acme/chpu.eu/key.pem}%";
|
||||||
};
|
};
|
||||||
session.rcpt.directory = "'in-memory'";
|
storage = {
|
||||||
directory."imap".lookup.demains = [ "chpu.eu" ];
|
data = "db";
|
||||||
|
fts = "db";
|
||||||
|
block = "db";
|
||||||
|
lookup = "db";
|
||||||
|
directory = "internal";
|
||||||
|
};
|
||||||
|
directory."internal" = {
|
||||||
|
type = "internal";
|
||||||
|
store = "db";
|
||||||
|
};
|
||||||
|
tracer."stdout" = {
|
||||||
|
type = "stdout";
|
||||||
|
level = "info";
|
||||||
|
ansi = false;
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
session.rcpt = {
|
||||||
|
directory = "'internal'";
|
||||||
|
};
|
||||||
|
blocked-ip = {
|
||||||
|
"" = "";
|
||||||
|
};
|
||||||
authentication.fallback-admin = {
|
authentication.fallback-admin = {
|
||||||
user = "admin";
|
user = "admin";
|
||||||
secret = "%{file:/var/lib/stalwart-mail/secret/admin}%";
|
secret = "%{file:/var/lib/stalwart-mail/secret/admin}%";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue