{"id":865,"date":"2025-04-06T21:08:37","date_gmt":"2025-04-06T19:08:37","guid":{"rendered":"https:\/\/online.osba.nl\/blog\/?p=865"},"modified":"2025-04-06T21:11:27","modified_gmt":"2025-04-06T19:11:27","slug":"snappymail-admin-password","status":"publish","type":"post","link":"https:\/\/blog.osba.nl\/en\/2025\/04\/06\/snappymail-admin-password\/","title":{"rendered":"Snappymail admin password"},"content":{"rendered":"\n<ul class=\"wp-block-list\">\n<li><strong>Initial admin password:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Does not exist during the installation of Snappymail.<\/li>\n\n\n\n<li>Visit the admin page at <a href=\"https:\/\/sub.domain.tld\/snappymail\/app\/?admin\">https:\/\/sub.domain.tld\/snappymail\/app\/?admin<\/a>.<\/li>\n\n\n\n<li>Log in to the server via SSH and navigate to <code>\/var\/www\/snappymail\/app# cd data\/_data_\/_default_\/<\/code>.<\/li>\n\n\n\n<li>It may take some time for the file to be created. Once it exists, you can open <code>admin_password.txt<\/code> in that directory.<\/li>\n\n\n\n<li>Log in to the &#8220;Admin Panel&#8221; using <code>admin<\/code> as the login and the discovered password as the passphrase. TOTP is not initially configured.<\/li>\n\n\n\n<li>You will be prompted to change the password.<\/li>\n\n\n\n<li>Snappymail automatically removes the temporary password file.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>After forgetting the password:<\/strong>\n<ul class=\"wp-block-list\">\n<li>An encrypted version of the password is stored in the config file located at <code>\/var\/www\/snappymail\/app\/data\/_data_\/_default_\/configs\/application.ini<\/code>.<\/li>\n\n\n\n<li>The property is named <code>admin_password<\/code> under the section \u201cLogin and password for the web admin panel\u201d:\n<ul class=\"wp-block-list\">\n<li>If the value is empty, you have not logged in yet. The password file is created after visiting the admin page.<\/li>\n\n\n\n<li>If the value is filled, it means you have logged in before.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>To generate a new password:\n<ul class=\"wp-block-list\">\n<li>Delete the recorded password.<\/li>\n\n\n\n<li>Visit the admin page again (possibly using a private browser window helps in some cases).<\/li>\n\n\n\n<li>The file <code>admin_password.txt<\/code> will be automatically created shortly afterward.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Log in with the new password and the user mentioned as <code>admin_login<\/code> in <code>application.ini<\/code> (&#8216;admin&#8217; by default)<\/li>\n\n\n\n<li>At the top of the page, a banner will suggest changing the password:\n<ul class=\"wp-block-list\">\n<li>In addition to the password, you can also change the admin username.<\/li>\n\n\n\n<li>Note that you also need the (new\/temporary) current password.<\/li>\n\n\n\n<li>The new username\/password combination is saved in the previously mentioned <code>application.ini<\/code> file.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>After changing the password, Snappymail automatically cleans up the temporary password file.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>The last few times I needed the admin panel, was to remedy being unable to send mail (<code>failed to add recipient 553 5.7.1 sender adresse rejected : not logged in<\/code>).<\/p>\n\n\n\n<p>Now that I want to reproduce the issue though, I\u2019m unable: whether I set SMTP \u2018Secure\u2019 to \u2018None\u2019 or \u2018STARTTLS\u2019, and \u2018Server\u2019 to \u2018localhost\u2019 or \u2018domain.tld\u2019, I am still able to send email from Snappymail. This is an unforseen development, but does not change anything about steps to log in to the panel <img loading=\"lazy\" decoding=\"async\" width=\"20\" height=\"20\" src=\"https:\/\/forum.yunohost.org\/images\/emoji\/twitter\/slight_smile.png?v=14\" alt=\":slight_smile:\"><\/p>\n<p class=\"wpf_wrapper\"><a class=\"print_link\" href=\"\" target=\"_blank\">Print this entry<\/a><\/p><!-- .wpf_wrapper -->","protected":false},"excerpt":{"rendered":"<p>The last few times I needed the admin panel, was to remedy being unable to send mail (failed to add recipient 553 5.7.1 sender adresse rejected : not logged in). Now that I want to reproduce the issue though, I\u2019m unable: whether I set SMTP \u2018Secure\u2019 to \u2018None\u2019 or \u2018STARTTLS\u2019, and \u2018Server\u2019 to \u2018localhost\u2019 or &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.osba.nl\/en\/2025\/04\/06\/snappymail-admin-password\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Snappymail admin password&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"en_US","_original_post":"https:\/\/online.osba.nl\/blog\/?p=857","activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":""},"categories":[74,4],"tags":[82,83],"class_list":["post-865","post","type-post","status-publish","format-standard","hentry","category-mail","category-yunohost","tag-snappymail","tag-webmail","en-US"],"_links":{"self":[{"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/posts\/865","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/comments?post=865"}],"version-history":[{"count":4,"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/posts\/865\/revisions"}],"predecessor-version":[{"id":882,"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/posts\/865\/revisions\/882"}],"wp:attachment":[{"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/media?parent=865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/categories?post=865"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.osba.nl\/wp-json\/wp\/v2\/tags?post=865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}