{"id":448,"date":"2021-07-23T12:30:06","date_gmt":"2021-07-23T12:30:06","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/how-to-edit-the-exim-conf-file\/"},"modified":"2021-07-23T12:30:06","modified_gmt":"2021-07-23T12:30:06","slug":"how-to-edit-the-exim-conf-file","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/how-to-edit-the-exim-conf-file\/","title":{"rendered":"How to Edit the exim.conf File"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\"><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>This document describes the final adjustments to change the IP address that Exim uses to send email.<\/p>\n<p>Before you perform this procedure, you <strong>must<\/strong> follow the directions in our How to Configure the Exim Outgoing IP Address documentation.<\/p>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n<p>This document describes an unsupported workaround that is <strong>not<\/strong> guaranteed to work in the future.<\/p>\n<ul>\n<li>After you perform these steps, it is the system administrator\u2019s responsibility to manage and maintain the server\u2019s database software.<\/li>\n<li>We recommend that <strong>only<\/strong> experienced system administrators attempt to perform these steps.<\/li>\n<li>cPanel, L.L.C. is <strong>not<\/strong> responsible for any data loss that this procedure may cause.<\/li>\n<\/ul><\/div>\n<\/div>\n<h2 id=\"edit-the-file\">Edit the file<\/h2>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>Any edits that you make directly to the <code>\/etc\/exim.conf<\/code> file will <strong>only<\/strong> work temporarily.<\/li>\n<li>Exim stores its default configuration in its override file, <code>\/etc\/exim.conf.local<\/code>. The system uses the <code>\/etc\/eim.conf.local<\/code> file to create the <code>\/etc\/exim.conf<\/code> file upon initialization.<\/li>\n<li>You <strong>must<\/strong> use the <em>Advanced Editor<\/em> feature to make changes to your <code>\/etc\/exim.conf.local<\/code> file to make those changes permanent.<\/li>\n<\/ul><\/div>\n<\/div>\n<p>To edit the <code>\/etc\/exim.conf<\/code> file, perform the following steps:<\/p>\n<ol>\n<li>\n<p>Open the <code>\/etc\/exim.conf<\/code> file with a text editor and locate the following lines:\n<\/p>\n<div class=\"highlight\">\n<div style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\">\n<table style=\"border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;\">\n<tr>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">1\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">2\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">3\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">4\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">5\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">6\n<\/span><\/code><\/pre>\n<\/td>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;;width:100%\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"color:#a6e22e\">remote_smtp<\/span>:\n  <span style=\"color:#a6e22e\">driver<\/span> = <span style=\"color:#a6e22e\">smtp<\/span>\n\n<span style=\"color:#a6e22e\">dkim_remote_smtp<\/span>:\n  <span style=\"color:#a6e22e\">driver<\/span> = <span style=\"color:#a6e22e\">smtp<\/span>\n  <\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/div>\n<\/li>\n<li>\n<p>Below each <code>driver = smtp<\/code> line, add the following line:<\/p>\n<pre><code>connection_max_messages = 1\n<\/code><\/pre>\n<div class=\"highlight\">\n<div style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\">\n<table style=\"border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;\">\n<tr>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\"><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 1\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 2\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 3\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 4\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 5\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 6\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 7\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 8\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\"> 9\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">10\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">11\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">12\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">13\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">14\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">15\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">16\n<\/span><\/code><\/pre>\n<\/td>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;;width:100%\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-go\" data-lang=\"go\">  <span style=\"color:#a6e22e\">remote_smtp<\/span>:\n  <span style=\"color:#a6e22e\">driver<\/span> = <span style=\"color:#a6e22e\">smtp<\/span>\n  <span style=\"color:#a6e22e\">connection_max_messages<\/span> = <span style=\"color:#ae81ff\">1<\/span>\n  <span style=\"color:#66d9ef\">interface<\/span> = <span style=\"color:#960050;background-color:#1e0010\">$<\/span>{<span style=\"color:#66d9ef\">if<\/span> <span style=\"color:#a6e22e\">exists<\/span> {<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">etc<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">mailips<\/span>}{<span style=\"color:#960050;background-color:#1e0010\">$<\/span>{<span style=\"color:#a6e22e\">lookup<\/span>{<span style=\"color:#960050;background-color:#1e0010\">$<\/span><span style=\"color:#a6e22e\">original_domain<\/span>}<span style=\"color:#a6e22e\">lsearch<\/span>{<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">etc<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">ma<\/span>\n  <span style=\"color:#a6e22e\">helo_data<\/span> = <span style=\"color:#960050;background-color:#1e0010\">$<\/span>{<span style=\"color:#66d9ef\">if<\/span> <span style=\"color:#a6e22e\">exists<\/span> {<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">etc<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">mailhelo<\/span>}{<span style=\"color:#960050;background-color:#1e0010\">$<\/span>{<span style=\"color:#a6e22e\">lookup<\/span>{<span style=\"color:#960050;background-color:#1e0010\">$<\/span><span style=\"color:#a6e22e\">original_domain<\/span>}<span style=\"color:#a6e22e\">lsearch<\/span>{<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">etc<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">m<\/span>\n\n<span style=\"color:#a6e22e\">dkim_remote_smtp<\/span>:\n  <span style=\"color:#a6e22e\">driver<\/span> = <span style=\"color:#a6e22e\">smtp<\/span>\n  <span style=\"color:#a6e22e\">connection_max_messages<\/span> = <span style=\"color:#ae81ff\">1<\/span>\n  <span style=\"color:#66d9ef\">interface<\/span> = <span style=\"color:#960050;background-color:#1e0010\">$<\/span>{<span style=\"color:#66d9ef\">if<\/span> <span style=\"color:#a6e22e\">exists<\/span> {<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">etc<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">mailips<\/span>}{<span style=\"color:#960050;background-color:#1e0010\">$<\/span>{<span style=\"color:#a6e22e\">lookup<\/span>{<span style=\"color:#960050;background-color:#1e0010\">$<\/span><span style=\"color:#a6e22e\">original_domain<\/span>}<span style=\"color:#a6e22e\">lsearch<\/span>{<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">etc<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">ma<\/span>\n  <span style=\"color:#a6e22e\">helo_data<\/span> = <span style=\"color:#960050;background-color:#1e0010\">$<\/span>{<span style=\"color:#66d9ef\">if<\/span> <span style=\"color:#a6e22e\">exists<\/span> {<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">etc<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">mailhelo<\/span>}{<span style=\"color:#960050;background-color:#1e0010\">$<\/span>{<span style=\"color:#a6e22e\">lookup<\/span>{<span style=\"color:#960050;background-color:#1e0010\">$<\/span><span style=\"color:#a6e22e\">original_domain<\/span>}<span style=\"color:#a6e22e\">lsearch<\/span>{<span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">etc<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">m<\/span>\n  <span style=\"color:#a6e22e\">dkim_domain<\/span> = <span style=\"color:#960050;background-color:#1e0010\">$<\/span><span style=\"color:#a6e22e\">sender_address_domain<\/span>\n  <span style=\"color:#a6e22e\">dkim_selector<\/span> = <span style=\"color:#66d9ef\">default<\/span>\n  <span style=\"color:#a6e22e\">dkim_private_key<\/span> = <span style=\"color:#e6db74\">\"\/var\/cpanel\/domain_keys\/private\/${dkim_domain}\"<\/span>\n  <span style=\"color:#a6e22e\">dkim_canon<\/span> = <span style=\"color:#a6e22e\">relaxed<\/span>\n  <\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/div>\n<\/li>\n<\/ol><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview This document describes the final adjustments to change the IP address that Exim uses to send email. Before you perform this procedure, you must follow the directions in our How to Configure the Exim Outgoing IP Address documentation. Warning: This document describes an unsupported workaround that is not guaranteed to work in the future. &hellip;<\/p>\n","protected":false},"author":1,"featured_media":449,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/448"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=448"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/448\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/449"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}