7 Notifications and Email

TraxrGRC sends plain-text email for reminders, decisions, rule matches, scheduled reports, security alerts and outside assessments. This chapter covers the mail server, the templates every email is built from, the daily sweeps that find due work, notification rules, scheduled report delivery, testing and troubleshooting.

7.1 How email is sent

  1. Something in the application decides an email is due: a status change, a daily sweep finding an overdue review, a rule matching, a scheduled report coming round.
  2. The application renders the template (subject and body with the placeholders filled in) and writes a row to the delivery log with status Queued.
  3. It hands a job to the background worker service through the job queue in the database.
  4. The worker connects to the SMTP server from Settings → Integrations and sends the message, then marks the row Sent, or Failed with the server's error.

The consequences for an administrator:

7.2 Configuring SMTP

The mail server is configured on Settings → Integrations, in the SMTP card. There are no environment variables for it: the settings live in the database and are included in backups. Until it is configured, TraxrGRC tries localhost port 25 with the sender grc@localhost, which fails in a container, so every email is logged as Failed.

Saving and testing are administrator operations.

The Integrations screen with the SMTP and LDAP cards; the SAML SSO card follows below.
Figure 7.1. The Integrations screen with the SMTP and LDAP cards; the SAML SSO card follows below.
FieldWhat to enter
AuthenticationNone for a relay that accepts the server without signing in, Username and password, or Microsoft 365 (Graph). An installation set up before this field existed shows the method it was already using.
HostThe SMTP server or relay hostname. Required, except with Microsoft 365 (Graph).
Port587 for submission with STARTTLS, 465 for implicit TLS, 25 for an internal relay.
UsernameWith a password: the account to authenticate with.
PasswordWith a password: the account's password. Stored encrypted and never sent back to the browser; a stored one shows "Stored. Type to replace."
Sending mailboxWith Graph: the email address of the mailbox that sends. It is also the From address.
TenantWith Graph: the directory (tenant) ID, or a verified domain such as contoso.onmicrosoft.com.
Client IDWith Graph: the application (client) ID of the app registration.
Client secretWith Graph: the secret's value. Stored encrypted and never sent back to the browser, like the password.
From addressThe sender on every email, for example [email protected]. Required, except with Microsoft 365 (Graph).
Use TLS (port 465)On for implicit TLS (port 465). Off for STARTTLS or a plain relay.

Rules the server enforces:

To configure the mail server:

  1. Open Settings → Integrations.
  2. Fill in the SMTP card and click Save. The save is recorded in the Audit Log with the values before and after (the password only as changed or unchanged), and every administrator is sent a security alert.
  3. Click Send test email (see below).

When an instance is restored onto a server with a different settings key, the SMTP password and client secret cannot be decrypted: they read as empty, the server logs settings.decrypt_failed, and authenticated sending fails until you type them again (see "A lost secret" in the Disaster Recovery Guide).

7.3 Microsoft 365 through Graph

Microsoft is retiring username and password sign-in for SMTP in Exchange Online, so use Microsoft 365 (Graph). TraxrGRC signs in as an application with the client credentials grant, so sending depends on no person's sign-in, and it uses HTTPS instead of SMTP. It asks https://login.microsoftonline.com/<tenant>/oauth2/v2.0/token for a token with the scope https://graph.microsoft.com/.default, holds the token in memory only, and posts each email to the Graph sendMail action for the mailbox. Both the web and worker services need outbound HTTPS to login.microsoftonline.com and graph.microsoft.com.

