Commit Graph

692 Commits

Author SHA1 Message Date
link2xt 283045dc4a Multiplex HTTPS, IMAP and SMTP on port 443
Services are distinguished based on ALPN.
For example,
    openssl s_client -connect example.org:443 -alpn smtp
gives SMTP connection and
    openssl s_client -connect example.org:443 -alpn imap
gives IMAP connection.
2024-07-11 10:30:46 +00:00
holger krekel 180cfb3951 get rid of xfailing test 2024-07-11 12:08:33 +02:00
holger krekel 610637da80 don't report on xfail, it's useless 2024-07-11 02:16:08 +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 aaa51cf234 add changelog PR link 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
holger krekel 698d328620 don't do PTR reverse checking 2024-07-08 21:48:27 +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 85bb301255 feat: faster and simpler DNS checks, better ip-address determination (#346)
* drastically reduce round-trips for dns checks, and do it during 'run' and 'dns' sub commands 
* provide progress-dots for dns checks and "--verbose" for seeing what is executed remotely 
* introduce ssh-mediated remote python function execution mechanism
2024-07-08 20:10:52 +02:00
link2xt 0d61c13c58 DKIM-sign Content-Type and oversign all signed headers
Oversigning (including header name in DKIM-Signature
more times that it appears in the mail) prevents
adding more headers with the same name
without invalidating DKIM signature.

We don't want middleboxes to insert a second From header,
adding Cc field to mails that don't have one etc.
2024-07-08 14:27:11 +00:00
holger krekel 15f79e0826 remove fix-file-owner which takes forever on servers with many mail directories
(it's unclear why this is still needed and should be fixed differently in any case)
2024-07-06 10:31:41 +02:00
holger krekel 3d96f0fdfa Support iterating over all users with doveadm commands (#344) 2024-07-06 01:19:57 +00:00
link2xt 733b9604ba dovecot: enable gzip compression on disk 2024-07-05 20:13:03 +00:00
link2xt 969fdd7995 Remove sieve to enable hardlink deduplication in LMTP
LMTP does not deduplicate messages
if sieve plugin is used.

We don't check for Auto-Submitted header anymore
as iOS application has a notification service
and should not display "You have a new message".
2024-07-05 19:22:26 +00:00
link2xt b1d11d7747 Revert 57c29c14a4
Apparently this causes outlook.com messages to be rejected
even though they don't use `l=` tag.
2024-07-03 20:36:31 +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
link2xt 17389b8667 Increase number of logged in IMAP sessions to 50000 2024-07-01 17:20:23 +00:00
link2xt 635b5de304 Replace bash with /bin/sh 2024-07-01 11:47:38 +02: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
B. Petersen 0483603d4a fix headline ordering numbers, typo
before, the order was 2 - 3.1 - 3.2 - 3
i think, the gist was to have subheadlines under "2.";
this is fixed by this PR.

moreover, the PR contains a small typo fix.
2024-06-24 14:26:55 +02:00
missytake 6b59b8be44 CI: accept ns.testrun.org host key 2024-06-19 14:34:17 +02:00
missytake 07ffc003e4 CI: fix check whether acme certs exist 2024-06-18 14:49:37 +02:00
missytake 4cb62df33f CI: change to staging2.testrun.org 2024-06-18 14:49:37 +02:00
missytake ef58f011fb CI: disable CAA record for now 2024-06-18 14:49:37 +02:00
Christian Hagenest f7ef236ac8 Revert "CI: disable requesting new certs for staging.testrun.org"
This reverts commit 127d9d6460.
2024-06-18 14:49:37 +02:00
Christian Hagenest dbe906a331 bump actions/checkout to v4 in test-and-deploy.yml 2024-06-18 14:49:37 +02:00
Christian Hagenest 3899f41c61 switch to checkout@v4 #301 2024-06-18 14:49:37 +02:00
link2xt 57c29c14a4 Reject DKIM signatures that do not cover the whole message body 2024-06-18 02:48:54 +00: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