Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dovecot2: added quota, changed pop3 default #29364

Merged
merged 1 commit into from Sep 15, 2017

Conversation

qknight
Copy link
Member

@qknight qknight commented Sep 14, 2017

Motivation for this change

the nixcloud.email abstraction requires some changes and in this case we need to embrace imap over pop3 default. as well as quotas.

this PR is related to #29366

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Copy link
Member

@fpletz fpletz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

@fpletz fpletz merged commit 7904499 into NixOS:master Sep 15, 2017
@rvl
Copy link
Contributor

rvl commented Sep 20, 2017

Hi @qknight, this commit seems to break evaluation for me (error: value is null while a string was expected, at /home/rodney/ops/nixpkgs-release/lib/types.nix:222:23). It works when I revert. I haven't got time just now to look further, but here's my config: https://gist.github.com/rvl/b074a4d8d63f7fd35eb1a647d8fb8a90

@rvl
Copy link
Contributor

rvl commented Sep 20, 2017

It's due to mailUser and mailGroup being null. I think createMailUser should default to false, there should be extra conditions in the optional when creating the user and group, and there should be assertions:

      { assertion = cfg.createMailUser -> (cfg.mailUser != null);
        message = "services.dovecot2.createMailUser requires mailUser to be set";
      }
      { assertion = cfg.createMailUser -> (cfg.mailGroup != null);
        message = "services.dovecot2.createMailUser requires mailGroup to be set";
      }

Cheers

@qknight
Copy link
Member Author

qknight commented Sep 27, 2017

@rvl is that problem still there?

@rvl
Copy link
Contributor

rvl commented Sep 27, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants