{"id":5671,"date":"2021-01-20T01:37:46","date_gmt":"2021-01-20T01:37:46","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=5671"},"modified":"2021-01-20T01:37:46","modified_gmt":"2021-01-20T01:37:46","slug":"cdb-corrupt-cdb-file-erro-in-cpanel-when-sending-email","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2021\/01\/20\/cdb-corrupt-cdb-file-erro-in-cpanel-when-sending-email\/","title":{"rendered":"Mail fails to deliver due to corrupt \/etc\/domain_secondary_mx_ips.cdb file"},"content":{"rendered":"<p>This error show up in Exim mail logs when trying to send email from cpanel email:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">2021-01-19 21:38:46 failed to expand &quot;${lookup{$domain}cdb{\/etc\/domain_secondary_mx_ips.cdb}}&quot; while checking a list: lookup of &quot;test.com&quot; gave DEFER: cdb: corrupt cdb file \/etc\/domain_secondary_mx_ips.cdb (too short).\n<\/pre>\n<p>Issue: The issue was occurring due to corruption in the \/etc\/domain_ secondary_mx_ips.cdb file. Check for an extra digit at the IP address.<\/p>\n<pre lang='bash'>\n[23:11:03 user root@94146958 ~]cPs# \/scripts\/dumpcdb \/etc\/domain_secondary_mx_ips.cdb<br \/>\n$VAR1 = {<br \/>\n      'actionforex.com' => '192.15.25.502'<br \/>\n     };<br \/>\n[\/bash]<\/p>\n<p>To address this issue, login and run:<\/p>\n<pre lang='bash'>\n# \/usr\/local\/cpanel\/bin\/servers_queue queue build_secondary_mx_cache, which recreated the file with the correct IP-address information:<br \/>\n[\/bash]<\/p>\n<pre lang='bash'>\n[23:30:51 user root@94146958 ~]cPs# \/scripts\/dumpcdb \/etc\/domain_secondary_mx_ips.cdb<br \/>\n$VAR1 = {<br \/>\n 'actionforex.com' => '192.15.25.50'<br \/>\n };<br \/>\n[\/bash]<\/p>\n<p>Check with a test email and view of the file to ensure the correct IP address.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This error show up in Exim mail logs when trying to send email from cpanel email: 2021-01-19 21:38:46 failed to expand &quot;${lookup{$domain}cdb{\/etc\/domain_secondary_mx_ips.cdb}}&quot; while checking a list: lookup of &quot;test.com&quot; gave DEFER: cdb: corrupt cdb file \/etc\/domain_secondary_mx_ips.cdb (too short). Issue: The issue was occurring due to corruption in the \/etc\/domain_ secondary_mx_ips.cdb file. Check for an extra &#8230; <a title=\"Mail fails to deliver due to corrupt \/etc\/domain_secondary_mx_ips.cdb file\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2021\/01\/20\/cdb-corrupt-cdb-file-erro-in-cpanel-when-sending-email\/\" aria-label=\"Read more about Mail fails to deliver due to corrupt \/etc\/domain_secondary_mx_ips.cdb file\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-5671","post","type-post","status-publish","format-standard","hentry","category-cpanel"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/5671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=5671"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/5671\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=5671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=5671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=5671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}