{"id":79,"date":"2016-11-23T09:20:36","date_gmt":"2016-11-23T09:20:36","guid":{"rendered":"http:\/\/www.hestben.se\/HestbenTechnical\/?p=79"},"modified":"2016-11-23T09:20:36","modified_gmt":"2016-11-23T09:20:36","slug":"gentoo-msmtp-and-local-mail","status":"publish","type":"post","link":"https:\/\/www.hestben.se\/HestbenTechnical\/?p=79","title":{"rendered":"Gentoo msmtp and local mail"},"content":{"rendered":"<p>I have installed <code>msmtp<\/code> to handle mail I send from mutt using my accounts. But, I would like to get mail from local users, such as cron-jobs and smartmontools as well.<br \/>\nI have researched it, and have found that Gentoo blocks use of more than one Mail Transfer Agent (MTA). This, I found from this <a href=\"https:\/\/forums.gentoo.org\/viewtopic-p-6679225.html#6679225\">forum answer<\/a><br \/>\n<code>msmtp<\/code> is counted as an MTA, and thus, I cannot install <code>sendmail<\/code> or <code>exim<\/code>, which my Debian system uses.<br \/>\nSo, my alternatives seem to be to either<\/p>\n<ol>\n<li>configure the <code>msmtp<\/code> <code>sendmail<\/code> symlink to use one account by default, and use a sane &#8220;from&#8221; address.<\/li>\n<li>Manually install <code>msmtp<\/code> after emerging another MTA.<\/li>\n<\/ol>\n<p>The drawback with 1. is that I will get cron mail to one of my accounts, rather than having it local to the computer. And I need to be careful when setting it up, so that I don&#8217;t run into the problem in <a href=\"https:\/\/sourceforge.net\/p\/msmtp\/mailman\/message\/24556635\/\">this question<\/a>.<\/p>\n<p>The drawback with 2. is that it is more of a hack to enable use of two MTAs. I wonder why Gentoo forbids use of two MTAs while Debian accepts it.<\/p>\n<p>To be continued<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have installed msmtp to handle mail I send from mutt using my accounts. But, I would like to get mail from local users, such as cron-jobs and smartmontools as well. I have researched it, and have found that Gentoo blocks use of more than one Mail Transfer Agent (MTA). This, I found from this &hellip; <a href=\"https:\/\/www.hestben.se\/HestbenTechnical\/?p=79\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Gentoo msmtp and local mail&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=\/wp\/v2\/posts\/79"}],"collection":[{"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=79"}],"version-history":[{"count":6,"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=\/wp\/v2\/posts\/79\/revisions"}],"predecessor-version":[{"id":85,"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=\/wp\/v2\/posts\/79\/revisions\/85"}],"wp:attachment":[{"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}