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

nixos/dovecot: add an option to enable mail_plugins #76739

Merged
merged 4 commits into from Mar 12, 2020

Conversation

symphorien
Copy link
Member

Motivation:
if enableQuota is true, mail plugins cannot be enabled in extraConfig
because of the problem described here:

https://doc.dovecot.org/configuration_manual/config_file/config_file_syntax/#variable-expansion

doveconf: Warning: /etc/dovecot/dovecot.conf line 8: Global setting
mail_plugins won't change the setting inside an earlier filter at
/etc/dovecot/dovecot.conf line 5 (if this is intentional, avoid this
warning by moving the global setting before /etc/dovecot/dovecot.conf
line 5)

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • 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 nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @peti @rickynils @fpletz @globin

@andir
Copy link
Member

andir commented Jan 15, 2020

I think a test would be nice that checks that the enabled plugins do not break the configuration files.

@symphorien
Copy link
Member Author

I don't really understand what you mean. Using these options in the dovecot test to check they don't introduce syntax errors, or adding a brand new test ?

nixos/modules/services/mail/dovecot.nix Outdated Show resolved Hide resolved
@Ekleog
Copy link
Member

Ekleog commented Jan 28, 2020

@andir As far as I can read no additional plugins are enabled by-default, which means that by default nothing changes. As such, I don't think an additional test is required? Though the more tests the better, it doesn't feel like something that would necessarily belong here.

symphorien and others added 3 commits January 28, 2020 20:30
Motivation:
if enableQuota is true, mail plugins cannot be enabled in extraConfig
because of the problem described here:

https://doc.dovecot.org/configuration_manual/config_file/config_file_syntax/#variable-expansion

doveconf: Warning: /etc/dovecot/dovecot.conf line 8: Global setting
mail_plugins won't change the setting inside an earlier filter at
/etc/dovecot/dovecot.conf line 5 (if this is intentional, avoid this
warning by moving the global setting before /etc/dovecot/dovecot.conf
line 5)
Co-Authored-By: Léo Gaspard <github@leo.gaspard.ninja>
@symphorien
Copy link
Member Author

fixed the merge conflict

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

Successfully merging this pull request may close these issues.

None yet

3 participants