You need a licensed mailbox to send from, and someone who can administer both Microsoft Entra ID and Exchange Online.

  1. Register the application. In the Microsoft Entra admin center, App registrations, New registration, single tenant. Note the Application (client) ID and the Directory (tenant) ID, and under Certificates & secrets create a client secret and copy its Value. Keep this registration separate from the one used for account reviews, so reading the directory and sending mail stay apart. Set a reminder for the secret's expiry: once it passes, email stops until you enter a new one. Do not add Mail.Send under API permissions, and remove it if it is already there.

  2. Register the service principal in Exchange. In PowerShell, with the Object ID from Enterprise applications. Microsoft warns against using the IDs on the App registrations page.

    Install-Module -Name ExchangeOnlineManagement
    Connect-ExchangeOnline -Organization <tenantId>
    New-ServicePrincipal -AppId <application client ID> -ObjectId <enterprise application object ID> -DisplayName "TraxrGRC email"
    
  3. Limit it to the mailbox. Create a scope that matches only the sending mailbox, then assign the role over that scope. An administrative unit holding only that mailbox, with -RecipientAdministrativeUnitScope, does the same job.

    New-ManagementScope -Name "TraxrGRC mailbox" -RecipientRestrictionFilter "PrimarySmtpAddress -eq '[email protected]'"
    New-ManagementRoleAssignment -App <enterprise application object ID> -Role "Application Mail.Send" -CustomResourceScope "TraxrGRC mailbox"
    
  4. Check the scope. The first result must show the role in scope; the second, for any other mailbox, must not. This test looks only at Exchange and skips permissions granted in Microsoft Entra ID, so also confirm step 1's permission is absent.

    Test-ServicePrincipalAuthorization -Identity <enterprise application object ID> -Resource [email protected]
    Test-ServicePrincipalAuthorization -Identity <enterprise application object ID> -Resource [email protected]
    
  5. Fill in the SMTP card. Authentication Microsoft 365 (Graph), then Sending mailbox, the tenant, client ID and client secret. Host, port and TLS do not apply and are hidden.

  6. Save and click Send test email. A test always asks Microsoft for a new token. The worker keeps its token until shortly before it expires. Microsoft also caches Exchange role changes for 30 minutes to 2 hours, so a test can fail for that long after a change.

Scheduled reports over about 2.9 MB (3,000,000 bytes) go as a link instead of an attachment with this method, since Microsoft needs a separate upload for larger attachments. The email says so, and the delivery log shows linked. Expect a copy of each email in the mailbox's Sent Items.

Block sign-in on the sending mailbox's account in Microsoft Entra ID. Nobody needs to sign in as it, and sending continues with sign-in blocked, including new tokens after the block.

A settings change can take up to 30 seconds to reach the worker, so an email sent immediately after a change may still use the earlier settings.

ErrorWhat it means
Getting an email access token from Microsoft failed: AADSTS...Microsoft refused the request for a token. The code says why: a wrong tenant, client ID or secret value, or an expired secret.
Microsoft refused the email access token (401)The token did not work even after asking for a new one. Check the tenant and client ID.
Microsoft refused to send as ... (403 ...)The app has no right to this mailbox. Check steps 2 to 4; a recent change can take up to 2 hours to apply.
Microsoft found no mailbox for ... (404 ...)Check the address and that the mailbox has an Exchange license.
Microsoft is throttling emailMicrosoft asked TraxrGRC to slow down. It waits and tries again, then the queue retries.
Microsoft did not answer, so this email may or may not have been sentThe connection failed after the request left. The row is marked Failed and not resent, to avoid a duplicate.
Delivery log shows Sent, and the bounce or message trace shows 550 5.7.708 Access denied, traffic not accepted from this IPExchange accepted the message, then refused to relay it outside your organization. Reports tie this to low-reputation sending, especially on new tenants. If it continues, open a Microsoft support case and include the message trace details.
No client secret is stored for email.The secret was cleared by a change to the mailbox, tenant or client ID, or could not be decrypted after a restore. Type it again and save.

7.4 Google Workspace through the SMTP relay

For Google Workspace, use Google's SMTP relay service. It sends without a person's account and can be limited to your own domains. Your server needs a stable public IP address.

  1. In the Google Admin console, Apps, Google Workspace, Gmail, Routing, find SMTP relay service and click Configure. This setting needs the Gmail Settings administrator privilege, and it belongs at the top-level organization.
  2. Under Allowed senders, choose Only addresses in my domains. Do not choose Any addresses.
  3. Under Authentication, check Only accept mail from the specified IP addresses and add the server's public IP address.
  4. Under Encryption, check Require TLS encryption. Google then rejects a connection without TLS.
  5. On the SMTP card: Authentication None, Host smtp-relay.gmail.com, Port 587, Use TLS off, and From address an address in your domain.
  6. Save and click Send test email.

The allowlist is the only sign-in here, so anything else sending from that IP address can also use your relay as an allowed sender. On shared hosting, use Require SMTP Authentication with Username and password instead, where Google's relay requires TLS.

7.5 Testing email

Send test email on the SMTP card sends a message to your own account's address, with the product name and "email test" in the subject. The result appears at once: "Test email accepted. Check your inbox." or "Test email failed:" with the server's reason. "Accepted" means the mail server or Microsoft took the message, which does not prove delivery, so confirm that it reached your inbox.

The test is sent directly by the web service. To prove the whole path through the worker, check a real email in the delivery log:

  1. Save the SMTP card. Saving emails every administrator a security alert.
  2. Open /settings/notifications, tab Delivery log.
  3. Find the security.alert rows for the save. Sent means the worker delivered them; Failed shows the reason in Error; Queued that stays queued means the worker is not running.

