holger krekel
dd770f7e10
small streamlining
2024-07-28 11:12:00 +02:00
holger krekel
4dbb19db46
delete users from mailboxes_dir
2024-07-28 11:12:00 +02:00
holger krekel
ad151c2cc1
remove last_login
2024-07-28 11:12:00 +02:00
holger krekel
28f357b598
write last login differently
2024-07-28 11:12:00 +02:00
holger krekel
bf0f6e2303
address review comments: renamed test and using socketserver ThreadingUnixStreamServer
2024-07-22 13:51:32 +02:00
holger krekel
35a0f07887
remove startup/socket setup from metadata
2024-07-22 13:51:32 +02:00
holger krekel
52aa7cad06
make doveauth also use generic dictproxy
2024-07-22 13:51:32 +02:00
holger krekel
22d77f4680
splitout base class for dictproxy
2024-07-22 13:51:32 +02:00
holger krekel
46c34bfbea
use class for dispatching lookups
2024-07-22 13:51:32 +02:00
link2xt
e8bf051cd0
refactor: use f-string in logging where it is easy
...
% is only interpreted if there are two or more arguments:
<https://docs.python.org/3/library/logging.html#logging.Logger.debug >
So it is safe to pass a single argument with already formatted
string.
2024-07-16 09:13:56 +00:00
holger krekel
79a9d2345b
more tests and refinements
2024-07-16 10:34:08 +02:00
holger krekel
c4f46dc499
fix maildata handling after prematurely merging #369
2024-07-13 19:20:06 +02:00
Daniel Kahn Gillmor
c1fd573de2
Add tests for alternate mail subjects
2024-07-13 18:33:42 +02:00
Daniel Kahn Gillmor
c6b083472f
Accept encrypted messages that use hcp_minimal
...
in draft-ietf-lamps-header-protection-22, hcp_minimal recommends
"[...]" as the obscured Subject header. In the pending draft
-23 (hopefully released this week, going into a working group last
call), the same HCP will be renamed to hcp_baseline, but it still
recommends the use of "[...]" for the obscured Subject header.
2024-07-13 18:33:42 +02:00
link2xt
02df395dab
filtermail: do not inject addresses into fromat string
2024-07-13 11:46:49 +02:00
holger krekel
73e6f5e6da
apply last review suggestions
2024-07-10 19:20:51 +02:00
holger krekel
b7e6926880
changing newline-naming as suggested
2024-07-10 19:20:51 +02:00
holger krekel
a7ef6ee35b
don't use kwargs for overrides parameter
2024-07-10 19:20:51 +02:00
holger krekel
920e062293
let config.get_user_maildir return a Path
2024-07-10 19:20:51 +02:00
holger krekel
794a0608a1
Path-ify config.mailboxes_dir
2024-07-10 19:20:51 +02:00
holger krekel
fc09653de3
remove all occurences of hardcoded /home/vmail for database and mailbox dirs
2024-07-10 19:20:51 +02:00
holger krekel
c8661fd135
introduce "mailboxes_dir" config ini option to avoid hardcoding /home/vmail/mail/....
...
in source code and to improve testability.
2024-07-10 19:20:51 +02:00
holger krekel
4b0600a453
be a bit more lenient on keeping old users
2024-07-10 00:02:34 +02:00
holger krekel
f1c10cac2b
chunked deletion
2024-07-10 00:02:34 +02:00
holger krekel
af83ca0235
ensuring int-ness of last_login
2024-07-09 19:12:55 +02:00
holger krekel
8f6870ebb7
fix and streamline deletion test
2024-07-09 19:12:55 +02:00
holger krekel
0e8bdbd3e3
streamline address deletion test
2024-07-09 19:12:55 +02:00
holger krekel
0d593c22d1
apply code review and also catch "." as username
2024-07-09 19:12:55 +02:00
holger krekel
a1f0a3e23b
Apply suggestions from code review
...
Co-authored-by: link2xt <link2xt@testrun.org >
2024-07-09 19:12:55 +02:00
holger krekel
9b15d8de24
more precise test, streamline wording (accounts -> address)
2024-07-09 19:12:55 +02:00
holger krekel
66c7115cfc
run removal of inactive users daily
2024-07-09 19:12:55 +02:00
holger krekel
823386d824
delete inactive users works
2024-07-09 19:12:55 +02:00
holger krekel
433cb71211
basic remove-users functionality and tests
2024-07-09 19:12:55 +02:00
link2xt
62c60d3070
doveauth: log when a new account is created
2024-07-09 00:24:06 +02:00
link2xt
4292355310
Add nonci_accounts metric
...
Calculating this with PromQL is not easy
due to interpolation.
Also add HELP and TYPE metadata for each metric.
2024-07-08 18:33:18 +00:00
holger krekel
3d96f0fdfa
Support iterating over all users with doveadm commands ( #344 )
2024-07-06 01:19:57 +00:00
link2xt
e948bdaea8
filtermail: do not allow ASCII armor without actual payload
...
Last line is removed as "optional checksum",
so it can contain anything.
Make sure that there is at least some actual payload
besides this line.
2024-07-03 19:36:07 +00:00
holger krekel
67be981176
make a more complete test
2024-06-27 15:36:39 +02:00
missytake
0b8402c187
doveauth: ensure username length
2024-06-27 15:36:39 +02:00
missytake
7c98c1f8c9
test: ensure minimum username length
2024-06-27 15:36:39 +02:00
link2xt
2b5d903cc5
Allow SKESK packets in encrypted mails
...
They are not used by Delta Chat now,
but this will allow to start using them in the future.
2024-06-13 19:48:59 +02:00
link2xt
c8d270a853
Check that OpenPGP has only PKESK and SEIPD packets ( #323 )
2024-06-12 17:21:37 +00:00
link2xt
72f4e9edbf
filtermail: remove support for unencrypted MDNs
...
Delta Chat does not send them since 1.43.
1.44 has been released for a while already
and 1.46 is in the process of being released.
2024-06-11 16:18:39 +00:00
link2xt
1ce0a2b0ba
Improve filtermail checks for encrypted messages
...
Ensure that first part only contains "Version: 1"
and second part only contains base64 payload
enclosed in "-----BEGIN PGP MESSAGE-----"
and "-----END PGP MESSAGE-----".
2024-06-11 16:18:39 +00:00
Christian Hagenest
772b86a4b5
update delete-mails-after value in test_config.py
2024-05-18 23:06:03 +02:00
Christian Hagenest
e0013b9bee
change delete_mails_after default to 20
2024-05-18 23:06:03 +02:00
link2xt
76b56d7b78
metadata: add support for /shared/vendor/deltachat/irohrelay
2024-05-07 15:52:54 +00:00
link2xt
879cffc056
Configure more lints and switch from black to ruff format
2024-05-06 14:41:00 +00:00
link2xt
e1b1a945b1
Authenticate echobot by passing /run/echobot/password to doveauth
2024-05-05 15:25:44 +00:00
link2xt
0493e27312
Move echobot into /var/lib/echobot
2024-05-05 15:25:44 +00:00