Commit Graph
1634 Commits
Author SHA1 Message Date
Wez Furlong ea1efb9b36 be more selective about kicking off the ci 2024-01-04 11:15:10 -07:00
Wez Furlong e20488382c docs: update for amazon being available as a stable build 2024-01-04 10:56:41 -07:00
Wez Furlong 20bec64869 amazon 2023 stable is now also available 2024-01-04 10:54:26 -07:00
Wez Furlong ef941c0bae we now have a stable release available for amzn, so enable it 2024-01-04 10:53:04 -07:00
Wez Furlong 02080a1e85 move the note to the right file 2024-01-03 14:03:04 -07:00
Wez Furlong b1375f8e6b docs: update for latest release 2024-01-03 13:49:55 -07:00
dependabot[bot] 63cde9c720 build(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-28 08:50:01 -07:00
Wez Furlong 5bd8bdbdbf fix dependabot syntax 2023-12-28 08:46:20 -07:00
Wez Furlong ff7222013e update dependabot 2023-12-28 08:39:08 -07:00
Wez Furlong 4b94764d87 improve error message for /etc/resolv.conf 2023-12-28 08:38:29 -07:00
Wez Furlong 1f656a1c5b ci: adjust how we prep for running tests 2023-12-22 12:45:33 -07:00
Wez Furlong d1264e753b rocky: use individual executable release build
`cargo build --release` will build all packages with the full
combination of enabled features, resulting in executables such as `kcli`
getting linked with rocksdb and openssl.

When we build packages we want to avoid that. In the CI we were running
`cargo nextest run --release` thinking that it would avoid recompiling
some deps and that we could reuse those "release" binaries in the final
package without recompiling. That isn't true, so let's just run the
tests in debug mode (should be slightly faster to build), then build
the individual executables in release mode, so that we get slimmer
executables.

We'll see how this works for rocky, then apply similar changes to
the rest of CI.
2023-12-22 10:28:06 -07:00
Wez Furlong e6973c2a04 slim down some deps
This helps to remove "false" deps on things like openssl; now that
is linked in only to those components that need it (eg: things that
use unbound for dnssec, or the smtp client for DANE).

This makes the binaries other than kumod (which still has max deps)
a few MB smaller; not a massive win, but nice all the same.
2023-12-22 10:24:30 -07:00
Wez Furlong cb5ebe0ab4 Add Dockerfile for minimal image build
This uses alpine to build and the docker scratch image for installation,
resulting in an image of 150MB in size, compared to the 251MB size of
our current ubuntu based image.

I think we can shrink things down a bit more; for example, the kcli
utility pulls in the message crate for some of its types, but ends up
linking in openssl and other deps.  Splitting out the types into a
message-types crate might help to reduce the size of that executable.
Similarly, the other executables seem to have more stuff linked in
than is strictly needed.
2023-12-21 21:15:49 -07:00
Mike Hillyer 3d0034b9c0 Formatting? 2023-12-21 18:13:30 -05:00
Mike Hillyer 1c794c594d Updating TSA Init to allow for easy config by uncommenting the line pointing at the second shaping file. 2023-12-21 18:08:31 -05:00
Mike Hillyer 45c0a190d2 Fix formatting of one of the notes on the config tutorial page. 2023-12-21 15:06:30 -05:00
Mike Hillyer 998f6d5707 Add video link to example config video to tutorial page. 2023-12-21 14:52:29 -05:00
Mike Hillyer 7e29990e0d Add video embed to example config docs page. 2023-12-21 14:51:19 -05:00
Mike Hillyer 2f93cdbe14 Update commented out shaping setup call to point to user version of shaping file to make it work better for copy/paste users. 2023-12-21 14:18:38 -05:00
Mike Hillyer 3799d4f34a Update example config to make call to TSA helper setup more succinct. 2023-12-21 12:32:30 -05:00
Mike Hillyer a14ce4c672 Add non-canonical line ending check to example config to help with SMTP Smuggling. 2023-12-20 09:10:02 -05:00
Mike Hillyer 9ab48b8d13 Make the TSA config step in the config section of the tutorial more clear. 2023-12-19 18:02:28 -05:00
Wez Furlong 2b73a48e18 docker: copy the docker runner script into the image 2023-12-15 06:47:23 -07:00
Wez Furlong 7498dfe458 docs: fix broken links in smtplisteners page 2023-12-14 17:20:13 -07:00
Wez Furlong 5d206834ce docs: fixup outdated source + pool information
Some sections didn't get updated to match changes
around how pools and sources are retrieved from the
configuration.

Thanks to @farhadhf for raising this

closes: https://github.com/KumoCorp/kumomta/pull/107
2023-12-14 17:17:06 -07:00
Wez Furlong 2925c7f565 docs: add missing socks5 config to reference section 2023-12-14 17:17:06 -07:00
Mike Hillyer 42d8a8cd03 Bring the configuration page of the tutorial in line with the latest example config. 2023-12-14 16:52:52 -05:00
Wez Furlong b5b9d510d5 rfc5965: make order of extensions well-defined for testing purposes 2023-12-14 12:12:47 -07:00
Wez Furlong 80a9f30d05 rfc5965: add another test case 2023-12-14 10:33:08 -07:00
Wez Furlong ce60eeb913 rfc5965 parser now accepts historic Received-Date and Version: 0.1
The version header from this old format is actually not at all
compatible with a strict reading of rfc5965 which allows only for
integer version fields; it is defined as `[1-9][0-9]*` which has
no room for decimal points.

Relax the field to accept an arbitrary string.

If Arrival-Date is not found, try pulling the equivalent information
from the historic Received-Date field.
2023-12-14 09:49:14 -07:00
Wez Furlong 0fff69c010 fix parsing durations from integers
closes: #108
2023-12-14 08:31:45 -07:00
Wez Furlong e9ec19fd23 fix an issue where msg:[sg]et_meta would not round-trip nil values 2023-12-13 14:21:12 -07:00
Wez Furlong 7ff5c4115e dkim helper: give a clearer error message when From: header is missing
Previously, we'd just generate an attempt to index `nil` error
message, and the result would be a 421 technical difficulties.

Promote this to a 522 with an explanation about the missing
From header.
2023-12-13 10:21:37 -07:00
Mike Hillyer bc691df0da Tweak the DKIM diagram flow. 2023-12-10 11:12:06 -05:00
Mike Hillyer ac0aff9723 Updating DKIM helper example to use the full set of RFC recommended headers for signing, update the sending IP and Queue helper examples to use matching pool names so those copy/pasting will have an easier time, fix example is inbound doc to use correct linting. 2023-12-10 10:30:59 -05:00
Wez Furlong 803855f311 instructions for amazonlinux:2023 2023-12-08 13:59:42 -07:00
Wez Furlong 1c9e2f1f4b ci: another crack at amazonlinux:2023
Install the full version of gpg
2023-12-08 13:32:45 -07:00
Wez Furlong ce3ddac0aa ci: maybe also add amazonlinux:2023 2023-12-08 12:38:40 -07:00
Wez Furlong 45bb89cede docs: show how to install rpm on amazon linux 2 2023-12-08 12:14:47 -07:00
Wez Furlong e691a6b571 amazon: disable stable repo until we publish an rpm there 2023-12-08 12:09:59 -07:00
Wez Furlong 7ebebb83bb ci: make signer fail loudly if it fails 2023-12-08 11:57:21 -07:00
Wez Furlong 91f56f99d9 docs: fix some build and syntax errors 2023-12-08 11:56:36 -07:00
Wez Furlong 80dc74f37f ci: more stuff to coax the amazon build into success 2023-12-08 11:51:23 -07:00
Wez Furlong 6555dfb3d8 ci: amazonlinux:2 uses yum not dnf
Add likely repo file contents
2023-12-08 11:12:46 -07:00
Wez Furlong 9ad53fcd46 allow throttle tests to succeed when redis-server is not installed
There is no redis package on amazonlinux:2, so skip it
2023-12-08 11:04:29 -07:00
Wez Furlong 4455aa6726 ci: another pass at amazon 2023-12-08 10:52:34 -07:00
Wez Furlong 1171e1ce25 ci: fix build of amazon builder image 2023-12-08 10:20:42 -07:00
Wez Furlong eef7e87c6b ci: add amazon build
maybe? Let's see if it works
2023-12-08 10:06:30 -07:00
Wez Furlong d7e1c6afad get-deps.sh: teach it about amazon linux 2023-12-08 09:45:18 -07:00