Commit Graph

56 Commits

Author SHA1 Message Date
Antoine Nguyen
4b0c9e4376 WIP: dovecot 2.4 support 2025-09-16 09:43:18 +02:00
Antoine Nguyen
95e2010957 Few fixes 2025-08-19 15:34:54 +02:00
Spitap
9b7489ea58 Fixed dovecot #2 2025-08-19 15:34:54 +02:00
Spitfireap
9a582fb1d0 Update after rebase 2025-08-19 15:33:56 +02:00
Antoine Nguyen
b7106bb15a Fixed file copy issue 2025-08-19 15:33:25 +02:00
Spitfireap
a8b2f9f015 create sieve dir if needed 2025-08-19 15:33:25 +02:00
Spitfireap
86481417cf Made junk sieve optional 2025-08-19 15:33:25 +02:00
Spitfireap
e73d318e14 Made 90-sieve a template 2025-08-19 15:33:24 +02:00
Spitfireap
38eae741bf added sieve rule to move spam to junk folder 2025-08-19 15:32:55 +02:00
Antoine Nguyen
53669b48de Compat with Modoboa 2.4.0 2025-07-03 10:43:07 +02:00
Antoine Nguyen
33cad9b29b Install dovecot from backports if Debian 12 2024-10-16 12:03:19 +02:00
Antoine Nguyen
1e7b8209cf Fixed createapplication call 2024-07-12 18:43:50 +02:00
Antoine Nguyen
2572dd64d1 Added setup instructions for Dovecot oauth2 support 2024-07-07 10:48:05 +02:00
Spitap
8a0b3cda9e Added python module to base.py 2023-08-30 09:53:26 +02:00
Spitap
1a528282ce Removed duplicates 2023-08-30 09:47:10 +02:00
Spitap
b1da76cfbd Fixed venvpath 2023-08-30 09:05:42 +02:00
Spitap
ef1bace29e Cleaning code the 2nd 2023-08-29 20:42:44 +02:00
Spitap
0b0e2a4e6a Updated for 2.2 2023-08-29 20:07:26 +02:00
softwarecreations
9d24f17632 Fixed permissions of /etc/dovecot/conf.d/10-ssl-keys.try to resolve issue 2570
Resolves modoboa/modoboa#2570

When dovecot first starts up, root reads the conf and is able to read and load the keys in /etc/dovecot/conf.d/10-ssl-keys.try Inside that file, it can read the private key (that only root has permissions to read)

However when we try delete a user, doveconf tries to read the config (to find the user's mailbox) doveconf MUST fail to open 10-ssl-keys.try, which is fine, because 10-ssl.conf says

!include_try /etc/dovecot/conf.d/10-ssl-keys.try

So if doveconf can't open 10-ssl-keys.try it will will keep going. However if doveconf can read 10-ssl-keys.try then doveconf crashes saying something like:

Failed to retrieve mailbox location (b doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl-keys.try line 11: ssl_key: Can't open file /etc/ssl/example.com/privkey.pem: Permission denied

And then the attempt to delete the user's mailbox fails.

According to @gsloop, "the API calls doveadm to return the directory that holds the users mailbox"

I did a new installation, the file /etc/dovecot/conf.d/10-ssl-keys.try was already owned by root:root but it had 644 permissions. So the line that I added corrects that.
2023-03-10 13:03:43 +02:00
Antoine Nguyen
8b376b0f69 Fixed typo
see #472
2023-01-24 13:02:13 +01:00
Spitap
a6935bba89 Simplifeid setup_user
Co-Authored-By: Antoine Nguyen <tonio@ngyn.org>
2023-01-24 09:25:18 +01:00
Spitap
7cae12b32e Fix multiple hard-coded vmail 2023-01-23 19:24:28 +01:00
Spitap
6144f7967c make use of mailbox_owner 2023-01-12 11:22:26 +01:00
Antoine Nguyen
37633008cb Fixed restore mode 2022-11-09 10:30:44 +01:00
Antoine Nguyen
8b1d60ee59 Few fixes 2022-11-08 17:19:23 +01:00
Antoine Nguyen
2b5edae5d5 WIP: Improved backup/restore system. 2022-11-06 10:30:24 +01:00
Antoine Nguyen
61838dbe4d Check if restore is defined before doing anything else.
fix #453
2022-11-05 09:30:50 +01:00
Antoine Nguyen
1afb8e61fc Merge pull request #424 from Spitfireap/restore
Backup & restore system
2022-11-03 12:17:16 +01:00
Spitap
84d13633a1 fixed ssl_min_protocol setting 2022-10-27 22:37:47 +02:00
Spitap
fe7df276fc Check dovecot version greater 2022-10-27 17:25:39 +02:00
Spitap
8f34f0af6f Fixes ssl permission error, updated ssl_protocol parameter 2022-10-27 17:00:58 +02:00
Spitap
5c9d5c9a03 DKIM keys restore, Radicale backup/restore, fixes 2022-10-25 16:58:57 +02:00
Spitap
e30add03fd Update from master 2022-09-19 15:39:05 +02:00
Spitap
d75d83f202 more refactoring 2022-09-19 15:13:44 +02:00
Spitap
b0d56b3989 PEP formating 2022-09-15 11:32:57 +02:00
Spitap
53e3e3ec58 Better UX, use of os to concatenate path 2022-08-05 15:20:11 +02:00
haris
743f2b2fa2 Fix permissions for modoboa dovecot mailbox commands (modoboa/modoboa/issues/2157) 2022-08-01 14:39:55 +02:00
Spitap
e546d2cb23 Better UX 2022-07-27 16:32:59 +02:00
Spitap
563979a7dd fixed mail backup/restore 2022-07-27 15:51:22 +02:00
Spitap
15768c429e Restore workflow done 2022-07-26 12:07:42 +02:00
Antoine Nguyen
704d73cb4d Fixed dovecot warning. 2018-04-02 16:23:47 +02:00
Antoine Nguyen
d813039270 Added Radicale setup. (#194)
* Added Radicale setup.

see #193

* Fixed setup on CentOS.
2018-03-31 14:12:53 +02:00
Antoine Nguyen
2b1456603d Enabled post-login tracking. 2017-08-11 16:06:50 +02:00
Antoine Nguyen
0c6647e9a6 Fixed dovecot config when openssl 1.1 2017-06-23 10:58:14 +02:00
Antoine Nguyen
ece218bbbe Enable all services.
see #119
2017-04-24 18:01:45 +02:00
Antoine Nguyen
7d13debf55 Enable dovecot master users.
see #96
2017-02-01 17:58:56 +01:00
Antoine Nguyen
89cdc314ea Working setup for CentOS. 2016-06-01 15:30:59 +02:00
Antoine Nguyen
451c3b4695 CentOS support. 2016-05-31 12:41:50 +02:00
Antoine Nguyen
6e3a2ab620 Add possibility to enable pop3 protocol for Dovecot.
fix #17
2016-01-26 13:48:30 +01:00
Antoine Nguyen
91ae52b26d Better file path.
see #13
2015-12-09 18:07:50 +01:00