{"id":140,"date":"2014-06-10T14:20:00","date_gmt":"2014-06-10T01:20:00","guid":{"rendered":"http:\/\/templesoft.co.nz\/journal\/?p=140"},"modified":"2026-04-08T08:19:27","modified_gmt":"2026-04-07T20:19:27","slug":"upgrading-from-10-04-to-12-04-post-upgrade-experiences","status":"publish","type":"post","link":"https:\/\/templesoft.co.nz\/journal\/?p=140","title":{"rendered":"Upgrading from 10.04 to 12.04: Post upgrade experiences&#8230;"},"content":{"rendered":"<h2>&#8220;Where is the love&#8230;&#8221;<\/h2>\n<p>So you finally did it: You upgraded from Ubuntu Server 10.04.x LTS to 12.04.x LTS and things went well, but after the reboot you&#8217;re having a few problems &#8211; you&#8217;re not alone!<\/p>\n<p>There&#8217;s probably an infinite array of server configurations out there, so the notes presented here will hopefully provide some troubleshooting paths for you, rather than a definitive guide to fixing all your woes and are geared to the specific configuration of my server: One that runs Postfix and is used primarily as a mail server.<\/p>\n<h2>Stiffen your resolve.<\/h2>\n<p>Once of the big changes from 10 to 12 is the addition of resolvconf: a framework for managing multiple DNS configurations. The addition of this server means that \/etc\/resolv.conf is now automatically generated, and any changes you make will get overridden. It seemed strange to me that the upgrade didn&#8217;t simply pull across the existing configuration, and once fixed it was clear the was the root cause of a number of problems.<\/p>\n<p>Check your \/etc\/resolv.conf&#8230;<\/p>\n<pre>sudo less \/etc\/resolv.conf\r\n\r\n<span style=\"color: #339966;\"># Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)<\/span>\r\n<span style=\"color: #339966;\"># DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN<\/span>\r\n<span style=\"color: #c0c0c0;\"><em>may also include a nameserver entry that doesn't match your previous settings...<\/em><\/span><\/pre>\n<p>The config files for <strong>resolvconf<\/strong> reside in \/etc\/resolvconf\/resolv.conf.d, and you can review your pre-upgrade settings in the file &#8216;original&#8217;.<\/p>\n<p>But in order to have resolvconf automatically pickup the changes each time it starts we need to edit the following file:<\/p>\n<pre>sudo vi \/etc\/network\/interfaces<\/pre>\n<p>and make sure that we include\/alter the following line to include our relevant DNS server addresses and local domain (note the space between name server entries)&#8230;<\/p>\n<pre><span style=\"color: #339966;\"> dns-nameservers <em><strong><span style=\"color: #ff6600;\">192.168.1.7 192.168.1.8<\/span><\/strong><\/em><\/span>\r\n<span style=\"color: #339966;\"> dns-search <em><strong><span style=\"color: #ff6600;\">your.domain<\/span><\/strong><\/em><\/span><\/pre>\n<p>When you&#8217;re all done&#8230;<\/p>\n<pre>sudo \/etc\/init.d\/networking restart<\/pre>\n<p>and check to make sure the changes have taken.<\/p>\n<pre>sudo vi \/etc\/resolv.conf\r\n\r\n<span style=\"color: #339966;\"># Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)<\/span>\r\n<span style=\"color: #339966;\"># DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN<\/span>\r\n<span style=\"color: #339966;\">nameserver <em><strong>192.168.1.7<\/strong><\/em><\/span>\r\n<span style=\"color: #339966;\">nameserver <em><strong>192.168.1.8<\/strong><\/em><\/span>\r\n<span style=\"color: #339966;\">search <em><strong>your.domain<\/strong><\/em><\/span><\/pre>\n<h2>A host by any other name&#8230;<\/h2>\n<p>Post upgrade I had a problem with all incoming messages being rejected with the following errors in the \/var\/log\/mail.log<\/p>\n<pre><span style=\"color: #339966;\">postfix\/smtpd[2784]: warning: connect to 127.0.0.1:10023: Connection refused<\/span>\r\n<span style=\"color: #339966;\">postfix\/smtpd[2784]: warning: problem talking to server 127.0.0.1:10023: Connection refused<\/span>\r\n<span style=\"color: #339966;\">venus postfix\/smtpd[2784]: warning: connect to 127.0.0.1:10023: Connection refused<\/span>\r\n<span style=\"color: #339966;\">venus postfix\/smtpd[2784]: warning: problem talking to server 127.0.0.1:10023: Connection refused<\/span>\r\n\r\n<\/pre>\n<p>On my server port 10023 is used by Postgrey and after googling the error it looks like there is a conflict in the hosts file that Postgrey is sensitive to now that it natively supports IPv6.<\/p>\n<pre>sudo vi \/etc\/hosts<\/pre>\n<p>I changed<\/p>\n<pre><span style=\"color: #339966;\">::1\u00a0\u00a0\u00a0\u00a0 <strong>localhost<\/strong> ip6-localhost ip6-loopback<\/span><\/pre>\n<p>to<\/p>\n<pre><span style=\"color: #339966;\">::1\u00a0\u00a0\u00a0\u00a0 <strong>localhost<span style=\"color: #ff6600;\">6<\/span><\/strong> ip6-localhost ip6-loopback<\/span><\/pre>\n<p>After a reboot I checked everything was ok&#8230;<\/p>\n<pre>$ <strong>host localhost<\/strong>\r\n<span style=\"color: #339966;\">localhost has address 127.0.0.1<\/span>\r\n<span style=\"color: #339966;\">localhost has IPv6 address ::1<\/span><\/pre>\n<h2>\u00a0Sending messages and SASL<\/h2>\n<p>What a headache it was trying to trace this problem! I refer to this change in an update to a previous post <a href=\"http:\/\/templesoft.co.nz\/journal\/?p=17#sasl-fix-1204\" target=\"_blank\" rel=\"noopener\">here<\/a>, but I thought it a good idea to include it below for completeness.<\/p>\n<p>Once I&#8217;d fixed the other problems above I noticed I couldn&#8217;t send any emails. All attempts resulted in errors about being unauthorised to send messages.<\/p>\n<p>I checked the \/var\/log\/auth.log and discovered that there seemed to be missing information (like the hostname) in the entries &#8211; so I checked my \/etc\/postfix\/sasl\/smtpd.conf and checked online and discovered that the format of the file had changed between versions.<\/p>\n<p>For example, <strong>auxprop_plugin<\/strong> was defined as &#8216;<em><strong>mysql<\/strong><\/em>&#8216;and had worked perfectly fine under 10.04, but under 12.04 was more sensitive to it&#8217;s proper definition: &#8216;sql&#8217;. Some of the labels had also changed which meant that some of the settings weren&#8217;t being read properly.<\/p>\n<p>To check the configuration, a handy command is:<\/p>\n<pre>sudo saslfinger -s<\/pre>\n<p>I changed the \/etc\/postfix\/sasl\/smtpd.conf and made the following changes\/additions in <span style=\"color: #ff0000;\">red<\/span>&#8230;<\/p>\n<pre style=\"text-align: justify;\">sudo vi \/etc\/postfix\/sasl\/smtpd.conf\r\n\r\n<span style=\"color: #339966;\">pwcheck_method: <strong>saslauthd<\/strong><\/span>\r\n<span style=\"color: #339966;\">mech_list: <strong>plain login cram-md5 digest-md5<\/strong><\/span>\r\n<span style=\"color: #339966;\">log_level: 7<\/span>\r\n<span style=\"color: #339966;\">allow_plaintext: true<\/span>\r\n<span style=\"color: #339966;\">auxprop_plugin: <span style=\"color: #ff0000;\"><strong>sql<\/strong><\/span><\/span>\r\n<span style=\"color: #339966;\">sql_engine: <strong>mysql<\/strong><\/span>\r\n<span style=\"color: #339966;\">sql_hostname<span style=\"color: #ff0000;\"><strong>s<\/strong><\/span>: 127.0.0.1<\/span>\r\n<span style=\"color: #339966;\">sql_user: <strong>mail<\/strong><\/span>\r\n<span style=\"color: #339966;\">sql_passw<span style=\"color: #ff0000;\"><strong>d<\/strong><\/span>: <em><strong>mailPASSWORD<\/strong><\/em><\/span>\r\n<span style=\"color: #339966;\">sql_database: <strong>maildb<\/strong><\/span>\r\n<span style=\"color: #339966;\">sql_select: select <strong>crypt<\/strong> from <strong>users<\/strong> where <strong>id<\/strong>='%u@%r' and <strong>enabled<\/strong> = 1\r\n<\/span><\/pre>\n<p>After a reboot I was able to send messages without a problem.<\/p>\n<h2>Housekeeping (not related to the upgrade)<\/h2>\n<p>For <span style=\"color: #333333;\">those<\/span> who don&#8217;t know (like me&#8230;) the DNSBL servers where shutdown in 2013. Now seems like a good time as any to update main.cf&#8230;<\/p>\n<pre style=\"text-align: justify;\"><span style=\"color: #339966;\">vi \/etc\/postfix\/main.cf<\/span><\/pre>\n<p style=\"text-align: justify;\"><span style=\"color: #339966;\"><span style=\"color: #333333;\">and remove &#8216;<strong>reject_rbl_client dnsbl.njabl.org<\/strong>&#8216;&#8230;<\/span><br \/>\n<\/span><\/p>\n<pre style=\"text-align: justify;\"><span style=\"color: #339966;\">smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org, reject_rbl_client blackholes.easynet.nl<del>, reject_rbl_client dnsbl.njabl.org<\/del><\/span><\/pre>\n<p style=\"text-align: justify;\">Save and restart&#8230;<\/p>\n<pre style=\"text-align: justify;\">sudo \/etc\/init.d\/postfix restart<\/pre>\n<p style=\"text-align: justify;\">\n","protected":false},"excerpt":{"rendered":"<p>&#8220;Where is the love&#8230;&#8221; So you finally did it: You upgraded from Ubuntu Server 10.04.x LTS to 12.04.x LTS and things went well, but after the reboot you&#8217;re having a few problems &#8211; you&#8217;re not alone! There&#8217;s probably an infinite array of server configurations out there, so the notes presented here will hopefully provide some&#8230;  <a class=\"excerpt-read-more\" href=\"https:\/\/templesoft.co.nz\/journal\/?p=140\" title=\"Read Upgrading from 10.04 to 12.04: Post upgrade experiences&#8230;\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[112,121,113,124,118,125,40,116,120,37,119,44,117,21,26,114,115,29,122,123],"class_list":["post-140","post","type-post","status-publish","format-standard","hentry","category-technical-resource","tag-10-04","tag-121","tag-12-04","tag-auxprop","tag-dns","tag-dnsbl","tag-hosts","tag-interfaces","tag-ipv6","tag-mail","tag-mail-log","tag-main-cf","tag-networking","tag-postfix","tag-postgrey","tag-resolv-conf","tag-resolvconf","tag-sasl","tag-sending","tag-smtpd-conf"],"_links":{"self":[{"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/posts\/140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=140"}],"version-history":[{"count":9,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/posts\/140\/revisions"}],"predecessor-version":[{"id":191,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=\/wp\/v2\/posts\/140\/revisions\/191"}],"wp:attachment":[{"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/templesoft.co.nz\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}