{"id":268,"date":"2012-12-27T15:07:56","date_gmt":"2012-12-27T15:07:56","guid":{"rendered":"http:\/\/vickistan.com\/?p=268"},"modified":"2012-12-27T15:07:56","modified_gmt":"2012-12-27T15:07:56","slug":"delivering-root-mail-locally-while-relaying-others","status":"publish","type":"post","link":"https:\/\/vickistan.com\/?p=268","title":{"rendered":"Delivering root mail locally while relaying others"},"content":{"rendered":"<p>In order to deliver some accounts locally, you can set up virtual aliases as follows:<\/p>\n<p>1. Add the following line to \/etc\/postfix\/main.cf:<br \/>\n         virtual_alias_maps = hash:\/etc\/postfix\/virtual<br \/>\n         mail_spool_directory=\/var\/spool\/mail<\/p>\n<p>2. Create \/etc\/postfix\/virtual as follows:<br \/>\n         root     root@localhost<\/p>\n<p>3. postmap \/etc\/postfix\/virtual<\/p>\n<p>4. Restart postfix<\/p>\n<p>Note: Make sure that \/etc\/aliases doesn&#8217;t have root&#8217;s mail being redirected<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to deliver some accounts locally, you can set up virtual aliases as follows: 1. Add the following line to \/etc\/postfix\/main.cf: virtual_alias_maps = hash:\/etc\/postfix\/virtual mail_spool_directory=\/var\/spool\/mail 2. Create \/etc\/postfix\/virtual as follows: root root@localhost 3. postmap \/etc\/postfix\/virtual 4. Restart postfix Note: &hellip; <a href=\"https:\/\/vickistan.com\/?p=268\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-268","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=268"}],"version-history":[{"count":1,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/268\/revisions"}],"predecessor-version":[{"id":269,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/268\/revisions\/269"}],"wp:attachment":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}