summary refs log tree commit diff
path: root/nixos/modules/services/mail/dovecot.nix
Commit message (Collapse)AuthorAge
* nixos/dovecot: set isSystemUser for mailUserajs1242021-04-16
| | | | needed after 7a87973b4ced86e1ba94ee84449979d6afebc9ea
* treewide: update 21.03 to 21.05Luke Granger-Brown2021-02-12
| | | | | | | | The NixOS 21.03 release has been delayed to 21.05. See NixOS/rfcs#80. There are two instances of 21.03 which have been left as is, since they are in stateVersion comparisons. This will ensure that existing user configurations which refer to 21.03 will continue to work.
* nixos/modules: fix systemd start rate-limitslf-2020-10-31
| | | | | | | | | | | | | | | | These were broken since 2016: https://github.com/systemd/systemd/commit/f0367da7d1a61ad698a55d17b5c28ddce0dc265a since StartLimitIntervalSec got moved into [Unit] from [Service]. StartLimitBurst has also been moved accordingly, so let's fix that one too. NixOS systems have been producing logs such as: /nix/store/wf98r55aszi1bkmln1lvdbp7znsfr70i-unit-caddy.service/caddy.service:31: Unknown key name 'StartLimitIntervalSec' in section 'Service', ignoring. I have also removed some unnecessary duplication in units disabling rate limiting since setting either interval or burst to zero disables it (https://github.com/systemd/systemd/blob/ad16158c10dfc3258831a9ff2f1a988214f51653/src/basic/ratelimit.c#L16)
* nixos/dovecot: configure mailboxes for all processesSymphorien Gibol2020-08-28
| | | | Notably fts plugins need them for fts_autoindex_exclude = \SomeFlag
* nixos/dovecot: Improve mailboxes typeSilvan Mosberger2020-08-18
| | | | | The previous use of types.either disallowed assigning a list at one point and an attrset an another.
* nixos/dovecot2: refactor mailboxes optionMaximilian Bosch2020-06-17
| | | | | | | Specifying mailboxes as a list isn't a good approach since this makes it impossible to override values. For backwards-compatibility, it's still possible to declare a list of mailboxes, but a deprecation warning will be shown.
* nixos/dovecot2: add autoexpunge settingMaximilian Bosch2020-06-17
| | | | | | To automatically purge old email. See also https://wiki.dovecot.org/MailboxSettings
* dovecot: restart when modules are changedSymphorien Gibol2020-05-08
|
* dovecot: add missing descriptionsSymphorien Gibol2020-01-28
|
* nixos/modules/services/mail/dovecot.nix: nixpkgs-fmtSymphorien Gibol2020-01-28
|
* Update nixos/modules/services/mail/dovecot.nixsymphorien2020-01-28
| | | Co-Authored-By: Léo Gaspard <github@leo.gaspard.ninja>
* nixos/dovecot: add an option to enable mail_pluginsSymphorien Gibol2020-01-28
| | | | | | | | | | | | | | 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)
* tree-wide: fix errors and warning related to loaOf deprecationMilan Pässler2020-01-07
|
* treewide: use attrs instead of list for types.loaOf optionsrnhmjoj2020-01-06
|
* nixos/treewide: Move rename.nix imports to their respective modulesSilvan Mosberger2019-12-10
| | | | | | | | A centralized list for these renames is not good because: - It breaks disabledModules for modules that have a rename defined - Adding/removing renames for a module means having to find them in the central file - Merge conflicts due to multiple people editing the central file
* Specify correct option typeVictor Nawothnig2019-10-04
|
* nixos/treewide: drop dependencies to `keys.target`Maximilian Bosch2019-08-27
| | | | | | | | | | | | | | | | | | | | | | | | | The `keys.target` is used to indicate whether all NixOps keys were successfully uploaded on an unattended reboot. However this can cause startup issues e.g. with NixOS containers (see #67265) and can block boots even though this might not be needed (e.g. with a dovecot2 instance running that doesn't need any of the NixOps keys). As described in the NixOps manual[1], dependencies to keys should be defined like this now: ``` nix { systemd.services.myservice = { after = [ "secret-key.service" ]; wants = [ "secret-key.service" ]; }; } ``` However I'd leave the issue open until it's discussed whether or not to keep `keys.target` in `nixpkgs`. [1] https://nixos.org/nixops/manual/#idm140737322342384
* treewide: Remove usage of isNullDaniel Schaefer2019-04-29
| | | | isNull "is deprecated; just write e == null instead" says the Nix manual
* dovecot: dovenull user should have its own group.Drew Hess2018-10-22
| | | | | | | Quoting from https://wiki.dovecot.org/UserIds#dovenulluser: "It should belong to its own private dovenull group where no one else belongs to..."
* [bot] nixos/*: remove unused arguments in lambdasvolth2018-07-20
|
* [bot]: remove unreferenced codevolth2018-07-20
|
* nixos/modules: users.(extraUsers|extraGroup->users|group)Florian Klink2018-06-30
|
* nixos/dovecot: Fix usage of dhparams optionaszlig2018-05-10
| | | | | | | | | | | | | | | | | | | | | | | | | | The pull request that added dhparams (#39507) was made at the time where the dhparams module overhaul (#39526) wasn't done yet, so it's still using the old mechanics of the module. As stated in the release notes: Module implementers should not set a specific bit size in order to let users configure it by themselves if they want to have a different bit size than the default (2048). An example usage of this would be: { config, ... }: { security.dhparams.params.myservice = {}; environment.etc."myservice.conf".text = '' dhparams = ${config.security.dhparams.params.myservice.path} ''; } Signed-off-by: aszlig <aszlig@nix.build> Cc: @qknight, @abbradar, @hrdinka, @leenaars
* dovecot2: added ssl_dh using security.dhparamsJoachim Schiele2018-05-08
| | | | | The 18.03 channel includes dovecot 2.3, which requires ssl_dh to be set. -> fixes https://github.com/nixcloud/nixcloud-webservices/issues/21
* nixos/dovecot: set group in configFranz Pletz2018-03-28
| | | | | | The dovecot bump to 2.3.1 caused the dovecot service to fail to start because it would try to chgrp sockets to dovecot whereas our default dovecot group is called dovecot2.
* nixos/dovecot: no " in mailbox.nameRobert Schütz2018-02-09
|
* Wrapped ${mailbox.name} in "s to allow for space in mailbox names.Philipp Dörfler2018-02-05
|
* dovecot: fix config if mailboxes == []Robin Gloster2017-11-14
|
* nixos/dovecot: Fix createMailUser implementationaszlig2017-09-17
| | | | | | | | | | | | | | | | | | This option got introduced in 7904499542814b8a4d04fce8dc7ca8c383c083e7 and it didn't check whether mailUser and mailGroup are null, which they are by default. Now we're only creating the user if createMailUser is set in conjunction with mailUser and the group if mailGroup is set as well. I've added a NixOS VM test so that we can verify whether dovecot works without any additional options set, so it serves as a regression test for issue #29466 and other issues that might come up with future changes to the Dovecot service. Signed-off-by: aszlig <aszlig@redmoonstudios.org> Fixes: #29466 Cc: @qknight, @abbradar, @ixmatus, @siddharthist
* dovecot2: added quota, changed pop3 defaultjoachim schiele2017-09-15
|
* Getting rid of the var indirection and using a bin path insteadParnell Springmeyer2017-01-29
|
* Addressing PR feedbackParnell Springmeyer2017-01-28
|
* Merging against master - updating smokingpig, rebase was going to be messyParnell Springmeyer2017-01-26
|\
| * dovecot: Fix sieve scriptsPeter Jones2017-01-13
| | | | | | | | | | | | | | Make sure that the output of the sieve compiler produces files that have a newer time stamp than the source sieve script. Otherwise you get errors in the logs about Dovecot not being able to compile do to a permission issue.
* | setcap-wrapper: Merging with upstream master and resolving conflictsParnell Springmeyer2017-01-25
|\|
| * nixos: use types.lines for extraConfigEmery Hemingway2016-10-23
| |
| * dovecot service: require mail{User,Group} with sieveScriptsLangston Barrett2016-09-07
| | | | | | | | fixes #17702.
* | Adapting everything for the merged permissions wrappers work.Parnell Springmeyer2016-09-01
|/
* nixos: remove redundant services.dovecot2.package optionPeter Simons2016-05-06
| | | | | | | | | | | Instead of using this option, please modify the dovecot package by means of an override. For example: nixpkgs.config.packageOverrides = super: { dovecot = super.dovecot.override { withPgSQL = true; }; }; Closes https://github.com/NixOS/nixpkgs/issues/14097.
* symlinkJoin: accept set as an argument with additional optionsNikolay Amiantov2016-04-26
|
* Drop support for dovecot 2.1.x from Nixpkgs and NixOS.Peter Simons2016-03-11
| | | | | Version 2.2.x has been stable for a long time; let's give up support for the obsolete version.
* Fix Emacs syntax highlighting in NixOS dovecot module.Peter Simons2016-03-02
|
* dovecot service: add sendmail_pathNikolay Amiantov2016-02-10
|
* nixos/dovecot: add mail user and groupNikolay Amiantov2016-01-21
|
* nixos/dovecot: add sieveScripts supportNikolay Amiantov2016-01-21
|
* nixos/dovecot: symlink system-wide config and use itNikolay Amiantov2016-01-21
|
* nixos/dovecot: use new modules directoryNikolay Amiantov2016-01-21
|
* nixos/dovecot: add dovecot package to modules, force proper dovecot versionNikolay Amiantov2016-01-21
|
* nixos/dovecot: add 'protocols' optionNikolay Amiantov2016-01-21
|
* nixos/dovecot: use systemd's RuntimeDirectory instead of creating it by ↵Nikolay Amiantov2016-01-21
| | | | ourselves