{"id":5020,"date":"2019-06-19T21:26:58","date_gmt":"2019-06-19T21:26:58","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=5020"},"modified":"2019-06-19T21:26:58","modified_gmt":"2019-06-19T21:26:58","slug":"how-to-change-postfix-hostname-and-smtp-banner-on-plesk-server","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2019\/06\/19\/how-to-change-postfix-hostname-and-smtp-banner-on-plesk-server\/","title":{"rendered":"How to change Postfix hostname and SMTP banner on Plesk server"},"content":{"rendered":"<p>Connect to a Plesk server via SSH.<\/p>\n<p>Create a copy &#8220;postfix&#8221; configuration file:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# cp -a \/etc\/postfix\/main.cf \/root\/backup_main.cf\n<\/pre>\n<p>Open &#8220;postfix&#8221; configuration file in a text editor, for example, &#8220;vi&#8221; editor:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# vi \/etc\/postfix\/main.cf\n<\/pre>\n<p>Add the lines specified below to the configuration file main.cf and make sure that these lines are present only once in the file:<\/p>\n<p>Note: replace example.com with required mail server name.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nmyhostname = example.com\nsmtpd_banner = $myhostname ESMTP $mail_name\n<\/pre>\n<p>Using command line tool. check &#8220;postfix&#8221; configuration syntax and restart postfix:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\npostfix check\n(empty output - means syntax is OK)\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# service postfix restart\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Connect to a Plesk server via SSH. Create a copy &#8220;postfix&#8221; configuration file: # cp -a \/etc\/postfix\/main.cf \/root\/backup_main.cf Open &#8220;postfix&#8221; configuration file in a text editor, for example, &#8220;vi&#8221; editor: # vi \/etc\/postfix\/main.cf Add the lines specified below to the configuration file main.cf and make sure that these lines are present only once in the &#8230; <a title=\"How to change Postfix hostname and SMTP banner on Plesk server\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2019\/06\/19\/how-to-change-postfix-hostname-and-smtp-banner-on-plesk-server\/\" aria-label=\"Read more about How to change Postfix hostname and SMTP banner on Plesk server\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86,87],"tags":[],"class_list":["post-5020","post","type-post","status-publish","format-standard","hentry","category-plesk","category-postfix"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/5020","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=5020"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/5020\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=5020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=5020"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=5020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}