{"id":42075,"date":"2018-11-29T03:01:48","date_gmt":"2018-11-28T17:01:48","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=42075"},"modified":"2019-11-04T12:56:47","modified_gmt":"2019-11-04T02:56:47","slug":"centos-exim-advanced-configuration-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/centos-exim-advanced-configuration-primer-tutorial\/","title":{"rendered":"CentOS Exim Advanced Configuration Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/exim_bit.gif\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"CentOS Exim Advanced Configuration Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Mac\/exim_bit.gif\" title=\"CentOS Exim Advanced Configuration Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">CentOS Exim Advanced Configuration Primer Tutorial<\/p><\/div>\n<p>There are two file resource aspects to watch out for regarding a web server hard disk storage &#8230;<\/p>\n<ul>\n<li>hard disk space<\/li>\n<li>hard disk inode count (for Linux and unix web servers)<\/li>\n<\/ul>\n<p> &#8230; which can, respectively, be monitored by Linux commands &#8230;<\/p>\n<ul>\n<li>df -k \/<\/li>\n<li>df -i \/<\/li>\n<\/ul>\n<p>On our CentOS rjmprogramming.com.au web server recently we had occasion to do a check of this, and wanted to improve the web server hard disk situation for both measures, picking the \/var folder of our web server.  So we executed, respectively &#8230;<\/p>\n<ul>\n<li>find \/var -xdev -type f -size +100M<\/li>\n<li>find \/var -mtime -1 -ls<\/li>\n<\/ul>\n<p> &#8230; the latter one being a list of files on \/var modified in the last day being our idea to try to see what daily log filing might be contributing big time to hard disk inode usage.  And that&#8217;s where we found out this way that our Exim Mail Server logs extensively, and that we could do without those in folders off &#8230;<\/p>\n<p><code><br \/>\n\/var\/spool\/exim\/msglog\/<br \/>\n<\/code><\/p>\n<p>We tried the latter of two deletion ideas we show below &#8230;<\/p>\n<ul>\n<li>all at once via &#8230;<br \/>\n<code><br \/>\ncd \/var\/spool\/exim<br \/>\nfind msglog -type f -exec rm -rf {} \\;<br \/>\n<\/code>\n<\/li>\n<li>broken up &#8230; via a series of deletions of the ilk &#8230;<br \/>\n<code><br \/>\ncd \/var\/spool\/exim\/msglog<br \/>\nrm -f A\/*<br \/>\nrm -f a\/*<br \/>\n<\/code>\n<\/li>\n<\/ul>\n<p>Then the next job was to stop Exim remaking these logs and wish to thank <a target=_blank title='Useful link, thanks' href='https:\/\/forums.cpanel.net\/threads\/how-to-add-no_message_logs-to-the-exim-configuration-editor.415601\/'>this useful link<\/a> for great advice here, that led to this advice we give &#8230;<\/p>\n<ol>\n<li>log in to WHM cPanel<\/li>\n<li>in search bar type &#8220;Exim&#8221;<\/li>\n<li>click the &#8220;Exim Configuration Manager&#8221;<\/li>\n<li>click &#8220;Advanced Editor&#8221; tab (up the top)<\/li>\n<li>click the blue &#8220;Add additional configuration setting&#8221; button well down the webpage<\/li>\n<li>click &#8220;message_logs&#8221; in left hand drop down<\/li>\n<li>set value of this setting to &#8220;false&#8221;<\/li>\n<li>click blue &#8220;Save&#8221; button down the bottom of webpage to complete the steps here<\/li>\n<\/ol>\n<p>You may find this is a web server configuration of interest to you too.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d42075' onclick='var dv=document.getElementById(\"d42075\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/cpanel\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d42075' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>There are two file resource aspects to watch out for regarding a web server hard disk storage &#8230; hard disk space hard disk inode count (for Linux and unix web servers) &#8230; which can, respectively, be monitored by Linux commands &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/centos-exim-advanced-configuration-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,1,37],"tags":[195,249,270,1753,2751,418,553,1752,707,716,717,2240,1319,1339,1411],"class_list":["post-42075","post","type-post","status-publish","format-standard","hentry","category-elearning","category-uncategorised","category-tutorials","tag-centos","tag-configuration","tag-cpanel","tag-disk-space","tag-exim","tag-file","tag-hard-disk","tag-inode","tag-linux","tag-log","tag-logging","tag-mail-server","tag-tutorial","tag-unix","tag-web-server"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/42075"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=42075"}],"version-history":[{"count":5,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/42075\/revisions"}],"predecessor-version":[{"id":47076,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/42075\/revisions\/47076"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=42075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=42075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=42075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}