Davmail: Move from home to clients.

This commit is contained in:
Dmitry Voronin 2025-01-10 09:44:16 +03:00
parent 7a5bb2b71f
commit 80bec9eac7
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
4 changed files with 25 additions and 17 deletions

20
config/Davmail.nix Normal file
View file

@ -0,0 +1,20 @@
{ config, lib, ... }:
let
cfg = config.module.davmail;
in
{
config = lib.mkIf cfg.enable {
services.davmail = {
enable = true;
url = "https://mail.fsight.ru/ews/exchange.asmx";
config = {
davmail.server = true;
davmail.allowRemote = false;
davmail.bindAddress = "::1";
davmail.imapPort = 55143;
davmail.smtpPort = 55025;
davmail.caldavPort = 55080;
};
};
};
}

View file

@ -26,12 +26,12 @@ let
cfg
// {
imap = {
host = "home.local";
host = "localhost";
port = 55143;
tls.enable = false;
};
smtp = {
host = "home.local";
host = "localhost";
port = 55025;
tls.enable = false;
};

View file

@ -1,15 +0,0 @@
{ ... }:
{
services.davmail = {
enable = true;
url = "https://mail.fsight.ru/ews/exchange.asmx";
config = {
davmail.server = true;
davmail.allowRemote = true;
davmail.bindAddress = "::";
davmail.imapPort = 55143;
davmail.smtpPort = 55025;
davmail.caldavPort = 55080;
};
};
}

3
option/Davmail.nix Normal file
View file

@ -0,0 +1,3 @@
{ config, lib, ... }: {
options.module.davmail.enable = lib.mkEnableOption "the Davmail Exchange proxy." // { default = config.module.purpose.work; };
}