{"id":700,"date":"2018-04-24T22:41:02","date_gmt":"2018-04-24T14:41:02","guid":{"rendered":"https:\/\/www.techcoil.com\/blog\/?p=700"},"modified":"2018-07-11T12:35:55","modified_gmt":"2018-07-11T04:35:55","slug":"how-to-install-postfix-as-the-smtp-server-for-applications-in-raspbian-stretch-lite-to-send-email","status":"publish","type":"post","link":"https:\/\/www.techcoil.com\/blog\/how-to-install-postfix-as-the-smtp-server-for-applications-in-raspbian-stretch-lite-to-send-email\/","title":{"rendered":"How to install Postfix as the SMTP server for applications in Raspbian Stretch Lite to send email"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/postfix-raspbian-icon.gif\" alt=\"Postfix Raspbian icon\" \/><\/p>\n<p>Email is a good medium for the applications that we deploy on our Raspbian Stretch Lite to send us notifications.<\/p>\n<p>By default, a fresh installation of Raspbian Stretch Lite does not include a SMTP server for programs to send email. Thankfully, we can install <a href=\"http:\/\/www.postfix.org\/\" rel=\"noopener\" target=\"_blank\">Postfix<\/a> as the SMTP server for the applications that we deployed on Raspbian Stretch Lite to send out email when necessary.<\/p>\n<p>This post documents how you can install Postfix as the SMTP server for applications in Raspbian Stretch Lite to send email.<\/p>\n<h2>Making sure that your Raspbian Stretch Lite is up to date<\/h2>\n<p>We first run the following command for Raspbian Stretch Lite to get the latest updates from the Internet:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo apt-get update\r\n<\/pre>\n<h2>Installing Postfix on Raspbian Stretch Lite<\/h2>\n<p>Once we are sure that our Raspbian Stretch Lite had gotten the latest updates from the Internet, we can proceed to installing Postfix by running the following command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo apt-get install -y postfix\r\n<\/pre>\n<p>When the command start, you will need to pass through configuration screens to:<\/p>\n<ol>\n<li>Select the mail server configuration type that best meets your need<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/postfix-mail-server-configuration-type-on-raspbian-stretch-lite.gif\" alt=\"Postfix mail server configuration type on Raspbian Stretch Lite\" \/>\n<\/li>\n<li>Indicate a Fully Qualified Domain Name as the \"mail\" name<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/postfix-FQDN-configuration-example-on-raspbian-stretch-lite.gif\" alt=\"Postfix FQDN configuration example on Raspbian Stretch Lite\"\/>\n<\/li>\n<\/ol>\n<p>Once you had indicated your input to those configuration screens, the applications that you deploy on your Raspbian Stretch Lite will be able to send out email.<\/p>\n\n      <ul id=\"social-sharing-buttons-list\">\n        <li class=\"facebook\">\n          <a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwp.me%2Fp245TQ-bi\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n            <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Facebook.png\" alt=\"Facebook icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"twitter\">\n          <a href=\"https:\/\/twitter.com\/intent\/tweet?text=&url=https%3A%2F%2Fwp.me%2Fp245TQ-bi&via=Techcoil_com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Twitter.png\" alt=\"Twitter icon\"> Tweet\n          <\/a>\n        <\/li>\n        <li class=\"linkedin\">\n          <a href=\"https:\/\/www.linkedin.com\/shareArticle?mini=1&title=&url=https%3A%2F%2Fwp.me%2Fp245TQ-bi&source=https:\/\/www.techcoil.com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/linkedin.png\" alt=\"Linkedin icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"pinterest\">\n          <a href=\"https:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Fwww.techcoil.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F700&description=\" class=\"pin-it-button\" target=\"_blank\" role=\"button\" rel=\"nofollow\" count-layout=\"horizontal\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Pinterest.png\" alt=\"Pinterest icon\"> Save\n          <\/a>\n        <\/li>\n      <\/ul>\n    ","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/postfix-raspbian-icon.gif\" alt=\"Postfix Raspbian icon\" \/><\/p>\n<p>Email is a good medium for the applications that we deploy on our Raspbian Stretch Lite to send us notifications.<\/p>\n<p>By default, a fresh installation of Raspbian Stretch Lite does not include a SMTP server for programs to send email. Thankfully, we can install <a href=\"http:\/\/www.postfix.org\/\" rel=\"noopener\" target=\"_blank\">Postfix<\/a> as the SMTP server for the applications that we deployed on Raspbian Stretch Lite to send out email when necessary.<\/p>\n<p>This post documents how you can install Postfix as the SMTP server for applications in Raspbian Stretch Lite to send email.<\/p>\n","protected":false},"author":1,"featured_media":992,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":""},"categories":[4],"tags":[525,240,412,445,524,195,438],"jetpack_featured_media_url":"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/postfix-raspbian-icon.gif","jetpack_shortlink":"https:\/\/wp.me\/p245TQ-bi","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/700"}],"collection":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/comments?post=700"}],"version-history":[{"count":0,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/700\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media\/992"}],"wp:attachment":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media?parent=700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/categories?post=700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/tags?post=700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}