Add autodiscovery to the mailserver
This commit is contained in:
parent
4a18eccddd
commit
f428198857
4 changed files with 39 additions and 7 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue