title: Troubleshooting Email Delivery category: Troubleshooting tags: troubleshooting, email, smtp, tls, delivery, notifications priority: Normal
Troubleshooting Email Delivery
This guide helps you diagnose and resolve email delivery failures in IdentityCenter. Email notifications are critical for access reviews, policy violations, workflow approvals, and system alerts.
Common SMTP Errors and Solutions
Authentication Failed
Error: 535 5.7.8 Authentication credentials invalid or Authentication failed
Solutions:
- Verify the username and password in email settings are correct
- Check that the account is not locked or disabled
- For Microsoft 365, ensure the account has an active mailbox license
- If using Basic authentication with Microsoft 365, confirm that Basic auth is not blocked by a Conditional Access policy
- For OAuth 2.0, verify the client ID, tenant ID, and client secret are current
Connection Refused
Error: Unable to connect to the remote server or Connection refused
Solutions:
- Verify the SMTP server address is correct (no typos)
- Check that the port number matches the server's configuration
- Test firewall connectivity from the IdentityCenter server:
Test-NetConnection -ComputerName smtp.office365.com -Port 587 - Ensure outbound SMTP traffic is allowed through your firewall
- Check if your hosting provider blocks outbound SMTP (common on cloud VMs)
TLS Handshake Failure
Error: The handshake failed due to an unexpected packet format or SSL/TLS error
Solutions:
Verify you are using the correct port for your TLS mode:
TLS Mode Port Behavior StartTLS 587 Connects plain, upgrades to TLS Implicit SSL 465 Connects directly over SSL None 25 No encryption (not recommended) Ensure TLS 1.2 is enabled on the IdentityCenter server
If the SMTP server uses a self-signed certificate, import it into the server's trusted store
Try switching between port 587 (StartTLS) and port 465 (Implicit SSL)
Relay Denied
Error: 550 5.7.1 Unable to relay or Relay access denied
Solutions:
- Verify the "From" address domain is authorized on the SMTP server
- For Exchange Server, ensure the connector allows relay from the IdentityCenter server's IP
- For Microsoft 365, ensure the authenticated account has a mailbox or is authorized to send as the "From" address
- Check if the SMTP server requires authentication before relaying
Testing Email: The SMTP Test Page
IdentityCenter provides a built-in SMTP test tool at /admin/smtp-test:
- Navigate to Administration > SMTP Test
- Enter a recipient email address
- Click Send Test Email
- Review the results
Test result interpretation:
| Result | Meaning | Next Step |
|---|---|---|
| Success | Email sent to SMTP server | Check recipient inbox (and spam folder) |
| Connection Failed | Cannot reach SMTP server | Check network and firewall settings |
| Authentication Failed | Credentials rejected | Verify username, password, and auth method |
| TLS Error | SSL/TLS negotiation failed | Check port, TLS mode, and certificates |
| Relay Denied | Server won't send for this address | Check From address and relay permissions |
| Timeout | Server did not respond in time | Check server health and network latency |
Configuration Checklist
Verify each setting before troubleshooting further:
| Setting | Description | Example Values |
|---|---|---|
| SMTP Server | Mail server hostname or IP | smtp.office365.com |
| Port | SMTP port number | 587 (TLS), 465 (SSL), 25 (plain) |
| Username | SMTP authentication username | identitycenter@company.com |
| Password | SMTP authentication password | (stored securely) |
| From Address | Sender email address | noreply@company.com |
| TLS Mode | Encryption method | StartTLS, Implicit SSL, or None |
| Authentication Type | How to authenticate | Basic, OAuth 2.0, or None |
Provider-Specific Setup
Microsoft 365
Option 1: OAuth 2.0 (Recommended)
Register an application in Azure AD (Entra ID)
Grant the
Mail.Sendpermission (application type)Create a client secret or certificate
Configure in IdentityCenter:
Setting Value Server smtp.office365.comPort 587 TLS Mode StartTLS Auth Type OAuth 2.0 Tenant ID Your Azure AD tenant ID Client ID Application (client) ID Client Secret Your client secret
Option 2: App Password (if MFA is enabled)
- Sign in to the Microsoft account security page
- Generate an app password under Security > Additional Security > App Passwords
- Use the generated password instead of the account password in IdentityCenter
Exchange Server (On-Premises)
Create a receive connector on the Exchange server that allows relay from the IdentityCenter server's IP address
Configure in IdentityCenter:
Setting Value Server mail.company.com(your Exchange server)Port 587 or 25 TLS Mode StartTLS (if certificates are configured) Auth Type Basic (NTLM) Username DOMAIN\svc-identityIf using anonymous relay, set Auth Type to None and ensure the receive connector permits the source IP
Gmail / Google Workspace
App passwords are required if 2-Step Verification is enabled
Generate an app password at Google Account > Security > App passwords
Configure in IdentityCenter:
Setting Value Server smtp.gmail.comPort 587 TLS Mode StartTLS Auth Type Basic Username your-account@company.comPassword App-specific password
Note: Google may block sign-in attempts from IdentityCenter if it considers the location or device unfamiliar. Check the Google Admin console for blocked sign-in alerts.
Email Queue
How the Queue Works
IdentityCenter queues outgoing emails and processes them via the EmailQueueProcessingJob. This Quartz.NET job:
- Picks up queued emails in order
- Attempts delivery with automatic retry on transient failures
- Marks emails as failed after exceeding the maximum retry count
Monitoring the Queue
- Navigate to /admin/processing-center to view queued email jobs
- Check for backed-up emails that indicate a persistent delivery problem
- Review failed emails in the application logs for specific error messages
Queue Stalled
If emails are stuck in the queue:
- Verify the
EmailQueueProcessingJobis scheduled and running (check Administration > Jobs) - Check application logs for errors from the email processing service
- Test SMTP connectivity using the SMTP Test page
- Restart the job from Processing Center if needed
Rate Limiting
Sending Too Many Emails Too Fast
Symptoms:
- Some emails delivered, others fail with "too many connections" or "rate limit exceeded"
- Intermittent
421or450SMTP response codes
Solutions:
Configure rate limiting in email settings to respect your SMTP provider's limits:
Provider Typical Limit Recommended Setting Microsoft 365 30 messages/minute 25 messages/minute Exchange Server Varies by configuration Match your connector limits Gmail 500/day (free), 2000/day (Workspace) Stay well under the cap Generic SMTP Varies Check provider documentation Use batch sending for large notification runs (access review campaigns)
Space out scheduled notifications to avoid bursts
Notification Not Received
When a specific recipient reports missing emails:
- Check the spam/junk folder -- The most common cause of missing notifications
- Verify the recipient address -- Check for typos in the user's email field
- Check the email logs at /admin/logging -- Filter for the recipient address to see if delivery was attempted
- Verify the notification is enabled -- Some notification types can be disabled per user or globally
- Check email rules -- The recipient's mailbox rules may be redirecting or deleting the message
- DNS records -- Ensure your sending domain has valid SPF, DKIM, and DMARC records to avoid spam filtering
Improving Deliverability
| Record | Purpose | Example |
|---|---|---|
| SPF | Authorizes sending servers | v=spf1 include:spf.protection.outlook.com -all |
| DKIM | Signs emails cryptographically | Configured through your email provider |
| DMARC | Tells receivers how to handle failures | v=DMARC1; p=quarantine; rua=mailto:dmarc@company.com |
Best Practices
- Use a dedicated service account -- Do not use a personal email account for application notifications
- Enable TLS -- Always encrypt SMTP connections in production
- Monitor delivery rates -- Review email logs weekly for failed deliveries
- Set a recognizable From address -- Use something like
identitycenter@company.comso recipients recognize the sender - Test after any change -- Use the SMTP Test page after modifying any email configuration
- Rotate credentials -- Update the SMTP password periodically and verify delivery still works