{"id":50,"date":"2016-08-31T15:44:39","date_gmt":"2016-08-31T13:44:39","guid":{"rendered":"http:\/\/developer.ps\/?p=50"},"modified":"2019-07-18T15:19:44","modified_gmt":"2019-07-18T13:19:44","slug":"install-ssmtp-on-centos-7","status":"publish","type":"post","link":"https:\/\/developer.ps\/index.php\/2016\/08\/31\/install-ssmtp-on-centos-7\/","title":{"rendered":"Install SSMTP on Centos 7"},"content":{"rendered":"Add the repo if it's not added:\nyum install epel-release -y\nInstall:\nyum -y install ssmtp\n\n(yum install mailx) if not installed\nConfigure:\nalternatives --config mta\nThere are 2 programs which provide 'mta'.\n\n  Selection    Command\n-----------------------------------------------\n*+ 1           \/usr\/sbin\/sendmail.postfix\n   2           \/usr\/sbin\/sendmail.ssmtp\n\nEnter to keep the current selection[+], or type selection number:\n2\n\nDisable postfix (or sendmail):\nsystemctl stop postfix\n\nsystemctl disable <a href=\"https:\/\/developer.ps\/index.php\/2016\/08\/31\/install-ssmtp-on-centos-7\/\" class=\"more-link\">Read more [...]<\/a>","protected":false},"excerpt":{"rendered":"<p>Add the repo if it&#8217;s not added: yum install epel-release -y Install: yum -y install ssmtp (yum install mailx) if not installed Configure: alternatives &#8211;config mta There are 2 programs which provide &#8216;mta&#8217;. Selection Command &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; *+ 1 \/usr\/sbin\/sendmail.postfix 2 \/usr\/sbin\/sendmail.ssmtp Enter to keep the current selection[+], or type selection number: 2 Disable postfix (or sendmail): systemctl stop postfix systemctl disable Read more [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[14,13],"tags":[],"class_list":["post-50","post","type-post","status-publish","format-standard","hentry","category-centos","category-linux"],"wps_subtitle":"","_links":{"self":[{"href":"https:\/\/developer.ps\/index.php\/wp-json\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.ps\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.ps\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.ps\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.ps\/index.php\/wp-json\/wp\/v2\/comments?post=50"}],"version-history":[{"count":13,"href":"https:\/\/developer.ps\/index.php\/wp-json\/wp\/v2\/posts\/50\/revisions"}],"predecessor-version":[{"id":209,"href":"https:\/\/developer.ps\/index.php\/wp-json\/wp\/v2\/posts\/50\/revisions\/209"}],"wp:attachment":[{"href":"https:\/\/developer.ps\/index.php\/wp-json\/wp\/v2\/media?parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.ps\/index.php\/wp-json\/wp\/v2\/categories?post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.ps\/index.php\/wp-json\/wp\/v2\/tags?post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}