Martin Weinelt
20f0e767cb
users: remove unused common import
2026-03-24 01:58:37 +01:00
Martin Weinelt
e13736db67
Group storage and vmail user options at mailserver.storage
...
Create a nicer option structure that deals with the mail storage and its
owner, uid, group and gid. Also includes the directory layout as a
property of how mails are stored..
2026-03-24 01:57:31 +01:00
Martin Weinelt
6826d11c58
users: remove global with config.mailserver
2026-03-24 01:35:48 +01:00
Martin Weinelt
e9337b346f
Rename mailserver.loginAccounts to mailserver.accounts
...
The "login" prefix makes this option more confusing rather than clearer,
because what other account types are there? LDAP ones for example, but
you can login with those too, so the prefix is pointless.
2026-03-24 01:35:48 +01:00
Martin Weinelt
06cc71c76e
treewide: add language annotations for inline code
...
Instruct editors to correctly highlight and evaluate inline code blocks.
2026-03-12 12:59:03 +01:00
Ryan Gibb
12ae5dd89b
support unhashed password files
2026-03-05 11:06:01 +00:00
Martin Weinelt
1cb4295b74
Remove dovecot service name compat code
2025-11-16 18:18:22 +01:00
Martin Weinelt
d6d2053b80
dovecot: use marker option as unit name migration indicator
...
In nixpkgs we expose `services.dovecot.hasNewUnitName` option that can be
safely inspected to understand that whether to use the `dovecot` systemd
service name instead of `dovecot2`.
2025-07-07 01:10:19 +02:00
Martin Weinelt
1a7f3d718c
treewide: reformat with nixfmt-rfc-style
2025-06-15 03:39:44 +02:00
Martin Weinelt
c7497cd5f6
treewide: remove redundant parenthesis in nix code
2025-06-15 03:28:48 +02:00
Bjørn Forsman
a3b03d1b5a
Use umask for race-free permission setting
...
Without using umask there's a small time window where paths are world
readable. That is a bad idea to do for secret files (e.g. the dovecot
code path).
2023-07-17 18:22:16 +02:00
Milan Pässler
9c80a66f57
Make vmail_user a system user
...
This is required since https://github.com/NixOS/nixpkgs/pull/115332
2021-04-18 15:41:05 +02:00
Henri Menke
c00fc587f5
Configurable sieve script directory
2020-11-21 14:39:49 +01:00
Galen Abell
6563abc1c4
Fix password hash file generation behavior
...
- Move the "create password hash file from hashed password" behavior to
a separate variable, since having it in the default field of config
would always cause the warning to trigger
- Change type of hashedPassword to `nullOr str`
2020-03-06 17:27:47 +00:00
Robin Raymond
c252ecb869
possible fix for #86
2018-02-22 23:12:39 +01:00
Ruben Maher
929cac8f50
mail-server/users.nix: don't expand variables in sieve script
2018-02-19 09:32:40 +10:30
Robin Raymond
436cf0513b
add vitual mail users
2018-02-18 12:17:32 +01:00
Robin Raymond
aca43875dc
update copywright
2018-01-29 10:34:27 +01:00
Andrey Golovizin
aeedb25daf
Use sieve_default option for sieveScript
...
https://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration#Visible_Default_Script
2018-01-07 14:05:16 +01:00
Robin Raymond
2d0648e0f4
move from real users to passwd file
2017-12-22 16:08:42 +01:00
Ruben Maher
c2495e69f3
default.nix, mail-server/users.nix: add per-user sieve script
2017-11-20 09:04:32 +10:30
Ruben Maher
cd85fd9d2f
s/vmailUIDStart/vmailUID/g
...
The name vmailUIDStart is not consistent with how it is being used (as the UID
of the vmail user).
2017-11-19 07:10:49 +10:30
John Boehr
16fb41de01
Change domain to fqdn and extraDomains to domains
2017-11-11 09:45:06 +00:00
John Boehr
f372754052
Qualify user names
2017-11-09 14:17:03 -08:00
John Boehr
ebd0f656ed
Preliminary multi-domain support
2017-11-09 13:13:27 -08:00
Robin Raymond
431dcc3b0a
Merge pull request #20 from eqyiel/fix-gid-start
...
users.nix: ensure the group getting its gid set is vmailGroupName
2017-11-05 10:47:56 +01:00
Ruben Maher
8372b85369
users.nix: ensure the group getting its gid set is vmailGroupName
2017-11-05 19:15:56 +10:30
Ruben Maher
e91d237d81
Fix r-raymond/nixos-mailserver#18
2017-11-05 19:12:39 +10:30
Robin Raymond
bbdcdfc0a7
fix vmail bug
2017-10-18 09:20:44 +02:00
Robin Raymond
6ac36a1092
changing names
2017-10-18 09:10:51 +02:00
Robin Raymond
9f40c38bc6
remove variables from vmail user
2017-10-18 09:09:04 +02:00
Robin Raymond
b06775cef7
add vmail user name again - otherwise postfix errors on startup
2017-09-22 18:57:14 +02:00
Robin Raymond
c574d0ea03
remove name from vmail user
2017-09-21 16:14:15 +02:00
Robin Raymond
5915f4412d
trying to fix travisci bug
2017-09-21 16:11:46 +02:00
Robin Raymond
26ac134660
make users into module
2017-09-02 13:58:42 +02:00
Robin Raymond
b5fccc7e39
camelCase
2017-09-02 13:23:37 +02:00
Silvan Mosberger
692a677194
make configuration a nixos module
2017-08-30 15:09:38 +02:00
Robin Raymond
f51811b236
add password hashes
2017-08-13 15:51:41 +02:00
Robin Raymond
1d53a88a21
finish up dovecot configuration
...
also factor out users into own file
2017-08-12 12:28:46 +02:00
Robin Raymond
60574841c6
restructuring; now works with 17.03/17.09-pre
...
I had to remove some of the features, they need to be slowely added in
again.
2017-08-12 11:27:19 +02:00