{"id":2587,"date":"2010-02-18T06:46:51","date_gmt":"2010-02-18T11:46:51","guid":{"rendered":"http:\/\/g33kinfo.com\/info\/?p=2587"},"modified":"2010-02-18T06:46:51","modified_gmt":"2010-02-18T11:46:51","slug":"changing-the-sending-ip-for-outbound-email-in-exim","status":"publish","type":"post","link":"https:\/\/g33kinfo.com\/info\/changing-the-sending-ip-for-outbound-email-in-exim\/","title":{"rendered":"Changing the Sending IP for Outbound Email in Exim"},"content":{"rendered":"<p>You can manually specify from which IP addresses specific domains on your server should send mail with Exim. To do so, you will need to create and edit 2 files from the command line and disable one option in WHM&#8217;s Exim Configuration Editor interface.<\/p>\n<p>Note: You will need to have root privileges on the server to configure Exim in this way.<\/p>\n<ol>\n<li>\n    * Configuring Exim from WHM<\/li>\n<li>\n    * Creating and Editing the Appropriate Files<\/li>\n<ul>o Editing \/etc\/mailhelo<\/ul>\n<ul>o Editing \/etc\/mailips <\/ul>\n<\/ol>\n<p> <br \/>\n<strong>Configuring Exim from WHM<\/strong><\/p>\n<p>In order to specify which IP addresses should handle outbound mail, you will need to disable an option in WHM&#8217;s Exim Configuration Editor . You can find the Exim Configuration Editor in the Service Configuration section of WHM. To begin, navigate to the configuration editor and disable the following option:<\/p>\n<ol>\n<p>    * Automatically send outgoing mail from the account&#8217;s IP address instead of the main IP address.\n<\/ol>\n<p>\nBy default, Exim will send mail from the server&#8217;s main shared IP address. Enabling this option forces your users to send mail from their main domain&#8217;s IP address. If you choose to enable the option listed above, you will not be able to manually specify the IP addresses from which domains send mail.<br \/>\n<br \/>\n<strong>Creating and Editing the Appropriate Files<\/strong><\/p>\n<p>In order to specify IP addresses, you will need to create and edit 2 files form the command line. The files are:<\/p>\n<ol>\n<li>\n    * \/etc\/mailhelo \u2014 Exim&#8217;s HELO command&#8217;s configuration file.<\/li>\n<li>\n    * \/etc\/mailips \u2014 The file that specifies from which IP addresses mail should be sent. <\/li>\n<\/ol>\n<p> <br \/>\n<strong>Editing \/etc\/mailhelo<\/strong><br \/>\n<br \/>\nEXIM uses the HELO command to initiate dialog between a mail server and a client. This file governs which domain should send the HELO command. To create this file, you will need to use a text editor such as nano, vi, or vim. Once you have created and opened the file for edit, you will need to configure it in the following way:<br \/>\n<code><br \/>\n    example.com: example.com<br \/>\n    sub.example.com: example.com<br \/>\n    example.net: example.net<br \/>\n    addon.example.net: example.net<br \/>\n    *: hostname.example.com<br \/>\n<\/code><br \/>\nNote: In the example above, the asterisk (*) entry will be used to direct outbound mail for domains without entries within this file. The domain in this context should be your server&#8217;s hostname.<br \/>\n<br \/>\nBe sure to use only valid domain names that are publicly accessible via the Internet.<br \/>\n<br \/>\n<strong>Editing \/etc\/mailips<\/strong><br \/>\n<br \/>\nThis file controls the IP address from which each domain should send mail. You will, as in the example above, need to create and open the \/etc\/mailips file for editing using your preferred text editor. You will need to configure this file in the following way:<br \/>\n<code><br \/>\n    example.com: 192.168.0.2<br \/>\n    sub.example.com: 192.168.0.2<br \/>\n    example.net: 192.168.0.3<br \/>\n    addon.example.net: 192.168.0.3<br \/>\n    *: 192.168.0.1<br \/>\n<\/code><br \/>\nNote: In the example above, the asterisk (*) entry will be used to direct outbound mail for domains without entries within this file. In this case, this should be your server&#8217;s main shared IP address.<br \/>\n<br \/>\nBe sure to use only valid IP addresses that are publicly accessible via the Internet. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can manually specify from which IP addresses specific domains on your server should send mail with Exim. To do so, you will need to create and edit 2 files from the command line and disable one option in WHM&#8217;s Exim Configuration Editor interface. Note: You will need to have root privileges on the server&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/g33kinfo.com\/info\/changing-the-sending-ip-for-outbound-email-in-exim\/\">Read More<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-2587","post","type-post","status-publish","format-standard","hentry","category-info"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Changing the Sending IP for Outbound Email in Exim - Linux Shtuff<\/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:\/\/g33kinfo.com\/info\/changing-the-sending-ip-for-outbound-email-in-exim\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Changing the Sending IP for Outbound Email in Exim - Linux Shtuff\" \/>\n<meta property=\"og:description\" content=\"You can manually specify from which IP addresses specific domains on your server should send mail with Exim. To do so, you will need to create and edit 2 files from the command line and disable one option in WHM&#8217;s Exim Configuration Editor interface. Note: You will need to have root privileges on the server... Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/g33kinfo.com\/info\/changing-the-sending-ip-for-outbound-email-in-exim\/\" \/>\n<meta property=\"og:site_name\" content=\"Linux Shtuff\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/fb.me\/g33kinf0\" \/>\n<meta property=\"article:author\" content=\"https:\/\/fb.me\/g33kinf0\" \/>\n<meta property=\"article:published_time\" content=\"2010-02-18T11:46:51+00:00\" \/>\n<meta name=\"author\" content=\"g33kadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/drsinger1111\" \/>\n<meta name=\"twitter:site\" content=\"@drsinger1111\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/changing-the-sending-ip-for-outbound-email-in-exim\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/changing-the-sending-ip-for-outbound-email-in-exim\\\/\"},\"author\":{\"name\":\"g33kadmin\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"headline\":\"Changing the Sending IP for Outbound Email in Exim\",\"datePublished\":\"2010-02-18T11:46:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/changing-the-sending-ip-for-outbound-email-in-exim\\\/\"},\"wordCount\":477,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"articleSection\":[\"General Info\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/g33kinfo.com\\\/info\\\/changing-the-sending-ip-for-outbound-email-in-exim\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/changing-the-sending-ip-for-outbound-email-in-exim\\\/\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/changing-the-sending-ip-for-outbound-email-in-exim\\\/\",\"name\":\"Changing the Sending IP for Outbound Email in Exim - Linux Shtuff\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#website\"},\"datePublished\":\"2010-02-18T11:46:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/changing-the-sending-ip-for-outbound-email-in-exim\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/g33kinfo.com\\\/info\\\/changing-the-sending-ip-for-outbound-email-in-exim\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/changing-the-sending-ip-for-outbound-email-in-exim\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Changing the Sending IP for Outbound Email in Exim\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#website\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/\",\"name\":\"Linux Shtuff\",\"description\":\"Because I have CRS Syndrome...\",\"publisher\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\",\"name\":\"g33kadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"contentUrl\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"width\":512,\"height\":512,\"caption\":\"g33kadmin\"},\"logo\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\"},\"description\":\"I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com\\\/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....\",\"sameAs\":[\"https:\\\/\\\/thelinuxreport.com\",\"https:\\\/\\\/fb.me\\\/g33kinf0\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/drsinger1111\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Changing the Sending IP for Outbound Email in Exim - Linux Shtuff","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:\/\/g33kinfo.com\/info\/changing-the-sending-ip-for-outbound-email-in-exim\/","og_locale":"en_US","og_type":"article","og_title":"Changing the Sending IP for Outbound Email in Exim - Linux Shtuff","og_description":"You can manually specify from which IP addresses specific domains on your server should send mail with Exim. To do so, you will need to create and edit 2 files from the command line and disable one option in WHM&#8217;s Exim Configuration Editor interface. Note: You will need to have root privileges on the server... Read More","og_url":"https:\/\/g33kinfo.com\/info\/changing-the-sending-ip-for-outbound-email-in-exim\/","og_site_name":"Linux Shtuff","article_publisher":"https:\/\/fb.me\/g33kinf0","article_author":"https:\/\/fb.me\/g33kinf0","article_published_time":"2010-02-18T11:46:51+00:00","author":"g33kadmin","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/drsinger1111","twitter_site":"@drsinger1111","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/g33kinfo.com\/info\/changing-the-sending-ip-for-outbound-email-in-exim\/#article","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/changing-the-sending-ip-for-outbound-email-in-exim\/"},"author":{"name":"g33kadmin","@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"headline":"Changing the Sending IP for Outbound Email in Exim","datePublished":"2010-02-18T11:46:51+00:00","mainEntityOfPage":{"@id":"https:\/\/g33kinfo.com\/info\/changing-the-sending-ip-for-outbound-email-in-exim\/"},"wordCount":477,"commentCount":0,"publisher":{"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"articleSection":["General Info"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/g33kinfo.com\/info\/changing-the-sending-ip-for-outbound-email-in-exim\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/g33kinfo.com\/info\/changing-the-sending-ip-for-outbound-email-in-exim\/","url":"https:\/\/g33kinfo.com\/info\/changing-the-sending-ip-for-outbound-email-in-exim\/","name":"Changing the Sending IP for Outbound Email in Exim - Linux Shtuff","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/#website"},"datePublished":"2010-02-18T11:46:51+00:00","breadcrumb":{"@id":"https:\/\/g33kinfo.com\/info\/changing-the-sending-ip-for-outbound-email-in-exim\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/g33kinfo.com\/info\/changing-the-sending-ip-for-outbound-email-in-exim\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/g33kinfo.com\/info\/changing-the-sending-ip-for-outbound-email-in-exim\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/g33kinfo.com\/info\/"},{"@type":"ListItem","position":2,"name":"Changing the Sending IP for Outbound Email in Exim"}]},{"@type":"WebSite","@id":"https:\/\/g33kinfo.com\/info\/#website","url":"https:\/\/g33kinfo.com\/info\/","name":"Linux Shtuff","description":"Because I have CRS Syndrome...","publisher":{"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/g33kinfo.com\/info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547","name":"g33kadmin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","url":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","contentUrl":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","width":512,"height":512,"caption":"g33kadmin"},"logo":{"@id":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif"},"description":"I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com\/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....","sameAs":["https:\/\/thelinuxreport.com","https:\/\/fb.me\/g33kinf0","https:\/\/x.com\/https:\/\/twitter.com\/drsinger1111"]}]}},"_links":{"self":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts\/2587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/comments?post=2587"}],"version-history":[{"count":0,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts\/2587\/revisions"}],"wp:attachment":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/media?parent=2587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/categories?post=2587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/tags?post=2587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}