E-mail channels send each matching event to their recipients, with one retry and the last error recorded #155
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#156 The REST API manages notification channels of every kind, and the api/webhooks routes are removed
lantea-one/ninlil
#256 Ninlil warns when another DHCP server answers on its network
lantea-one/ninlil
Reference
lantea-one/ninlil#155
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
E-mail is the second channel kind the owner's unified model needs; SMTP exists only for identity mail today.
What changes
EmailChannelSenderinsrc/dotnet/src/Ninlil.Dns.Server.Notifications/, sending throughIEmailSender(src/dotnet/src/Ninlil.Dns.Identity/Email/IEmailSender.cs:18-23). Add aProjectReferencetoNinlil.Dns.Identity. Technical call:Ninlil.Dns.Identityreferences onlyNinlil.Dns.Data.Abstractions(Ninlil.Dns.Identity.csproj:45), so no cycle forms.Payloadis{"subject":"...","body":"..."}, rendered once with #154's renderer: the body HTML-escaped, the subject unescaped with CR and LF removed so a value cannot add a header line. OneSendAsyncper recipient; the attempt succeeds only when every recipient succeeds, and a retry sends to every recipient again (at least once, as webhooks are).MaxDeliveryAttemptssays. The retry goes through the existing sweep.EmailSenderOptions(the checkSmtpEmailSender.cs:22-25describes) is a permanent failure with the message "SMTP is not configured", so the delivery is dead-lettered at once and the reason shows in the history.Acceptance
Deliver_ForAnEmailChannel_SendsOneMailPerRecipientwith a fakeIEmailSender, insrc/dotnet/tests/Ninlil.Dns.Server.Notifications.Tests.dotnet test src/dotnet/tests/Ninlil.Dns.Server.Notifications.Tests,dotnet test src/dotnet/tests/Ninlil.Web.Tests.Source
audit-feature-parity.md§2A #12.Owner decision 2026-10-31: "mail retry: best effort" (Q-PN-8).