{"id":2867,"date":"2015-12-17T17:35:22","date_gmt":"2015-12-17T17:35:22","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=2867"},"modified":"2015-12-17T17:35:22","modified_gmt":"2015-12-17T17:35:22","slug":"how-to-redirect-local-root-mail-to-an-email-address-on-linux","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/12\/17\/how-to-redirect-local-root-mail-to-an-email-address-on-linux\/","title":{"rendered":"How to redirect local root mail to an email address with Postfix"},"content":{"rendered":"<p>After you install postfix, then you may wnat to have root&#8217;s email sent to a real email address. This will help to send cron jobs to you.<\/p>\n<p>Edit the \/etc\/aliases file and add your username and external email address.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# root: youremailaddress@domain.com\n\n<\/pre>\n<p>Now run this command:-<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# newaliases\n\n<\/pre>\n<p>Now restart Postfix:-<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# service postfix restart\n\n<\/pre>\n<p>and to test, run the following command:-<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# echo test | mail -s &quot;test message&quot; root\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>After you install postfix, then you may wnat to have root&#8217;s email sent to a real email address. This will help to send cron jobs to you. Edit the \/etc\/aliases file and add your username and external email address. # root: youremailaddress@domain.com Now run this command:- # newaliases Now restart Postfix:- # service postfix restart &#8230; <a title=\"How to redirect local root mail to an email address with Postfix\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/12\/17\/how-to-redirect-local-root-mail-to-an-email-address-on-linux\/\" aria-label=\"Read more about How to redirect local root mail to an email address with Postfix\">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":[87],"tags":[],"class_list":["post-2867","post","type-post","status-publish","format-standard","hentry","category-postfix"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2867","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=2867"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2867\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=2867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=2867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=2867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}