-
-
Notifications
You must be signed in to change notification settings - Fork 66
chore: merge chatmail/filtermail into chatmail/relay to have a monorepo #1023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
4185ebe
6340f47
5f4399f
f9abff0
401fd39
392def1
d25faf4
d2cca26
c78df00
00fb3d8
c15f186
86f8651
33e975a
353f1dc
f2f7767
c010d99
41e9e9f
2b4205a
aab39be
9eb86b2
e214a74
06b7b0c
b5a56a6
ca6ccd9
cab16fc
0990a23
3be4c4d
aa5999c
c010415
9a8e4fe
23231d4
95fd106
7be2004
47f1636
8d18b73
0ee1e99
c1f7285
cc1604b
10fd148
21f0614
85d6c38
3bf8395
a096d05
4837754
4eb7e9f
6e2a379
083ec1a
7d4fac6
94f1b29
54982b1
288afa3
6145be4
38627bf
8a1684d
52208c4
e1841cb
ff3ffd5
2e1c384
a5c6880
82618de
e62b161
6bb90f8
edca7cb
3054b31
f149797
954d950
962de09
3a571b7
c088cbf
a8033b1
07496ab
0d7f5d7
779e7ca
82a9850
8dd9436
b31e13a
49df79b
b47b859
23b28bc
2aa894f
9a4a54c
7da0c34
fb77c5b
a4497bc
ca3393c
621eaee
05cbf29
0f58942
5575df7
8ad6592
0feb137
2450d1d
ec0413b
cf64778
45eaa2f
dee00eb
e156ce9
0e1b717
1e35631
3eb3b86
17ccd3e
c1a4d99
21aaea0
1b1585e
0a652e6
5b79d2d
36ff21f
94dcd6c
457461b
59944a4
bc769e0
d29cbaf
1011903
5295d17
36921dd
a65e7a1
2727441
e26cca0
3896044
b7a213f
d74e5b8
e2be5dc
91d09ab
664ad57
847e195
c84a96a
febfb90
a6361a2
893ceab
e9a6322
6d6517f
8a60245
f82f34d
2538caa
b0214a7
939e536
fb5a259
73b684f
d3f5412
81aac3c
488bbcb
a66887b
b36856a
7d0db2c
7ea7904
c745252
db86cfc
03ca4a0
ac9df36
d5ac67e
222bf36
4d7bcf5
0fce0a2
7f14693
d00d2b8
5cdae22
ed5dfbe
5717940
88e2124
df6c9d7
2bba729
9613b2f
678bf2a
e47740f
a0fe9c4
6b3d475
827bd5f
3fd3098
a9ce34c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "cargo" | ||
| directory: "/filtermail" | ||
| schedule: | ||
| interval: "monthly" | ||
| cooldown: | ||
| default-days: 7 | ||
|
|
||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
| cooldown: | ||
| default-days: 7 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: chatmaild CI | ||
|
|
||
| on: | ||
| # Triggers when a PR is merged into main or a direct push occurs | ||
| push: | ||
| branches: [ "main" ] | ||
|
|
||
| # Triggers for any PR (and its subsequent commits) targeting the main branch | ||
| pull_request: | ||
| branches: [ "main" ] | ||
|
|
||
| permissions: {} | ||
|
|
||
| # Newest push wins: Prevents multiple runs from clashing and wasting runner efforts | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| tox: | ||
| name: isolated chatmaild tests | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| # Checkout pull request HEAD commit instead of merge commit | ||
| # Otherwise `test_deployed_state` will be unhappy. | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha }} | ||
| persist-credentials: false | ||
| - name: download filtermail | ||
| run: curl -L https://github.com/chatmail/filtermail/releases/download/v0.7.4/filtermail-x86_64 -o /usr/local/bin/filtermail && chmod +x /usr/local/bin/filtermail | ||
| - name: run chatmaild tests | ||
| working-directory: chatmaild | ||
| run: pipx run tox | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,4 +1,4 @@ | ||||||
| name: CI | ||||||
| name: cmdeploy CI | ||||||
|
|
||||||
| on: | ||||||
| # Triggers when a PR is merged into main or a direct push occurs | ||||||
|
|
@@ -18,24 +18,8 @@ concurrency: | |||||
|
|
||||||
|
|
||||||
| jobs: | ||||||
| tox: | ||||||
| name: isolated chatmaild tests | ||||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - uses: actions/checkout@v6 | ||||||
| # Checkout pull request HEAD commit instead of merge commit | ||||||
| # Otherwise `test_deployed_state` will be unhappy. | ||||||
| with: | ||||||
| ref: ${{ github.event.pull_request.head.sha }} | ||||||
| persist-credentials: false | ||||||
| - name: download filtermail | ||||||
| run: curl -L https://github.com/chatmail/filtermail/releases/download/v0.7.4/filtermail-x86_64 -o /usr/local/bin/filtermail && chmod +x /usr/local/bin/filtermail | ||||||
| - name: run chatmaild tests | ||||||
| working-directory: chatmaild | ||||||
| run: pipx run tox | ||||||
|
|
||||||
| scripts: | ||||||
| name: deploy-chatmail tests | ||||||
| cmdeploy: | ||||||
| name: cmdeploy tests | ||||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - uses: actions/checkout@v6 | ||||||
|
|
@@ -61,6 +45,10 @@ jobs: | |||||
| with: | ||||||
| cmlxc_version: main | ||||||
| cmlxc_commands: | | ||||||
| sudo apt-get update && sudo apt-get install -y musl-tools | ||||||
| rustup target add x86_64-unknown-linux-musl | ||||||
| export CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Looking at the job log, does not reach the next step as each line runs in its own environment and thus is a noop. |
||||||
| cd repo/filtermail && RUSTFLAGS="-Ctarget-feature=+crt-static -Clink-self-contained=yes" cargo build --release --target x86_64-unknown-linux-musl | ||||||
| cmlxc init | ||||||
| # single cmdeploy relay test | ||||||
| cmlxc -v deploy-cmdeploy --source ./repo cm0 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
if we do build filtermail at all times, we should probably also use it in the test, otherwise we dont need to build it; though we will have a path clash here that will need fixing in cmlxc. |
||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,79 @@ | ||||||||||||||||||||||||||||||
| name: filtermail CI | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| permissions: {} | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||||||||||||||
| push: | ||||||||||||||||||||||||||||||
| branches: | ||||||||||||||||||||||||||||||
| - main | ||||||||||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||||||||||
| branches: | ||||||||||||||||||||||||||||||
| - main | ||||||||||||||||||||||||||||||
|
missytake marked this conversation as resolved.
|
||||||||||||||||||||||||||||||
| paths: | ||||||||||||||||||||||||||||||
| - "filtermail/**" | ||||||||||||||||||||||||||||||
|
Comment on lines
+10
to
+14
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| concurrency: | ||||||||||||||||||||||||||||||
| group: ${{ github.workflow }}-${{ github.ref }} | ||||||||||||||||||||||||||||||
| cancel-in-progress: true | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||
| fmt: | ||||||||||||||||||||||||||||||
| name: Check Formatting | ||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | ||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||
| persist-credentials: false | ||||||||||||||||||||||||||||||
| - uses: dtolnay/rust-toolchain@2c7215f132e9ebf062739d9130488b56d53c060c # master | ||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||
| toolchain: nightly | ||||||||||||||||||||||||||||||
| components: rustfmt | ||||||||||||||||||||||||||||||
| - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 | ||||||||||||||||||||||||||||||
| - uses: taiki-e/install-action@2ca9b94c269419b7b0c711c09d0b21c4e1d51145 # v2.83.1 | ||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||
| tool: taplo-cli | ||||||||||||||||||||||||||||||
| - run: cd filtermail && taplo format --check && cargo fmt --check | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| cargo-machete: | ||||||||||||||||||||||||||||||
| name: Check Unused Dependencies | ||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | ||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||
| persist-credentials: false | ||||||||||||||||||||||||||||||
| - uses: bnjbvr/cargo-machete@ac30a525c0a8d163a92d727b3ff079ee3f6ecb08 # v0.9.2 | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| lint-clippy: | ||||||||||||||||||||||||||||||
| name: Check Clippy | ||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||
| strategy: | ||||||||||||||||||||||||||||||
| fail-fast: false | ||||||||||||||||||||||||||||||
| matrix: | ||||||||||||||||||||||||||||||
| toolchain: ["stable", "beta"] | ||||||||||||||||||||||||||||||
| continue-on-error: ${{ matrix.toolchain == 'beta' }} | ||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | ||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||
| persist-credentials: false | ||||||||||||||||||||||||||||||
| - uses: dtolnay/rust-toolchain@2c7215f132e9ebf062739d9130488b56d53c060c # master | ||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||
| toolchain: ${{ matrix.toolchain }} | ||||||||||||||||||||||||||||||
| components: clippy | ||||||||||||||||||||||||||||||
| - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 | ||||||||||||||||||||||||||||||
| - run: cd filtermail && cargo clippy | ||||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||||
| RUSTUP_TOOLCHAIN: ${{ matrix.toolchain }} | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| rust-test: | ||||||||||||||||||||||||||||||
| name: Run rust tests | ||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | ||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||
| persist-credentials: false | ||||||||||||||||||||||||||||||
| - uses: dtolnay/rust-toolchain@2c7215f132e9ebf062739d9130488b56d53c060c # master | ||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||
| toolchain: stable | ||||||||||||||||||||||||||||||
| - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 | ||||||||||||||||||||||||||||||
| - run: cd filtermail && cargo test | ||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,75 @@ | ||||||||||||
| on: | ||||||||||||
| push: | ||||||||||||
| tags: | ||||||||||||
| - 'filtermail-*' | ||||||||||||
|
Comment on lines
+2
to
+4
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
see filter on line 10 |
||||||||||||
|
|
||||||||||||
| permissions: {} | ||||||||||||
|
|
||||||||||||
| jobs: | ||||||||||||
| build: | ||||||||||||
| name: Build binaries. | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Guard here.. |
||||||||||||
| runs-on: ubuntu-latest | ||||||||||||
| steps: | ||||||||||||
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | ||||||||||||
| with: | ||||||||||||
| persist-credentials: false | ||||||||||||
| - uses: dtolnay/rust-toolchain@2c7215f132e9ebf062739d9130488b56d53c060c # master | ||||||||||||
| with: | ||||||||||||
| toolchain: stable | ||||||||||||
| targets: aarch64-unknown-linux-musl,x86_64-unknown-linux-musl | ||||||||||||
| - uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1 | ||||||||||||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||||||||||||
| with: | ||||||||||||
| use-cache: false | ||||||||||||
| - uses: taiki-e/install-action@2ca9b94c269419b7b0c711c09d0b21c4e1d51145 # v2.83.1 | ||||||||||||
| with: | ||||||||||||
| tool: cargo-zigbuild | ||||||||||||
| - name: Build | ||||||||||||
| run: | | ||||||||||||
| cd filtermail | ||||||||||||
| RUSTFLAGS="-Ctarget-feature=+crt-static -Clink-self-contained=yes" \ | ||||||||||||
| cargo zigbuild \ | ||||||||||||
| --release \ | ||||||||||||
| --target x86_64-unknown-linux-musl \ | ||||||||||||
| --target aarch64-unknown-linux-musl | ||||||||||||
|
missytake marked this conversation as resolved.
|
||||||||||||
| - name: Upload x86_64 binary | ||||||||||||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||||||||||||
| with: | ||||||||||||
| name: filtermail-x86_64 | ||||||||||||
| path: filtermail/target/x86_64-unknown-linux-musl/release/filtermail | ||||||||||||
| if-no-files-found: error | ||||||||||||
| - name: Upload aarch64 binary | ||||||||||||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||||||||||||
| with: | ||||||||||||
| name: filtermail-aarch64 | ||||||||||||
| path: filtermail/target/aarch64-unknown-linux-musl/release/filtermail | ||||||||||||
| if-no-files-found: error | ||||||||||||
|
missytake marked this conversation as resolved.
|
||||||||||||
|
|
||||||||||||
| publish: | ||||||||||||
| name: Upload binaries to the release | ||||||||||||
| needs: ["build"] | ||||||||||||
| permissions: | ||||||||||||
| contents: write | ||||||||||||
| runs-on: ubuntu-latest | ||||||||||||
| steps: | ||||||||||||
|
missytake marked this conversation as resolved.
|
||||||||||||
| - name: Download x86_64 binary | ||||||||||||
| uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | ||||||||||||
| with: | ||||||||||||
| name: filtermail-x86_64 | ||||||||||||
| path: filtermail-x86_64 | ||||||||||||
| - name: Download aarch64 binary | ||||||||||||
| uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | ||||||||||||
| with: | ||||||||||||
| name: filtermail-aarch64 | ||||||||||||
| path: filtermail-aarch64 | ||||||||||||
| - name: Upload binaries to the GitHub release | ||||||||||||
| if: github.event_name == 'release' | ||||||||||||
|
missytake marked this conversation as resolved.
|
||||||||||||
| env: | ||||||||||||
| GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||||||||||||
| REF_NAME: ${{ github.ref_name }} | ||||||||||||
| run: | | ||||||||||||
| mkdir dist | ||||||||||||
| mv filtermail-x86_64/filtermail dist/filtermail-x86_64 | ||||||||||||
| mv filtermail-aarch64/filtermail dist/filtermail-aarch64 | ||||||||||||
| gh release upload "$REF_NAME" \ | ||||||||||||
| --repo ${{ github.repository }} \ | ||||||||||||
| dist/* | ||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -92,3 +92,4 @@ topo_order_commits = true | |||||||
| sort_commits = "oldest" | ||||||||
| # Process submodules commits | ||||||||
| recurse_submodules = false | ||||||||
| exclude_paths = ["filtermail/"] | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Exclude filtermail tags and match only relay tags. |
||||||||
|
missytake marked this conversation as resolved.
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
| # filtermail.mtail: filtermail process event counters | ||
|
|
||
| # | ||
| # Counters | ||
| # | ||
|
|
||
| # Connection errors in the transport path | ||
| # Error::Io / Error::ConnectionFailed / Error::Tls: the reason string filtermail strips | ||
| counter filtermail_transport_error_total by reason | ||
|
|
||
| # Unexpected transport errors: DNS failure, HTTP error, config error. | ||
| counter filtermail_transport_unexpected_total | ||
|
|
||
| # Silent drops: inbound | ||
| # "unencrypted" overlaps with rejected_unencrypted_mail_count in delivered_mail.mtail. | ||
| counter filtermail_inbound_drop_total by reason | ||
|
|
||
| # Silent drops: outbound | ||
| # "unencrypted" overlaps with rejected_unencrypted_mail_count in delivered_mail.mtail; | ||
| # "sender_disabled" and "all_recipients_disabled" are new. | ||
| counter filtermail_outbound_drop_total by reason | ||
|
|
||
| # Reinject failures | ||
| counter filtermail_reinject_error_total by direction | ||
|
|
||
| # SMTP-level connection errors (client dropped mid-session) | ||
| counter filtermail_smtp_error_total by reason | ||
|
|
||
| # | ||
| # filtermail::transport | ||
| # | ||
|
|
||
| /filtermail\[\d+\]: \[WARN\s+filtermail::transport::worker\] Connection error relaying to mail server \S+: / { | ||
| /timed out/ { | ||
| filtermail_transport_error_total["connection_timeout"]++ | ||
| } otherwise { | ||
| /Failed to connect to any of the following addresses/ { | ||
| filtermail_transport_error_total["connection_refused"]++ | ||
| } otherwise { | ||
| /Connection refused/ { | ||
| filtermail_transport_error_total["connection_refused"]++ | ||
| } otherwise { | ||
| /invalid certificate/ { | ||
| filtermail_transport_error_total["tls_cert_not_verified"]++ | ||
| } otherwise { | ||
| /peer sent fatal alert|handshake/ { | ||
| filtermail_transport_error_total["tls_handshake"]++ | ||
| } otherwise { | ||
| /close_notify|connection closed/ { | ||
| filtermail_transport_error_total["lost_connection"]++ | ||
| } otherwise { | ||
| filtermail_transport_error_total["other"]++ | ||
| }}}}}}} | ||
|
|
||
| /filtermail\[\d+\]: \[WARN\s+filtermail::transport::worker\] Unexpected error while delivering/ { | ||
| filtermail_transport_unexpected_total++ | ||
| } | ||
|
|
||
| # | ||
| # filtermail::smtp_server | ||
| # | ||
|
|
||
| /filtermail(?:-incoming)?\[\d+\]: \[WARN\s+filtermail::smtp_server\] Unexpected EoF while receiving DATA/ { | ||
| filtermail_smtp_error_total["unexpected_eof"]++ | ||
| } | ||
|
|
||
| /filtermail(?:-incoming)?\[\d+\]: \[WARN\s+filtermail::smtp_server\] Malformed DATA line without CRLF/ { | ||
| filtermail_smtp_error_total["malformed_data_line"]++ | ||
| } | ||
|
|
||
| # | ||
| # filtermail::outbound | ||
| # | ||
|
|
||
| /filtermail\[\d+\]: \[WARN\s+filtermail::outbound\] Rejected unencrypted mail/ { | ||
| filtermail_outbound_drop_total["unencrypted"]++ | ||
| } | ||
|
|
||
| /filtermail\[\d+\]: \[WARN\s+filtermail::outbound\] Dropping mail; Sender .* is disabled/ { | ||
| filtermail_outbound_drop_total["sender_disabled"]++ | ||
| } | ||
|
|
||
| /filtermail\[\d+\]: \[WARN\s+filtermail::outbound\] Dropping mail; All recipients disabled/ { | ||
| filtermail_outbound_drop_total["all_recipients_disabled"]++ | ||
| } | ||
|
|
||
| /filtermail\[\d+\]: \[WARN\s+filtermail::outbound\] Failed to re.inject mail/ { | ||
| filtermail_reinject_error_total["outbound"]++ | ||
| } | ||
|
|
||
| # | ||
| # filtermail::inbound | ||
| # | ||
|
|
||
| /filtermail(?:-incoming)?\[\d+\]: \[WARN\s+filtermail::inbound\] Rejected unencrypted mail/ { | ||
| filtermail_inbound_drop_total["unencrypted"]++ | ||
| } | ||
|
|
||
| /filtermail(?:-incoming)?\[\d+\]: \[WARN\s+filtermail::inbound\] Failed to re.inject mail/ { | ||
| filtermail_reinject_error_total["inbound"]++ | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-fmeans failing on 404 instead of downloading the error page to filtermail binary location. Maybe we should consider always building and using https://github.com/Swatinem/rust-cache as in filtermail-ci.yaml.