One delivery model (models/lib/notificationDelivery.js) for every channel - e-mail, the notification tray and outgoing webhooks - set in the Notifications popup at Admin Panel, board and Member Settings scope, and in each one-way webhook's form: - Content. Webhooks: the text on or off, and which property groups are sent (standard, ids, names, links, actor, people, details), with checklist, list, swimlane and board names, before/after values, the card description and links added as opt-in groups. E-mail and tray: the classic sentence or a clear layout - the board as a link first, the actor and card in bold - and which parts are shown. - Grouping: one message per event, per card, per board, or all together. - Scheduling: immediately, every 5 minutes to 24 hours, or once a day, with optional quiet hours, in the time zone of whoever set it. The most specific explicit setting wins: member, then board, then Admin Panel for e-mail and tray; the webhook, then its board, then Admin Panel for webhooks. A member can only leave their own name out of outgoing webhooks. The built-in defaults keep today's behaviour. Grouped and scheduled webhooks and e-mail go through durable queues that survive restarts; queued webhooks use the SSRF guard and log a blocked address in Admin Panel - Problems. Values of admin-only custom fields now reach only board admins in e-mail and tray, and never a webhook. The new strings are in English in every locale, pending Transifex. Thanks to HaKePlan, Meeques and xet7 ! Fixes #3695, Fixes #5171.
5.4 KiB
Notification Settings (3-tier: Admin → Board → Member)
WeKan's email and in-app notification channels can be turned on or off at three
levels that override each other in order: an Admin Panel default applies to everyone, a
Board setting can override it for that board, and a Member setting
can override that again for just that person. This lets an admin set a
sane sitewide default, a board owner tighten/loosen it for their board, and
an individual still have the final say for themselves. See
models/lib/notificationSettings.js.
Where to find it
The same popup opens from three different places, each scoped differently:
- Member Settings: avatar/name (top right) → Notifications.
- Board Settings: right sidebar → Board Settings → Notifications.
- Admin Panel: Admin Panel → People → Notifications (site defaults).
The rows select Email and in-app notifications, not individual activity kinds. Board and member rows offer Default / Yes / No.
At Admin scope the row only offers Yes/No (there is no level above it to fall back to); at Board and Member scope each row offers Default / Yes / No, where Default means "inherit from the level above".
Steps to use it
- Open the popup from whichever level you want to change (see above).
- For each notification service row, click Yes to force it on, No to force it off, or Default (Board/Member scope only) to fall back to the setting above this level.
- Changes apply immediately - there is no separate Save button.
Below the on/off rows, each channel (Email, Notifications tray, Outgoing Webhooks) has its delivery settings - what a notification shows, whether several are combined, and when they are sent. See Notification delivery.
Precedence
Admin default ---> Board override ---> Member override
(base) (per-board, optional) (per-person, optional)
A member's "Default" choice falls through to the board's setting; a board's "Default" choice falls through to the admin default. Whoever sets the most specific non-Default choice wins for that person on that board.
Watching and email delivery
Enabling a channel does not subscribe you to every board. Watching selects the activities; the channel settings decide how eligible notifications are delivered.
- Watching a board receives other users' activity on that board.
- Tracking receives activity on cards in which you participate.
- Muted suppresses board-wide activity, including assignment and mention notifications. An explicit list or card subscription still opts you into that narrower scope. Stop watching those lists/cards as well to silence them.
- Activity recipients must be active board members. Your own changes normally do not notify you; self-mentions are an exception.
If a test email works but activity email does not, check Admin Panel → Features
has notifications enabled, the recipient is an active board member, their watch
level includes the activity, and Email is enabled by the effective member/board/
admin settings. Reproduce with a second user making a change. Delivery is
buffered for 30 seconds by default (EMAIL_NOTIFICATION_TIMEOUT, milliseconds).
A successful test email proves the transport works; it does not exercise these
activity-selection rules.
Regression verification for #6658
The original muted-assignment boundary was fixed in 4be77e7189; explicit
list/card subscriptions and notification-setting scopes were corrected in
03e8a6bf66. The SMTP browser regression covers board/list/card watching,
comments, title changes, new cards on watched lists/boards, muted assignments,
member email opt-out and suppression of the actor's own notifications.
For an isolated test app, set MAIL_URL=smtp://127.0.0.1:2525 and
EMAIL_NOTIFICATION_TIMEOUT=100. Follow the sandbox build/test setup, then run
from tests/playwright with the matching Node and browser toolchains:
WEKAN_TEST_SMTP_PORT=2525 node node_modules/@playwright/test/cli.js test \
specs/notification-email-delivery.e2e.js --workers=1
The test binds a local SMTP capture server and never relays mail. The app must already be ready and connected to the fixture database. Without the explicit SMTP port the delivery spec skips; that is not a delivery verification. This covers SMTP acceptance, not delivery by an external provider to a real inbox.
The total-deadline recovery scenario uses the same isolated app and fixture port, with these additional app environment variables:
export MAIL_TOTAL_TIMEOUT_MS=1000
export MAIL_GREETING_TIMEOUT_MS=5000
export MAIL_SOCKET_TIMEOUT_MS=5000
Run email-recovery-controls.e2e.js with WEKAN_TEST_SMTP_PORT=2525 and
WEKAN_TEST_MAIL_TOTAL_TIMEOUT=1000. Its total-timeout case sends continuous
SMTP reply bytes, verifies socket closure and the retained pending payload,
checks the retry count in Admin Panel → Problems → Recovery, then permits a
retry and verifies that acceptance replaces the payload with a receipt. The
longer phase limits ensure this exercises the total deadline. This setup tests
the native MAIL_URL transport. Add MAIL_TLS_SERVERNAME=localhost to the app
environment to exercise the TLS-override transport with the same scenario. The full-app Meteor suite SMTP total deadline in Meteor
also checks native MAIL_URL, Admin Panel and TLS-override installation through
the real Email.sendAsync
path without replacing Nodemailer.