Add autodiscovery to the mailserver

This commit is contained in:
Jimbo 2025-03-03 03:41:49 -05:00
parent 4a18eccddd
commit f428198857
4 changed files with 39 additions and 7 deletions

View file

@ -0,0 +1,20 @@
{ config, ... }:
{
imports = [ ./nginx ];
services.go-autoconfig = {
enable = config.system.mailserver.enable;
settings = {
service_addr = ":1323";
domain = "autoconfig.nixfox.ca";
imap = {
server = "mx.nixfox.ca";
port = 143;
};
smtp = {
server = "mx.nixfox.ca";
port = 587;
};
};
};
}