{"id":796,"date":"2021-10-08T06:42:28","date_gmt":"2021-10-08T00:42:28","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=796"},"modified":"2021-10-08T06:42:28","modified_gmt":"2021-10-08T00:42:28","slug":"how-to-configure-postfix-relay","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/how-to-configure-postfix-relay.html","title":{"rendered":"How to Configure Postfix Relay"},"content":{"rendered":"\n<p>Open your main.cf file, in my case, it&#8217;s a zimbra main.cf file:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">nano \/opt\/zimbra\/common\/conf\/main.cf<\/pre>\n\n\n\n<p>Now change the following settings:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">relayhost = [smtp.yourrelayserver.com]:587\nsmtp_sasl_auth_enable = yes\nsmtp_sasl_security_options = noanonymous\nsmtp_sasl_password_maps = static:relayusername:relaypassword\nsmtp_sasl_mechanism_filter = login<\/pre>\n\n\n\n<p>You need to replace 3 things here:<\/p>\n\n\n\n<ol><li>smtp.yourrelayserver.com should be your original relay server.<\/li><li>relayusername should be the relay authentication username.<\/li><li>relaypassword should be the relay authentication password.<\/li><\/ol>\n\n\n\n<p>Once done, you may now restart your postfix to see the mail is relaying through the new relay you have added. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Open your main.cf file, in my case, it&#8217;s a zimbra main.cf file: Now change the following settings: You need to replace 3 things here: smtp.yourrelayserver.com should be your original relay server. relayusername should be the relay authentication username. relaypassword should be the relay authentication password. Once done, you may now restart your postfix to see &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/how-to-configure-postfix-relay.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Configure Postfix Relay&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,13,211],"tags":[590,247,588,589,332],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/796"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=796"}],"version-history":[{"count":1,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/796\/revisions"}],"predecessor-version":[{"id":797,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/796\/revisions\/797"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}