{"id":628,"date":"2016-04-27T10:06:56","date_gmt":"2016-04-27T10:06:56","guid":{"rendered":"https:\/\/www.quppa.net\/blog\/?p=628"},"modified":"2016-04-27T10:06:56","modified_gmt":"2016-04-27T10:06:56","slug":"ubuntu-16-04-heirloom-mailx-is-replaced-by-s-nail","status":"publish","type":"post","link":"https:\/\/www.quppa.net\/blog\/2016\/04\/27\/ubuntu-16-04-heirloom-mailx-is-replaced-by-s-nail\/","title":{"rendered":"Ubuntu 16.04: heirloom-mailx is replaced by s-nail"},"content":{"rendered":"<p>As of Ubuntu 16.04, the <a href=\"http:\/\/packages.ubuntu.com\/xenial\/heirloom-mailx\" title=\"Ubuntu Package: heirloom-mailx (14.8.6-1) [universe]\"><code>heirloom-mailx<\/code><\/a> package is a transitional package for <a href=\"http:\/\/packages.ubuntu.com\/xenial\/s-nail\" title=\"Ubuntu Package: s-nail (14.8.6-1) [universe]\"><code>s-nail<\/code><\/a>.<br \/>\nNot realising this, I was having trouble with <code>mailx<\/code> not recognising the <code>\/etc\/nail.rc<\/code> file I&#8217;d copied from a working Ubuntu 15.10 server. As it turns out, the global config file path for <code>s-nail<\/code> is <code>\/etc\/s-nail.rc<\/code>. I found this out quickly by using <a href=\"http:\/\/linux.die.net\/man\/1\/strings\" title=\"strings(1) - Linux man page\"><code>strings<\/code><\/a> to find the text <code>'.rc'<\/code> in the <code>mailx<\/code> binary: <code>strings \/usr\/bin\/mailx | grep '\\.rc'<\/code> (thanks to <a href=\"https:\/\/www.linuxquestions.org\/questions\/linux-newbie-8\/mailx-doesn%27t-read-from-etc-mail-rc-4175526177\/#post5273760\" title=\"LinuxQuestions.org: mailx doesn't read from \/etc\/mail.rc\">jpollard for this tip<\/a>).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As of Ubuntu 16.04, the heirloom-mailx package is a transitional package for s-nail. Not realising this, I was having trouble with mailx not recognising the \/etc\/nail.rc file I&#8217;d copied from a working Ubuntu 15.10 server. As it turns out, the global config file path for s-nail is \/etc\/s-nail.rc. I found this out quickly by using &hellip; <a href=\"https:\/\/www.quppa.net\/blog\/2016\/04\/27\/ubuntu-16-04-heirloom-mailx-is-replaced-by-s-nail\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Ubuntu 16.04: heirloom-mailx is replaced by s-nail&#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":[3],"tags":[10,39,61,63,80,81,86,93,120,121,139,155,190],"class_list":["post-628","post","type-post","status-publish","format-standard","hentry","category-linux","tag-mailrc","tag-config","tag-grep","tag-heirloom-mailx","tag-mail-rc","tag-mailx","tag-nail-rc","tag-packages","tag-s-nail","tag-s-nail-rc","tag-strings","tag-ubuntu","tag-xenial"],"_links":{"self":[{"href":"https:\/\/www.quppa.net\/blog\/wp-json\/wp\/v2\/posts\/628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quppa.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quppa.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quppa.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quppa.net\/blog\/wp-json\/wp\/v2\/comments?post=628"}],"version-history":[{"count":0,"href":"https:\/\/www.quppa.net\/blog\/wp-json\/wp\/v2\/posts\/628\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.quppa.net\/blog\/wp-json\/wp\/v2\/media?parent=628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quppa.net\/blog\/wp-json\/wp\/v2\/categories?post=628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quppa.net\/blog\/wp-json\/wp\/v2\/tags?post=628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}