For a test instance, the deployment includes a mail catcher that accepts every message and shows it in a web page. It is meant for trying things out, never for production:

docker compose --profile dev up -d mailpit

Then set Host mailpit, Port 1025, no username and Use TLS off, and open http://127.0.0.1:8025 on the server to read the messages.

7.6 The Notifications page

Settings → Notifications (address /settings/notifications) has four tabs:

TabWho sees itWhat it holds
Templatesnotifications:read; editing needs notifications:updateEvery email's subject and body
RulesAdministratorsNotification rules
Delivery lognotifications:readEvery email queued; rule and scheduled report emails only for administrators
Schedulernotifications:read; saving needs notifications:updateWhen the daily sweeps run and their lead times

The built-in GRC Manager role holds read and update on Notifications. All changes are recorded in the Audit Log under the module notifications.

7.7 Templates

Every email TraxrGRC sends is built from a template with a fixed key. The Templates tab lists each one with its Key, Name, Module, Subject and an Enabled switch, with search and column filters. The Module filter offers Risks, Compliance, Policies, Controls, Awareness, Data privacy, Evidence, Contracts, Assessments, Reports and Platform.

The Templates tab listing the email templates with their keys, modules, subjects and Enabled switches.
Figure 7.2. The Templates tab listing the email templates with their keys, modules, subjects and Enabled switches.

7.7.1 Template keys and their variables

The variables below are the ones each default template uses. {{app.name}} (the product name from Branding) and {{terms.customer}}, {{terms.customers}}, {{terms.vendor}}, {{terms.vendors}}, {{terms.partner}} and {{terms.partners}} (from Terminology) work in every template.

