{"id":12087,"date":"2025-10-09T01:02:00","date_gmt":"2025-10-09T05:02:00","guid":{"rendered":"https:\/\/www.both.org\/?p=12087"},"modified":"2025-10-06T16:35:39","modified_gmt":"2025-10-06T20:35:39","slug":"email-cant-access-the-inbox","status":"publish","type":"post","link":"https:\/\/www.both.org\/?p=12087","title":{"rendered":"Email can&#8217;t access the INBOX"},"content":{"rendered":"<div class=\"pld-like-dislike-wrap pld-template-1\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"12087\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-up\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><\/div>\n<p>If you&#8217;ve been reading my posts here, or my books, you know that I like to experiment with many different aspects of Linux and open source software. Driven by curiosity, I need to explore new hardware and software, but I also need to re-examine things that I&#8217;ve tried previously. Either way, I always learn new things. <\/p>\n\n\n\n<p>In this case, I was exploring the Thunderbird and Kmail email clients. I like to see how they&#8217;ve changed over the years so I spent a few days using Thunderbird and then Kmail. I ultimately returned to <a href=\"https:\/\/www.both.org\/?p=2827\" data-type=\"link\" data-id=\"https:\/\/www.both.org\/?p=2827\" target=\"_blank\" rel=\"noreferrer noopener\">Alpine<\/a>, the text-mode email client, which still works best for me.  <\/p>\n\n\n\n<p>But leaving Thunderbird and Kmail behind was not the end of my entanglement with this little experiment.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The problem<\/h2>\n\n\n\n<p>I first noticed the problem a few minutes after returning to Alpine. Access to the Inbox was blocked because another process was using it. Alpine is smart enough to tell me that in the message box near the bottom of it&#8217;s interface. It also gave me the process ID (PID). All other mail folders were accessible as usual. <\/p>\n\n\n\n<p>Since the SendMail Inboxes for all users are maintained on the server in \/var\/spool\/mail, I initially thought this might be a server problem. But I&#8217;m also aware, due to past issues, that the KDE PIM services that run in the background can be a problem. Even though I normally use Xfce as my desktop, simply starting Kmail loads the  kalendarac and akonadi services. <\/p>\n\n\n\n<p>The kalendarac library offers helper functions to integrate the use of Akonadi calendar and notification items in applications. These services are responsible for the notifications you get in KDE when a new email is delivered, or a calendar notification is triggered. <\/p>\n\n\n\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Akonadi\" data-type=\"link\" data-id=\"https:\/\/en.wikipedia.org\/wiki\/Akonadi\" target=\"_blank\" rel=\"noreferrer noopener\">Akonadi<\/a> is a storage service for personal information management data and metadata named after the oracle goddess of justice in Ghana. It is one of the &#8220;pillars&#8221; behind the KDE SC 4 project, although it is designed to be used in any desktop environment. It is extensible and provides concurrent read, write, and query access. Akonadi provides unique desktop-wide object identification and retrieval. It functions as an extensible data storage for all PIM applications. Besides data storage, Akonadi has several other components including search, and a library for easy access and notification of data changes. Akonadi communicates with servers to fetch and send data instead of applications through a specialized API. Data can then be retrieved from Akonadi by a model designed to collect specific data.<\/p>\n\n\n\n<p>Akonadi starts automatically in the background when any application using it is started &#8212; such as Kmail. So my starting and using Kmail for my explorations was what launched these services. And when I stopped using Kmail, the Xfce Session and Startup configuration kept restarting kalendarac which restarted Akonadi because Calendar Reminders was selected for automatic startup on login. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The solution<\/h2>\n\n\n\n<p>This was a rather complex problem so the solution required several steps to completely rid my workstation of all vestiges of the Akonadi and kalendarac services.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Disabling the Akonadi subsystem<\/h3>\n\n\n\n<p>The first step is to stop the Akonadi server. Use this command as the root user to stop the <strong>Akonadi<\/strong> server.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># <strong>akonadictl stop<\/strong><\/code><\/pre>\n\n\n\n<p>Be aware that launching any of the KDE PIMs will restart Akonadi. You can query the status of the <strong>Akonadi<\/strong> server just to be certain it&#8217;s stopped.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># <strong>akonadictl status<\/strong><\/code><\/pre>\n\n\n\n<p>The <strong>Akonadi<\/strong> server is automatically started by any <strong>Akonadi<\/strong>-enabled application. If you don&#8217;t want Akonadi to be started after login, you have to ensure that no <strong>Akonadi<\/strong>-enabled application is launched at login or thereafter. Remember to check <strong>Plasma<\/strong> applets as well \u2014 the <strong>Digital Clock<\/strong> widget in the default panel, for instance uses <strong>Akonadi<\/strong> to (optionally) display calendar events and this is enabled in its settings by default (see the &#8220;Display Events&#8221; option) . You must remove any widgets that may start it from your start-up.<\/p>\n\n\n\n<p>I found that this wasn&#8217;t the complete solution as I still had the problem. I found that a rogue instance of kalendarac was still running. This was probably due to my flailing around as I started and stopped the services during my initial problem determination.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># <strong>pgrep kalendarac<\/strong>\n3927\n# <strong>pkill kalendarac<\/strong><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Disable Calendar reminders<\/h3>\n\n\n\n<p>I found that the Xfce Calendar Reminders applet was checked and that launched kalendarac when I logged in to my workstation. I had to uncheck that In the Applications tab of the Xfce Session and Startup menu to fix it.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><a href=\"https:\/\/www.both.org\/wp-content\/uploads\/2025\/10\/Xfce-Session-Startup-CalendarReminders-01.png\" target=\"_blank\" rel=\" noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"827\" height=\"685\" src=\"http:\/\/www.both.org\/wp-content\/uploads\/2025\/10\/Xfce-Session-Startup-CalendarReminders-01.png\" alt=\"\" class=\"wp-image-12092\" style=\"width:627px;height:auto\"\/><\/a><figcaption class=\"wp-element-caption\">Disable Calendar Reminders to prevent Akonadi from starting when the Xfce desktop starts. David Both: CC-by-SA 4.0. Click the image to enlarge.<\/figcaption><\/figure>\n\n\n\n<p>If you find that the kalendarac program is still running after a reboot, as it was for me, be sure to kill it as shown above and to deselect &#8220;Automatically save session&#8221; on the General tab of the Session and Startup menu. This is another step to prevent it from starting the next time you login.<\/p>\n\n\n\n<p>I also needed to disable the Akonadi-related notification settings in the Xfce Notifications settings menu.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><a href=\"https:\/\/www.both.org\/wp-content\/uploads\/2025\/10\/Xfce-Notifications-Configuration-01.png\" target=\"_blank\" rel=\" noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"910\" height=\"845\" src=\"http:\/\/www.both.org\/wp-content\/uploads\/2025\/10\/Xfce-Notifications-Configuration-01.png\" alt=\"\" class=\"wp-image-12124\" style=\"width:630px;height:auto\"\/><\/a><figcaption class=\"wp-element-caption\">Disable the Akonadi notifications in Settings. Be sure to disable urgent notifications as well. Click the image to enlarge.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">A final clean sweep<\/h3>\n\n\n\n<p>After all those changes, I was still experiencing the same symptom. I found a rogue Akonadi service running and used pkill to terminate it. I did a final check to verify that there were no remaining vestiges of Akonadi or kanendarac running and it was all clear. <\/p>\n\n\n\n<p>At this point I deleted all packages related to Akonadi so that they can&#8217;t ever start again. Of course none of the KDE PIMs will run because their data source is now totally removed from my workstation. That&#8217;s OK because, despite the fact that I do prefer Kmail over Thunderbird, I much prefer Alpine over either GUI email client. So I won&#8217;t be using Kmail again. <\/p>\n\n\n\n<p>I&#8217;m probably not going to even try to use KDE Plasma again any time soon, since I much prefer Xfce despite the many powerful and interesting features found in KDE Plasma. Hopefully that means I&#8217;ll not need to deal with this type of problem again.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&rsquo;ve been reading my posts here, or my books, you know that I like to experiment with<\/p>\n","protected":false},"author":2,"featured_media":2816,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[110,5,83],"tags":[114,837,196],"class_list":["post-12087","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-email","category-linux","category-problem-solving","tag-alpine","tag-kmail","tag-problem-solving"],"modified_by":"David Both","_links":{"self":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/12087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12087"}],"version-history":[{"count":24,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/12087\/revisions"}],"predecessor-version":[{"id":12142,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/12087\/revisions\/12142"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/media\/2816"}],"wp:attachment":[{"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}