{"id":1774,"date":"2016-09-16T02:16:12","date_gmt":"2016-09-16T08:16:12","guid":{"rendered":"http:\/\/www.supportpro.com\/blog\/?p=1774"},"modified":"2019-08-26T04:42:36","modified_gmt":"2019-08-26T10:42:36","slug":"smarthost-forwarding-mails-through-postfix-server-from-exim","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/smarthost-forwarding-mails-through-postfix-server-from-exim\/","title":{"rendered":"SmartHost :- Forwarding Mails Through Postfix Server (From Exim)"},"content":{"rendered":"<p>A \u201c<strong>Smart Host<\/strong>\u201d (also known as a relay host) is a type of mail relay server which allows an SMTP server to route e-mail to an intermediate mail server rather than directly to the recipient\u2019s server. This improves the performance of your server and the reliability of your e-mail delivery.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Exim Server (Forwarding Server)<\/strong><\/span><\/p>\n<p>This server will be forwarding all emails to the SmartHost for relay for final delivery. If you are not using cPanel \/ WHM, then you will simply edit &#8216;\/etc\/exim.conf&#8217; instead of using cPanel \/ WHM&#8217;s interface. However, if the server is running cPanel \/ WHM you must edit the configuration file through the GUI as cPanel \/ WHM will revert your changes automatically over time.<br \/>\n<!--more--><br \/>\n&gt;&gt; Edit Exim Configuration and add &#8220;smart_route:&#8221; details below the section labeled &#8220;<strong>ROUTERSTART<\/strong>&#8221;<\/p>\n<p>&gt;&gt; Restart Exim Server<\/p>\n<p>After the above configuration is saved, the Exim service should automatically restart. However, if it doesn&#8217;t you may restart it via command line manually:<\/p>\n<p><em>\/scripts\/restartsrv_exim<\/em><\/p>\n<p>Or<\/p>\n<p><em>\/etc\/init.d\/exim restart<\/em><\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Postfix Server (SmartHost)<\/strong><\/span><\/p>\n<p>Postfix is a free and open-source mail transfer agent (MTA) that routes and delivers electronic mail, intended as an alternative to the widely-used Sendmail MTA. Postfix is released under the IBM Public License 1.0 which is a free software license.<\/p>\n<p>&gt;&gt; Installation<\/p>\n<p><em>yum install postfix -y<\/em><\/p>\n<p>&gt;&gt; Configuration<br \/>\n<em>\/etc\/postfix\/main.cf<\/em><\/p>\n<p>Ensure the following lines match:<\/p>\n<p>inet_interfaces = all<br \/>\nmynetworks = 127.0.0.0\/8, REMOTE_IP_HERE<\/p>\n<p><em> The inet_interfaces parameter specifies the network interface addresses that this mail system receives mail on and must be changed from &#8220;localhost&#8221; to &#8220;all&#8221;.<\/em><\/p>\n<p><em>Uncomment the parameter mynetworks and add Remote Server&#8217;s IP to give the permission to relay messages through this server.<\/em><\/p>\n<p><em>etc\/postfix\/master.cf<\/em><\/p>\n<p>Make sure the following line is not commented:<\/p>\n<p><em>submission\u00a0 inet\u00a0 n\u00a0 \u00a0&#8211;\u00a0 n\u00a0 &#8211;\u00a0 &#8211;\u00a0 \u00a0smtpd<\/em><\/p>\n<p>&gt;&gt; Start Postfix<\/p>\n<p>\/etc\/init.d\/postfix start<br \/>\nchkconfig postfix on<\/p>\n<p><strong>Need expert assistance?<\/strong><\/p>\n<p><a href=\"https:\/\/www.supportpro.com\/\" target=\"_blank\" rel=\"noopener\">SupportPRO<\/a> has a team of well-experienced professionals and we can assist you with the SmartHost setup. Feel free to contact us if you need assistance.<\/p>\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/www.supportpro.com\/freecheckup.php\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A \u201cSmart Host\u201d (also known as a relay host) is a type of mail relay server which allows an SMTP server to route e-mail to an intermediate mail server rather&hellip;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[5,3],"tags":[],"class_list":["post-1774","post","type-post","status-publish","format-standard","hentry","category-general-topics","category-technical-articles"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=1774"}],"version-history":[{"count":5,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1774\/revisions"}],"predecessor-version":[{"id":4170,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1774\/revisions\/4170"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=1774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=1774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=1774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}