KeySent whenVariables
risk.review.dueA risk review falls within the review lead daysrisk.title, review.dueDate
risk.review.overdueA risk review is late: past its date, inside its grace windowrisk.title, review.dueDate
risk.review.missedA risk review is past its grace windowrisk.title, review.dueDate
risk.appetite.breachA risk's residual score moves into an over-appetite bandrisk.title, risk.score, risk.band
risk.exception.expiringAn approved risk exception expires within the exception lead daysexception.title, exception.expiresAt, risk.title
risk.acceptance.rejectedSomeone rejects the exception request a review's "Accepted over appetite" result raised; sent to the reviewerrisk.title, exception.decidedBy, risk.url
compliance.exception.expiringAn approved compliance exception is expiringexception.title, exception.expiresAt, item.code, item.name
policy.review.dueA policy review is coming duepolicy.title, review.dueDate
policy.review.overdueA policy review is late: past its date, inside its grace windowpolicy.title, review.dueDate
policy.review.missedA policy review is past its grace windowpolicy.title, review.dueDate
policy.exception.expiringAn approved policy exception is expiringexception.title, exception.expiresAt, policy.title
policy.acknowledgement.requestedPeople are asked to acknowledge a policypolicy.title, policy.version, acknowledgement.dueDate, acknowledgement.url
policy.acknowledgement.dueAn acknowledgment is coming duesame as above
policy.acknowledgement.overdueAn acknowledgment is latesame as above
awareness.dueAn awareness program not yet completed comes due (once)program.title, program.dueDate
awareness.lateAn awareness program not yet completed is past its due date (once)program.title, program.dueDate
control.audit.dueA control check is coming duecontrol.name, test.dueDate, control.successCriteria
control.audit.overdueA control check is late: past its date, inside its grace windowcontrol.name, test.dueDate, control.successCriteria
control.audit.missedA control check is past its grace windowcontrol.name, test.dueDate, control.successCriteria
control.audit.failedA control check is recorded as failedcontrol.name, test.completedAt, test.notes
control.coverage.failedAn automatic coverage test fails when its previous result was not a fail, a first result included (to the control owner, or every administrator when the control has none)control.name, test.label, test.threshold, result.day, result.coverage, control.url
control.coverage.relaxedAn administrator turns off a coverage test, lowers its threshold, or relaxes the coverage grid under it (to the control's owner and owner group)control.name, change.by, change.summary, change.reason, control.url
control.maintenance.dueA control task is coming duecontrol.name, test.dueDate, control.maintenanceTask
control.maintenance.overdueA control task is late: past its date, inside its grace windowcontrol.name, test.dueDate, control.maintenanceTask
control.maintenance.missedA control task is past its grace windowcontrol.name, test.dueDate, control.maintenanceTask
device.exception.requestedSomeone requests a device exception; sent to its approverexception.title, device.name, exception.capabilities, exception.expiresAt, exception.url, exception.requestedBy, exception.description
device.exception.decidedA device exception is approved or rejected; sent to its requesterthe five above, plus exception.decision, exception.decidedBy, exception.decisionNote
device.exception.expiringAn approved device exception expires within the exception lead days and no renewal is requested; sent to its requesterexception.title, device.name, exception.capabilities, exception.expiresAt, exception.url, exception.renewUrl (opens a renewal)
device.exception.expiredThe nightly sweep marks an approved device exception expired; sent to its requester oncesame as above
dataprivacy.review.dueA record of processing review is coming duerecord.name, review.dueDate
dataprivacy.review.overdueA record of processing review is late: past its date, inside its grace windowrecord.name, review.dueDate
dataprivacy.review.missedA record of processing review is past its grace windowrecord.name, review.dueDate
dataprivacy.dpa.expiringA third party's data processing agreement (its current DPA contract) is expiringthirdParty.name, dpa.expiresAt
dataprivacy.dpa.expiredA data processing agreement has expiredthirdParty.name, dpa.expiresAt
evidence.expiringEvidence is within its expiring window of its valid-until date: 30 days, or a quarter of its validity when shorter (to its owner and, for a third-party report, the third party's owner; one email if they are the same person)evidence.title, evidence.type, evidence.thirdParty (", name" or empty), evidence.validUntil, evidence.url
evidence.expiredEvidence has passed its valid-until date (to the same people as evidence.expiring)as evidence.expiring
contract.notice.approachingThe notice deadline of an active contract that renews automatically is 60, 30 or 7 days away (to its owner; each once per deadline). None once notice of non-renewal is recorded, or before the contract's effective date. The contract.* reminders skip data processing agreements, which use dataprivacy.dpa.*contract.title, contract.type, contract.counterparty, contract.endsAt, contract.noticeDeadline, contract.daysLeft, contract.renewalNote, contract.url
contract.expiringAn active contract that does not renew automatically ends within 60 days (once per end date)contract.title, contract.type, contract.counterparty, contract.endsAt, contract.url
contract.expiredAn active contract has passed its end date (once per end date), unless it had already ended when it was recorded or notice of non-renewal was givenas contract.expiring
contract.obligation.dueAn open obligation on an active contract is due within 14 days (to the obligation's owner, else the contract's owner; once per due date)obligation.title, obligation.category, obligation.dueAt, obligation.url, contract.title, contract.counterparty
contract.obligation.overdueAn open obligation's due date has passed (once per due date)as contract.obligation.due
contract.clause.review.dueA library clause's next review is within 14 days (to the clause's owner, else everyone in its owner group, who can open the library; once per review date)clause.title, clause.category, clause.reviewDue, clause.url
contract.clause.review.overdueA library clause's review date has passed (once per review date)as contract.clause.review.due
contract.review.requestedA contract is submitted for review (to each active user whose roles may approve it, not the submitter; administrators by flag alone are not emailed)contract.title, contract.type, contract.counterparty, contract.actor, contract.reviewNote, contract.url
contract.signature.requestedA contract is approved (to each active user whose roles may sign it)as contract.review.requested; contract.reviewNote is the approver's note, empty when none
contract.returnedA contract is sent back to draft (to whoever submitted it)as contract.review.requested; contract.reviewNote is what needs to change
contract.request.receivedSomeone asks Legal for a contract with Request a contract (to each active user whose roles grant contracts Review on it, not the requester)as contract.review.requested; contract.actor is the requester and contract.reviewNote their message to Legal
dataprivacy.tia.dueA transfer impact assessment review is coming duethirdParty.name, tia.country, tia.reviewDue
dataprivacy.tia.overdueA transfer impact assessment review is latethirdParty.name, tia.country, tia.reviewDue
dataprivacy.questionnaire.sentA data mapping questionnaire is sent to a Data Liaisonrequest.subject, request.requester, request.template, request.dueDate, request.message, request.url
dataprivacy.questionnaire.submittedA Data Liaison submits answersrequest.subject, request.respondent, request.template, request.url
dataprivacy.dpia.approvedAgainstAdviceA DPIA is approved after the DPO advised changes or not proceeding (to the DPO)dpia.title, dpia.record, dpia.approver, dpia.recommendation, dpia.reason, dpia.url
dataprivacy.attestation.sentThe annual check of a record goes to its Data Liaisonrequest.subject, request.dueDate, request.url
dataprivacy.attestation.cancelledCompleting a record's review by hand closes the annual check sent to its Data Liaison (to the Liaison)request.subject, request.reviewer
dataprivacy.questionnaire.dueA questionnaire is coming duerequest.subject, request.dueDate, request.url
dataprivacy.questionnaire.overdueA questionnaire is laterequest.subject, request.dueDate, request.url
assessment.sentAn assessment is sent to an outside contactassessment.title, assessment.contactName, assessment.dueNote, assessment.url
assessment.reminderAn unanswered assessment is coming dueassessment.title, assessment.contactName, assessment.dueDate, assessment.url
assessment.returnedAnswers are returned to the contact for reworkassessment.title, assessment.contactName, assessment.flaggedCount, assessment.dueNote, assessment.url
assessment.overdueAn assessment was not answered by its due date; its link stays openassessment.title, assessment.contact, assessment.dueDate, assessment.url
assessment.extension.requestedThe contact asked for more time from the questionnaire (to the request's owner)assessment.title, assessment.contact, assessment.dueDate, assessment.url, extension.until, extension.note
assessment.completedAn assessment is completedassessment.title, assessment.contact, assessment.score
report.scheduledA scheduled report is sentschedule.name, report.title, report.generatedAt, attachment.note, report.url, profile.url
comment.mentionedA comment mentions someone, by name or through a group, who can read the record (one email per comment per person; not to the author). Sent by default with no notification rule; turn the template off to stop it. Holds no comment textcomment.author, mention.whom ("you", or "the Legal group"), record.label, record.title, record.url (to the comment), tasks.url
notification.ruleA notification rule matchesevent.summary, event.detail, record.label, record.title, record.url, rule.name, profile.url
digest.dailyThe daily digest, when turned ondigest.date, digest.body
digest.weeklyThe weekly summary of what is late or missed for a person, when turned on (see Scheduler)summary.date, summary.count, summary.body, tasks.url
security.alertA security event (see Audit Log and Evidence Integrity)alert.title, alert.detail, alert.actor, alert.ip, alert.time, alert.url
user.password.resetAn administrator resets a user's passwordreset.by, reset.time
user.password.changedA user changes their own password on My profilechange.time
user.email.changedAn administrator changes a local user's email; sent to the old addresschange.by, change.time
user.mfa.resetAn administrator resets a user's two-step verificationreset.by, reset.time
user.inviteAn administrator adds a user with an invitationlink.url, link.expiresAt, link.by
user.password.linkAn administrator sends a link to choose a new passwordlink.url, link.expiresAt, link.by

Dates in reminder variables are written yyyy-MM-dd. alert.time, reset.time and change.time are shown in the recipient's time zone. The digest.daily subject defaults to "{{app.name}} daily digest: {{digest.date}}".

7.7.2 Editing a template

  1. Click the template's key. The edit dialog opens.
  2. Change the Name (up to 120 characters), Subject (up to 300) or Body. Placeholders are written {{variable.name}}.
  3. Check the Available vars panel beside the fields. It lists each variable the template receives, with its meaning, plus app.name and the terminology variables. A placeholder not in the list is named in red under the body as you type, and Save template stays disabled until it is removed; the server refuses it too.
  4. Click Preview to see the subject and body as they will read, with your product name and terminology filled in and each other placeholder shown as its name in brackets (for example [risk.title]). It works on the text in the dialog, saved or not.
  5. Click Send me a test to email that preview, marked [Test], to your own address only. It goes straight to the mail service rather than through the queue, so the page says at once whether it was sent or why not; it is not listed in the delivery log, and the audit log records template.test.
  6. Click Save template. The next email queued from that template uses the new text; emails already queued keep the old text.
The Edit template dialog for risk.appetite.breach with the subject, body and the Available vars panel.
Figure 7.3. The Edit template dialog for risk.appetite.breach with the subject, body and the Available vars panel.

Things to know:

7.7.3 What people can change for themselves

The Notifications tab of My profile lets each person shape their own email, within limits you cannot loosen or tighten (the classification lives in src/lib/notifications/preferences.ts):

KindTemplatesWhat a person can do
Optionalcomment.mentioned, assessment.completed, dataprivacy.attestation.cancelled, delegation.granted, delegation.revoked, digest.weeklyTurn each one off. The delivery log then shows it Skipped with recipient-opted-out. A person who turned mentions off is also no longer reached by a rule as a mentioned person (as an owner or named recipient they still are).
RemindersThe due, late, missed and expiring reminders the daily sweep sends (each once per state), and dataprivacy.attestation.sentChoose one by one or a daily digest, overriding the Daily digest switch. Never off: an owner who stopped getting reminders would defeat them as a control.
Always sentSecurity, password and two-step emails; requests for a decision, review, signature, answer or acknowledgment; contract returned, requested and DocuSign updates; risk appetite breaches, failed control checks and coverage tests, DPIAs approved against advice; digest.dailyNothing. Shown locked with the reason.
Rules and reportsnotification.rule, report.scheduledOpt out of each rule or schedule, as before.

A template turned off here stays off for everyone; a person's choice affects only their own email. Each choice is recorded in the Audit Log (userNotificationPreference). A template added in a later release is always sent until it is classified.

7.7.4 Turning a template off

The Enabled switch stops a template without editing it. Nothing is sent from a disabled template: fixed notifications are logged as Skipped with the reason template-disabled, and rule and scheduled report emails as Suppressed. Disabling security.alert stops security alerts to administrators; leave it on.

7.8 Scheduler

The Scheduler tab holds the Daily sweeps scheduler card. Once a day the worker scans reviews, exceptions, control checks and tasks, awareness programs, data processing agreements, transfer impact assessments and questionnaires and queues the reminders above. The same run handles deadline notification rules, assessment reminders and repeats, and policy acknowledgment reminders.

The Scheduler tab with the daily digest switch, cron schedule and lead days.
Figure 7.4. The Scheduler tab with the daily digest switch, cron schedule and lead days.
SettingDefaultWhat it means
Daily digestOffWhen on, each person gets one digest.daily email listing their items instead of one email per item. It is the default only: anyone may choose one by one or a digest for themselves on My profile, and their choice wins either way.
Weekly summaryOnWhen on, each person gets one digest.weekly email a week, from the first sweep on or after Monday, listing what is late or missed for them (at most 25 items, the rest counted, with a link to My Tasks). Items reminded that same day are left out, and nobody with nothing to list gets one. A late awareness program stays on it for four weeks after its due date. Stored as notifications.weeklySummary.
Cron schedule (UTC)0 7 * * *When the sweep runs: five fields (minute hour day month weekday) in UTC. 0 7 * * * is 07:00 UTC every day; 30 5 * * 1-5 is 05:30 UTC on weekdays. Invalid expressions are refused.
Review lead days7Reviews (risk, policy, data privacy), control checks and tasks, and awareness programs due within this many days are reminded as "due". 0 to 365.
Exception lead days14Approved risk, compliance and policy exceptions expiring within this many days are flagged. 0 to 365.
Organization time zoneAmerica/New_YorkThe IANA zone that decides which calendar day it is for everyone: due and overdue (My Tasks, control status, lists, reports, the AI assistant), expiry of exceptions and evidence, new review, check and task dates, POA&M opened and due dates, the sweep's due and overdue buckets, form defaults and export file names. Each person's own zone still decides how times are shown. Stored as organization.timeZone; audited with the scheduler settings. Choose the zone your staff and auditors work in; the cron schedule stays in UTC.

Click Save settings to store them. Saving applies a changed Cron schedule (UTC) to the job queue at once, and the confirmation reads "Scheduler settings saved. The new schedule is active." If the queue cannot be reached (for example because the worker has never run), the save still succeeds and a warning says "The new schedule takes effect when the background worker next starts"; start or restart the worker in that case:

docker compose restart worker

The digest switch, the weekly summary and the lead days apply at the next run.

Reminder cadence. Every sweep reminder goes out once per state and due date, never daily (P6):

ItemReminders, each once
Risk, policy and processing record reviews; control checks and tasksDue (on entering the review lead days), late (the day after its date, while inside its grace window) and missed (once past the grace window). The grace window is the one under Control testing settings: a share of the item's interval, at least and at most the days set there.
Awareness programsDue, then late, to each person who has not passed it.
Risk, compliance, policy and device exceptionsExpiring, on entering the exception lead days.
Data processing agreements, transfer impact assessments, evidence, questionnaires, contracts, obligations and clause reviewsDue or expiring, then overdue or expired, as before.

Moving a due date with a reason starts the reminders afresh for the new date. After that, the weekly summary is the only email about an item that stays late, until it is done. Escalation beyond that is for notification rules. The GDPR 72-hour authority clock is not a sweep reminder: the deadline strip and My Tasks keep it in view by the hour.

Run sweeps now runs the whole sweep at once and reports how many items it found, for how many recipients, and how many digests and weekly summaries it queued. It sends real email. A reminder already sent for that state and date is never sent again, so running it next to the scheduled run sends nothing twice. A reminder goes only to a person who can still read the record it names. The run is recorded in the Audit Log.

Who gets a reminder follows the rule My Tasks uses: a record with a named Owner is reminded to that person alone, whatever its owner group; a record with only an Owner group is reminded to every active member of that group. A named owner who has been deactivated gets nothing and nobody is reminded in their place, as in My Tasks, so reassign their records. Two kinds of record fall back further: a transfer impact assessment with no active owner goes to whoever its vendor is assigned to, and a contract obligation with no owner and no owner group goes to whoever its contract is assigned to. A third-party report's evidence reminder also goes to the vendor's owner. Notification rules are separate: there you choose the owner, the owner group's members, or both.

7.9 Notification rules

Fixed notifications go to record owners on fixed events. Notification rules let an administrator email other people about other events. The Rules tab and every rule action are for administrators only. A new or upgraded installation has no rules.

The Rules tab listing the demo's notification rules with their triggers, records, recipients and opt-out counts.
Figure 7.5. The Rules tab listing the demo's notification rules with their triggers, records, recipients and opt-out counts.

7.9.1 Creating a rule

  1. Click New rule. The New notification rule dialog opens.
  2. Fill in the fields and click Create rule (Save rule when editing).
The New notification rule dialog with the trigger, record types, status condition and recipient choices.
Figure 7.6. The New notification rule dialog with the trigger, record types, status condition and recipient choices.
FieldWhat it means
NameUp to 120 characters. Shown in the email, in the delivery log and on each person's My profile page.
TriggerComment added, Record created, Status changed, Audit finding created, Control check failed, Coverage test failed, Coverage test relaxed, Deadline approaching or Deadline missed (grace ran out). Control check failed is a failed check or task; Coverage test failed is an automatic coverage test starting to fail, on the same condition as its owner's email, so a rule can also reach a group or a webhook. Coverage test relaxed is a coverage test turned off, replaced while on or given a lower threshold (the same saves the Overrides report lists); its detail says when the test was failing at the time, and gives the reason.
RecordsRisk, Control, Compliance requirement, Policy, Risk exception, Compliance exception, Policy exception, Device exception, Incident, Project, Third party, Audit finding, as far as the trigger applies to them. None checked means every kind the trigger supports.
Only when the record's status isOptional. For Status changed, the new status; for other triggers, the status at the time. None checked means any status.
RecipientsAny mix of: the record's owner; the members of the record's owner group; people @mentioned in the comment (Comment added only; anyone the comment.mentioned email already reached for that comment is left out, so nobody gets two emails about one comment); named users; members of chosen groups; members of every group carrying a chosen role. Active users only; no outside addresses. At least one recipient is required.
EnabledUncheck to pause the rule.
Leave record titles out of webhook postsApplies only to the rule's webhooks (below). Posts then carry the event, the record's type, id and status, and a link.

7.9.2 How rules are delivered

7.9.3 Bulk changes and rules

Changes made through an API token (including the bundle loader) and through a CSV import send no rule emails by default; the delivery log lists them as Suppressed with the reason api-write. This keeps a data load from flooding people's inboxes. To include them, turn on Notify on API changes and CSV imports below the rules list. The hourly cap still applies. Fixed notifications (reminders, decisions) are not affected by this switch.

7.9.4 Webhooks

A rule can also post each event it matches to an HTTPS endpoint, such as a Microsoft Teams channel (a Teams workflow's "When a Teams webhook request is received" URL), a Slack incoming webhook or your own receiver. Webhooks are for administrators only.

The Webhook hosts card below the rules: the hosts a rule's webhooks may post to.
Figure 7.7. The Webhook hosts card below the rules: the hosts a rule's webhooks may post to.
  1. List the host. Under Webhook hosts below the rules list, enter each host a webhook may post to, one per line, and click Save hosts. An entry is a host name (prod-12.westus.logic.azure.com), an IP address, or *.example.com for any host under a domain. Nothing is posted to a host that is not listed, and removing a host stops its webhooks at once (the delivery log shows webhook-host-not-allowed). A webhook's URL and secret are encrypted for that webhook alone; one that cannot be read (copied from another row in the database, say, or not for its own host) is never posted to, and the delivery log shows webhook-unreadable. Remove it and add the endpoint again.

  2. Add the webhook. Click Webhooks on the rule's row, paste the endpoint URL, pick the format (JSON, Microsoft Teams or Slack) and click Add webhook.

    A rule's Webhooks dialog: the endpoints it posts to, and adding one with its format.
    Figure 7.8. A rule's Webhooks dialog: the endpoints it posts to, and adding one with its format.
  3. Keep the signing secret. It is shown once, when the webhook is added. Give it to the receiver; New secret replaces it, and the old one stops working at once.

  4. Send test. Posts a sample event now and shows the endpoint's answer.

What is posted. The event, when it happened, the rule's name, and the record's type, id, status and link, plus its title unless the rule's Leave record titles out of webhook posts is on. Comment text, descriptions and other fields are never posted: a channel has no reader whose access could be checked, unlike an email recipient. A JSON post looks like this:

{
  "id": "rule:…:webhook:…",
  "event": "comment.added",
  "occurredAt": "2026-11-01T14:03:11.000Z",
  "rule": { "id": "…", "name": "Comments on risks" },
  "record": { "type": "risk", "id": "…", "title": "Data breach of customer database", "status": "open", "url": "https://grc.example.com/risks/…" }
}

id is the same for every retry of one post, so a receiver can drop repeats.

Checking a post. Every post carries X-Webhook-Timestamp (Unix seconds) and X-Webhook-Signature: v1= followed by the hex HMAC-SHA256 of <timestamp>.<body> under the webhook's signing secret. Recompute it over the raw request body, compare in constant time, and reject a timestamp more than five minutes old. Teams and Slack check their own URL's key instead and ignore these headers.

Network safety.

Delivery. Posts go through the same queue as rule emails: one per rule, event and endpoint, tried four times before Failed, at most 60 an hour per endpoint (rate-limit), and suppressed for API and import writes as rule emails are. The delivery log lists each post with the recipient webhook: and the host. The URL is stored encrypted like other secrets (a Teams URL carries its own key in its query string), and only the host appears on pages and in the Audit Log. A rule still needs at least one email recipient.

7.10 Scheduled reports delivery

Scheduled reports are set up by users with Reports rights on Reports → Scheduled (see the User Manual, Report Center). For the administrator:

A new or upgraded installation has no schedules. On an upgraded installation, add Create, Update and Delete on Reports to the roles that should manage schedules (see Users, Groups and Roles).

7.11 The delivery log

The Delivery log tab lists every email, newest first, with Created, Template, To, Rule or schedule, Subject, Status, Error and Sent at. Filter by status and search across the recipient, subject, template key and error. Users who are not administrators do not see rule or scheduled report emails.

StatusMeaning
QueuedWaiting for the worker.
SendingA rule or report email being sent.
SentAccepted by the mail server.
FailedThe mail server refused it or could not be reached; Error holds the reason.
SkippedA fixed notification deliberately not sent: template-disabled, template-not-found, no-recipient, recipient-unavailable (the user is inactive or gone), recipient-opted-out (the person turned that email off on My profile), or "sent in digest" when the item went into a digest.
SuppressedA rule or scheduled report email deliberately not sent: no-access, opted-out, api-write, rate-limit, recipient-inactive, record-deleted, rule-disabled, template-disabled, schedule-paused, schedule-deleted or report-unavailable.

A fixed notification that fails is not retried: it stays Failed. Sweep reminders are sent once per state, so a failed one is not sent again for that state; the next state's reminder and the weekly summary still go out. Event emails such as risk.appetite.breach are not sent again either, so fix the mail server and tell the people concerned.

7.11.1 Troubleshooting

SymptomLikely cause and fix
Every row Failed, error mentions localhost or ECONNREFUSEDSMTP was never configured. Fill in Settings → Integrations → SMTP.
Rows stay QueuedThe worker is not running. Check docker compose ps and docker compose logs worker.
Failed with an authentication errorWrong username or password, or the password was cleared by a host or port change. Type it again and save. With Graph, see the errors under Microsoft 365 through Graph.
Failed with a TLS or STARTTLS errorPort and Use TLS do not match the server: 465 needs Use TLS on, 587 needs it off. A relay without STARTTLS cannot take a username.
Sent, but nothing arrivesThe mail was accepted and then filtered or rejected downstream. See deliverability below and check the relay's own logs.
Reminders arrive at the wrong hourThe cron is in UTC. If saving showed the warning that the schedule takes effect when the worker next starts, restart the worker.
Links in emails point to the wrong addressAPP_URL is wrong. Fix it in the deployment's .env and restart.
Nobody gets rule emails after a data loadExpected: API and import changes are suppressed (api-write).

7.12 Deliverability

TraxrGRC hands mail to your SMTP server; whether it reaches inboxes depends on how that server and your domain are set up.