<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with messaging]]></title><description><![CDATA[A list of topics that have been tagged with messaging]]></description><link>https://fusionauth.io/community/forum/tags/messaging</link><generator>RSS for Node</generator><lastBuildDate>Wed, 14 Oct 2026 00:35:11 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/tags/messaging.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[How to handle intermittent email failures with MessagingException in FusionAuth?]]></title><description><![CDATA[<p dir="auto">This MessagingException: Exception reading response error is often related to network issues or SMTP timeout configuration. Here's how to address it:</p>
Check and Adjust SMTP Timeout Settings
<p dir="auto">The default SMTP timeout in FusionAuth is 2 seconds, which may be too short if your SMTP provider experiences occasional network slowness. You can increase the timeout by:</p>

Navigate to <strong>Tenants &gt; [Your Tenant] &gt; Edit &gt; Email &gt; Advanced</strong>
In the <strong>Additional properties</strong> field, add or adjust these configuration values:

mail.smtp.timeout=5000
mail.smtp.connectiontimeout=5000

<p dir="auto">This increases the timeout to 5 seconds. Adjust the value as needed based on your SMTP provider's typical response times. The Additional properties field can contain any Java mail property, and these values will override FusionAuth's defaults.</p>
Email Retry Policy
<p dir="auto"><strong>FusionAuth does not have a built-in retry mechanism for failed email sends.</strong> FusionAuth connects directly to your configured SMTP server at the tenant level without using a local mail queue. If an email fails to send due to a connection issue or timeout, FusionAuth will not automatically retry it.</p>
Additional Troubleshooting Steps


<p dir="auto"><strong>Enable SMTP Debug Logging</strong>: In your tenant's Email settings, enable the <strong>Debug enabled</strong> option. This will provide detailed SMTP transaction logs in the FusionAuth event log, which can help identify the root cause of intermittent failures.</p>


<p dir="auto"><strong>Review Event Logs</strong>: Check <strong>System &gt; Event Log</strong> for error events. FusionAuth always creates an event log entry of type "Error" when it cannot send an email.</p>


<p dir="auto"><strong>Send Test Emails</strong>: Use the <strong>Send test email</strong> button in <strong>Tenants &gt; [Your Tenant] &gt; Email</strong> to verify your SMTP configuration under different conditions.</p>


Implementing Your Own Retry Logic
<p dir="auto">To handle retries, you can set up a webhook-based solution:</p>

Configure a webhook for the event-log.create event
Monitor events delivered to your webhook endpoint
When you detect a MessagingException event, trigger an API call to the appropriate endpoint (e.g., /api/user/forgot-password for password reset emails)
<strong>Important:</strong> Implement retry limits in your script to avoid infinite loops with invalid email addresses

<p dir="auto">This approach gives you full control over retry logic, backoff strategies, and error handling for failed email deliveries.</p>
Related Documentation

<a href="https://fusionauth.io/docs/customize/email-and-messages/configure-email#smtp-settings" rel="nofollow ugc">Configure SMTP - SMTP Settings</a> - Complete SMTP configuration guide
<a href="https://fusionauth.io/docs/get-started/core-concepts/tenants#smtp-settings-form-fields" rel="nofollow ugc">Tenants - SMTP Settings Form Fields</a> - Details on the Additional properties field and how to customize Java mail properties
<a href="https://fusionauth.io/docs/operate/troubleshooting/#troubleshooting-email" rel="nofollow ugc">Troubleshooting Email</a> - Comprehensive email troubleshooting guide
<a href="https://fusionauth.io/docs/extend/events-and-webhooks/events/event-log-create" rel="nofollow ugc">Event Log Create Event</a> - Documentation on the event-log.create webhook event for monitoring errors
<a href="https://fusionauth.io/docs/apis/users/forgot-password" rel="nofollow ugc">Start Forgot Password Workflow API</a> - API endpoint for triggering password reset emails programmatically

]]></description><link>https://fusionauth.io/community/forum/topic/3237/how-to-handle-intermittent-email-failures-with-messagingexception-in-fusionauth</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/3237/how-to-handle-intermittent-email-failures-with-messagingexception-in-fusionauth</guid><dc:creator><![CDATA[FASupportBot]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>