Stalwart: Difference between revisions

Onny (talk | contribs)
Update example config for new version
Onny (talk | contribs)
Cleanup default config
 
(4 intermediate revisions by the same user not shown)
Line 13: Line 13:
services.stalwart-mail = {
services.stalwart-mail = {
   enable = true;
   enable = true;
  package = pkgs.stalwart-mail;
   openFirewall = true;
   openFirewall = true;
   settings = {
   settings = {
Line 30: Line 29:
           bind = "[::]:465";
           bind = "[::]:465";
           protocol = "smtp";
           protocol = "smtp";
          tls.implicit = true
         };
         };
         imaps = {
         imaps = {
           bind = "[::]:993";
           bind = "[::]:993";
           protocol = "imap";
           protocol = "imap";
          tls.implicit = true
         };
         };
         jmap = {
         jmap = {
           bind = "[::]:8080";
           bind = "[::]:8080";
           url = "https://mail.example.org";
           url = "https://mail.example.org";
           protocol = "jmap";
           protocol = "http";
         };
         };
         management = {
         management = {
Line 64: Line 65:
     storage.directory = "in-memory";
     storage.directory = "in-memory";
     session.rcpt.directory = "'in-memory'";
     session.rcpt.directory = "'in-memory'";
    queue.strategy.route = "'local'"
     directory."imap".lookup.domains = [ "example.org" ];
     directory."imap".lookup.domains = [ "example.org" ];
     directory."in-memory" = {
     directory."in-memory" = {