Delivery history: inbound lists submissions, outbound lists local deliveries; no spam rule hits in traces #397

Closed
opened 2026-11-15 03:40:38 +00:00 by jcoffey-dev · 1 comment
Owner

Reported on the forum: https://community.coffeylabs.org/t/inbound-outbound-delivery-not-properly-scoped/282

The Inbound list (x:Trace/InboundDelivery) is every SMTP session that reached MAIL FROM, so mail a user submits over 587/465 shows up there. The Outbound list (x:Trace/OutboundDelivery) is every delivery.attempt-start, and local delivery goes through the queue too, so mail received for local mailboxes shows up there.

Plan: work out a trace's kind from its stored events when the list is queried (an authenticated SMTP session is a submission; a delivery attempt that only delivered locally is local), so existing history is covered without a migration. The two lists leave those out by default, with a filter to bring them back.

Also: no trace event records the spam score or the rules a message hit, so the trace detail page can't show why a message was scored the way it was. Add one Info-level event in the inbound session with the score and the tags.

Reported on the forum: https://community.coffeylabs.org/t/inbound-outbound-delivery-not-properly-scoped/282 The Inbound list (`x:Trace/InboundDelivery`) is every SMTP session that reached MAIL FROM, so mail a user submits over 587/465 shows up there. The Outbound list (`x:Trace/OutboundDelivery`) is every `delivery.attempt-start`, and local delivery goes through the queue too, so mail received for local mailboxes shows up there. Plan: work out a trace's kind from its stored events when the list is queried (an authenticated SMTP session is a submission; a delivery attempt that only delivered locally is local), so existing history is covered without a migration. The two lists leave those out by default, with a filter to bring them back. Also: no trace event records the spam score or the rules a message hit, so the trace detail page can't show why a message was scored the way it was. Add one Info-level event in the inbound session with the score and the tags.
Author
Owner

Fixed in #398, with inbuxa/inbuxa-admin#208 for the console filter. Thanks to Faisal for reporting it on the forum. Inbound now defaults to mail from other servers and Outbound to deliveries to other servers, each with a Show filter for the other kind or both; older history is sorted too. Received messages also get a spam.result event listing the verdict, score and rules hit, highest first. It will be in the next release.

Fixed in #398, with inbuxa/inbuxa-admin#208 for the console filter. Thanks to Faisal for reporting it on the forum. Inbound now defaults to mail from other servers and Outbound to deliveries to other servers, each with a Show filter for the other kind or both; older history is sorted too. Received messages also get a spam.result event listing the verdict, score and rules hit, highest first. It will be in the next release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: inbuxa/inbuxa-server#397