{"id":3120,"date":"2026-01-14T15:10:02","date_gmt":"2026-01-14T15:10:02","guid":{"rendered":"https:\/\/pheonixsolutions.com\/knowledge-base\/?p=3120"},"modified":"2026-01-14T15:10:05","modified_gmt":"2026-01-14T15:10:05","slug":"how-to-clear-the-exim-retry-database","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/01\/14\/how-to-clear-the-exim-retry-database\/","title":{"rendered":"How to Clear the Exim Retry Database"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>Exim uses a retry database (also known as the <em>hints database<\/em>) to track temporary email delivery failures. When an email cannot be delivered due to issues such as SMTP errors, DNS failures, or temporary remote server unavailability, Exim defers the message and schedules a retry.<br>Even after the underlying issue is resolved, Exim may continue to defer messages with the error \u201cretry time not reached for any host.\u201d<br>In such cases, clearing the Exim retry database allows the mail server to immediately retry delivery using the updated configuration.<br><br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure:<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Log in as Root<\/h2>\n\n\n\n<p>Access the server via SSH as the <strong>root<\/strong> user or use the <strong>Terminal<\/strong> option in WHM.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Clear the Retry Database<\/h2>\n\n\n\n<p>Run the following <strong>cPanel-supported and safe<\/strong> command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/local\/cpanel\/scripts\/exim_tidydb -t 1m \/var\/spool\/exim retry<\/code><\/pre>\n\n\n\n<p>What This Command Does:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Removes retry records older than <strong>1 minute<\/strong><\/li>\n\n\n\n<li>Forces Exim to recalculate retry schedules<\/li>\n\n\n\n<li>Preserves all queued emails<\/li>\n\n\n\n<li>Safely rebuilds the retry database files<\/li>\n<\/ul>\n\n\n\n<p>This is the <strong>recommended method<\/strong> for clearing the Exim retry database on cPanel servers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Restart Exim<\/h2>\n\n\n\n<p>Restart the Exim service to ensure all retry states are refreshed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart exim<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Force Immediate Mail Delivery<\/h2>\n\n\n\n<p>To immediately retry all queued messages, run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exim -qff<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The Exim retry database plays a critical role in handling temporary email delivery failures. However, stale retry entries can cause prolonged deferrals and incorrect mail routing even after SMTP or DNS issues are resolved.<\/p>\n\n\n\n<p>Clearing the retry database using <strong>exim_tidydb<\/strong> is a safe, supported, and effective way to restore normal mail flow on cPanel servers. Whenever email delivery does not resume as expected after fixing configuration or connectivity issues, clearing the Exim retry database should be one of the first troubleshooting steps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Exim uses a retry database (also known as the hints database) to track temporary email delivery failures. When an email cannot be delivered due to issues such as SMTP errors, DNS failures, or temporary remote server unavailability, Exim defers the message and schedules a retry.Even after the underlying issue is resolved, Exim may continue ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/01\/14\/how-to-clear-the-exim-retry-database\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[5,8],"class_list":["post-3120","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-cpanel","tag-whm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Clear the Exim Retry Database - PheonixSolutions Knowledge-Base<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/01\/14\/how-to-clear-the-exim-retry-database\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Clear the Exim Retry Database - PheonixSolutions Knowledge-Base\" \/>\n<meta property=\"og:description\" content=\"Introduction Exim uses a retry database (also known as the hints database) to track temporary email delivery failures. When an email cannot be delivered due to issues such as SMTP errors, DNS failures, or temporary remote server unavailability, Exim defers the message and schedules a retry.Even after the underlying issue is resolved, Exim may continue ..Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/01\/14\/how-to-clear-the-exim-retry-database\/\" \/>\n<meta property=\"og:site_name\" content=\"PheonixSolutions Knowledge-Base\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-14T15:10:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-14T15:10:05+00:00\" \/>\n<meta name=\"author\" content=\"Naveen Prasad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Naveen Prasad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2026\\\/01\\\/14\\\/how-to-clear-the-exim-retry-database\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2026\\\/01\\\/14\\\/how-to-clear-the-exim-retry-database\\\/\"},\"author\":{\"name\":\"Naveen Prasad\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/454bb07a46f62c23ce2b0009aedc0bf3\"},\"headline\":\"How to Clear the Exim Retry Database\",\"datePublished\":\"2026-01-14T15:10:02+00:00\",\"dateModified\":\"2026-01-14T15:10:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2026\\\/01\\\/14\\\/how-to-clear-the-exim-retry-database\\\/\"},\"wordCount\":280,\"commentCount\":0,\"keywords\":[\"cPanel\",\"WHM\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2026\\\/01\\\/14\\\/how-to-clear-the-exim-retry-database\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2026\\\/01\\\/14\\\/how-to-clear-the-exim-retry-database\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2026\\\/01\\\/14\\\/how-to-clear-the-exim-retry-database\\\/\",\"name\":\"How to Clear the Exim Retry Database - PheonixSolutions Knowledge-Base\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#website\"},\"datePublished\":\"2026-01-14T15:10:02+00:00\",\"dateModified\":\"2026-01-14T15:10:05+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/454bb07a46f62c23ce2b0009aedc0bf3\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2026\\\/01\\\/14\\\/how-to-clear-the-exim-retry-database\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2026\\\/01\\\/14\\\/how-to-clear-the-exim-retry-database\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2026\\\/01\\\/14\\\/how-to-clear-the-exim-retry-database\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Clear the Exim Retry Database\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/\",\"name\":\"PheonixSolutions Knowledge-Base\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/454bb07a46f62c23ce2b0009aedc0bf3\",\"name\":\"Naveen Prasad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c040d480588ba05e6689aa14fcc899bd3507bbd0fd2e7f7ee38e6b6b8e264f6e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c040d480588ba05e6689aa14fcc899bd3507bbd0fd2e7f7ee38e6b6b8e264f6e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c040d480588ba05e6689aa14fcc899bd3507bbd0fd2e7f7ee38e6b6b8e264f6e?s=96&d=mm&r=g\",\"caption\":\"Naveen Prasad\"},\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/author\\\/naveen-prasad\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Clear the Exim Retry Database - PheonixSolutions Knowledge-Base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/01\/14\/how-to-clear-the-exim-retry-database\/","og_locale":"en_US","og_type":"article","og_title":"How to Clear the Exim Retry Database - PheonixSolutions Knowledge-Base","og_description":"Introduction Exim uses a retry database (also known as the hints database) to track temporary email delivery failures. When an email cannot be delivered due to issues such as SMTP errors, DNS failures, or temporary remote server unavailability, Exim defers the message and schedules a retry.Even after the underlying issue is resolved, Exim may continue ..Read more","og_url":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/01\/14\/how-to-clear-the-exim-retry-database\/","og_site_name":"PheonixSolutions Knowledge-Base","article_published_time":"2026-01-14T15:10:02+00:00","article_modified_time":"2026-01-14T15:10:05+00:00","author":"Naveen Prasad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Naveen Prasad","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/01\/14\/how-to-clear-the-exim-retry-database\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/01\/14\/how-to-clear-the-exim-retry-database\/"},"author":{"name":"Naveen Prasad","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/454bb07a46f62c23ce2b0009aedc0bf3"},"headline":"How to Clear the Exim Retry Database","datePublished":"2026-01-14T15:10:02+00:00","dateModified":"2026-01-14T15:10:05+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/01\/14\/how-to-clear-the-exim-retry-database\/"},"wordCount":280,"commentCount":0,"keywords":["cPanel","WHM"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/01\/14\/how-to-clear-the-exim-retry-database\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/01\/14\/how-to-clear-the-exim-retry-database\/","url":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/01\/14\/how-to-clear-the-exim-retry-database\/","name":"How to Clear the Exim Retry Database - PheonixSolutions Knowledge-Base","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#website"},"datePublished":"2026-01-14T15:10:02+00:00","dateModified":"2026-01-14T15:10:05+00:00","author":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/454bb07a46f62c23ce2b0009aedc0bf3"},"breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/01\/14\/how-to-clear-the-exim-retry-database\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/01\/14\/how-to-clear-the-exim-retry-database\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/01\/14\/how-to-clear-the-exim-retry-database\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"How to Clear the Exim Retry Database"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#website","url":"https:\/\/pheonixsolutions.com\/knowledge-base\/","name":"PheonixSolutions Knowledge-Base","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/knowledge-base\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/454bb07a46f62c23ce2b0009aedc0bf3","name":"Naveen Prasad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c040d480588ba05e6689aa14fcc899bd3507bbd0fd2e7f7ee38e6b6b8e264f6e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c040d480588ba05e6689aa14fcc899bd3507bbd0fd2e7f7ee38e6b6b8e264f6e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c040d480588ba05e6689aa14fcc899bd3507bbd0fd2e7f7ee38e6b6b8e264f6e?s=96&d=mm&r=g","caption":"Naveen Prasad"},"url":"https:\/\/pheonixsolutions.com\/knowledge-base\/author\/naveen-prasad\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/3120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=3120"}],"version-history":[{"count":1,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/3120\/revisions"}],"predecessor-version":[{"id":3121,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/3120\/revisions\/3121"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=3120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=3120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=3120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}