1
Sometimes after create a new domain cannot list the accounts (domain structure not found)
Problem reported by CLEBER SAAD - 5/23/2024 at 9:31 AM
Submitted
Hello,

Using version 8902 I created a new domain and when I try to access the account a red label show "Domain Structure not Found". Using Ubuntu 22.x

When I try to access with the postmaster user created cannot login and in the generalLogs I have this error:

13:26:17.626 Exception in Login Check12, DomainDataStructure is not available
13:26:17.630 Error in login: username: postmaster@clebersaad.com.br, type: WEBMAIL, Ip: 192.168.15.10, host: 192.168.15.13, logloginAttempt: True, recordLogin: True, impersonationLogin: False, returnDomainAlias: False, alwaysLogLoginAttemptsFromApi: True, appPasswordProtocols: Webmail
13:26:20.116 Exception in Login Check12, DomainDataStructure is not available
13:26:20.116 Error in login: username: postmaster@clebersaad.com.br, type: WEBMAIL, Ip: 192.168.15.10, host: 192.168.15.13, logloginAttempt: True, recordLogin: True, impersonationLogin: False, returnDomainAlias: False, alwaysLogLoginAttemptsFromApi: True, appPasswordProtocols: Webmail

Regards

5 Replies

Reply to Thread
0
Kyle Kerst Replied
Employee Post
When you see this next can you please check on disk under /var/lib/smartermail/Domains to see if the domain folder and its associated files are present or not? I suspect the accounts.json file may not be getting created properly. If you're not using the default directories for data storage - have you verified the permissions match our default directories?
Kyle Kerst System/Network Administrator SmarterTools Inc. (877) 357-6278 www.smartertools.com
1
CLEBER SAAD Replied
Hello Kyle,

I'm using the default directories withou any changes. I made a upgrade from old version to the latest. After the upgrade to the 8902 version this error initiate. I made a uninstall and removed the all files. I made a new install with new domain (dominio.com.br) and the same error occurrs (I'm using a complex password with !@#$% in postmaster account). If you can that I get some debug send-me the debug configuration if has.

BTW, running in a virtual box with Ubuntu 22.04 version (in my local machine).

The accounts.json with one account only (postmaster)

{"id_generator":{"next_id":20001,"current_block":"20000:29999","blocks":["20000:29999"]},"primary_domain_admin":"postmaster","domain_admins":["postmaster"],"users":{"postmaster":{"mid":20000,"guid":"fdb38071748a4701be0ff5943a2eefcd","email_bytes":0,"file_storage_bytes":0,"attached_file_bytes":0,"chat_files_bytes":0,"workspace_bytes":0,"note_bytes":0,"appointment_bytes":0,"contact_bytes":0,"task_bytes":0}},"aliases":[],"lists":[],"groups":[],"groups_next_id":1}

The settings.json of dominio.com.br/Users/postmaster account

root@clsaad:/var/lib/smartermail/Domains/dominio.com.br/Users/postmaster# cat settings.json
{"file_version":8,"settings":{"account_name":"postmaster","active_directory_username":"","auth_provider_id":"","allow_mail_forwarding":false,"allow_remote_content":false,"app_passwords":[],"auth_type":0,"auto_clean_override_active":false,"auto_respond_on_direct_mail_only":false,"bypass_greylist":false,"bypassed_trusted_senders":[],"calendar_auto_clean_months":-2,"calendar_settings":{"show_weekends_weekly":true,"show_weekends_monthly":true,"show_task_starts":true,"show_task_dues":true,"hide_complete_tasks":false,"sunday":{"Enabled":false,"Start":"08:00:00","End":"17:00:00"},"monday":{"Enabled":true,"Start":"08:00:00","End":"17:00:00"},"tuesday":{"Enabled":true,"Start":"08:00:00","End":"17:00:00"},"wednesday":{"Enabled":true,"Start":"08:00:00","End":"17:00:00"},"thursday":{"Enabled":true,"Start":"08:00:00","End":"17:00:00"},"friday":{"Enabled":true,"Start":"08:00:00","End":"17:00:00"},"saturday":{"Enabled":false,"Start":"08:00:00","End":"17:00:00"},"view_settings":[{"Type":2,"Uid":"32d5c9b0162640b587f1e9ed9ce2caea","FriendlyName":"Calendar","CalendarViewColor":"#F59668","ShowInCalendar":true,"IsPrimary":true,"AllowWebcalSubscription":false,"FolderId":30003}],"show_gal_in_contacts":true,"overlay_settings":{"Calendars":true,"Tasks":true,"Contacts":true,"Notes":true},"default_duration":60,"default_reminder":2,"first_day_of_week":0},"scheduling_settings":{"enabled":false,"private_appointment":false,"password_protected":false,"scheduling_password":"","scheduling_guid":"d55c768592674d0585572a6a0f7b4f56","public_link_info":"","calendar_id":"","lead_time":0,"minutes_between":3,"page_description":"","background_color":"#005fdb","appointment_title_color":"#00e08a","display_name_color":"#fe6c6c","sunday":{"Start":"08:00:00","End":"17:00:00","Enabled":true},"monday":{"Start":"08:00:00","End":"17:00:00","Enabled":true},"tuesday":{"Start":"08:00:00","End":"17:00:00","Enabled":true},"wednesday":{"Start":"08:00:00","End":"17:00:00","Enabled":true},"thursday":{"Start":"08:00:00","End":"17:00:00","Enabled":true},"friday":{"Start":"08:00:00","End":"17:00:00","Enabled":true},"saturday":{"Start":"08:00:00","End":"17:00:00","Enabled":true},"appointment_types":[],"scheduling_fields":[],"conflict_calendars":[]},"can_receive_mail":true,"categories":[],"category_list":{"default_category":"CATEGORY_RED","last_saved_utc":"2024-05-23T16:42:23.7679154Z","last_saved_session":0,"categories":[{"name":"CATEGORY_RED","color_index":0,"guid":"{40e2ba44-28f7-4ee9-8f4a-40dca47e7f2c}","shortcut_key":0,"rename_on_first_use":false,"last_time_used_utc":"0001-01-01T00:00:00","last_session_used":0},{"name":"CATEGORY_ORANGE","color_index":1,"guid":"{89ee8415-51b5-4695-b3cf-429b38ecdea9}","shortcut_key":0,"rename_on_first_use":false,"last_time_used_utc":"0001-01-01T00:00:00","last_session_used":0},{"name":"CATEGORY_YELLOW","color_index":3,"guid":"{4a84fd46-2632-46a3-bf0a-5b01da722f41}","shortcut_key":0,"rename_on_first_use":false,"last_time_used_utc":"0001-01-01T00:00:00","last_session_used":0},{"name":"CATEGORY_GREEN","color_index":4,"guid":"{ebc0193a-40ba-4344-af1d-98f479d93400}","shortcut_key":0,"rename_on_first_use":false,"last_time_used_utc":"0001-01-01T00:00:00","last_session_used":0},{"name":"CATEGORY_BLUE","color_index":7,"guid":"{66ce2e19-7cc1-4e43-a40c-cc5de534b504}","shortcut_key":0,"rename_on_first_use":false,"last_time_used_utc":"0001-01-01T00:00:00","last_session_used":0},{"name":"CATEGORY_PURPLE","color_index":8,"guid":"{728ada8f-bb0b-4db1-a3ee-58bd22b4d556}","shortcut_key":0,"rename_on_first_use":false,"last_time_used_utc":"0001-01-01T00:00:00","last_session_used":0}]},"compose_default_domain":"","compose_font":"arial","compose_font_size":"14px","connected_services":[],"created_utc":"2024-05-23T16:42:23.7679102Z","current_indexer":1,"delegates":[],"delete_mail_on_forward":false,"delete_option":0,"description":"","display_name":"postmaster","enable_auto_responder":false,"enable_draft_auto_save":false,"enable_imap":true,"enable_webdav":true,"enable_incoming_smtp":true,"enable_outgoing_smtp":true,"enable_pop":true,"enable_webmail":true,"enable_xmpp":true,"ews_file_cleanup_completed":"2024-05-23T16:42:23.8350160Z","forward_addresses":[],"full_name":"postmaster","has_pending_notifications":false,"hide_complete_tasks_in_calendar":false,"imap_accounts":[],"index_version":"8.2.3.0","is_enabled":true,"is_indexed":false,"is_password_expired":false,"is_password_locked":false,"is_password_violation_grace_period_expired":false,"is_password_compliant":0,"is_out_of_office":false,"keep_recipients_on_forward":false,"last_assigned_uid_validity_value":5000,"last_folder_hierarchy_change_utc":"2024-05-23T16:42:24.1549148Z","locale_id":"en","mark_pop_downloads_as_read":true,"max_account_size":1048576000,"notify_on_calendar_reminders":true,"notify_on_chat_messages":true,"notify_on_new_emails":true,"password_encrypted":"2aUzmy99lHEZDiau9qy9uA==","password_expiration_last_notification":-1,"internet_calendars":[],"password_last_change_utc":"2024-05-23T16:42:19.0980592Z","password_violation_last_notification":-1,"password_expired_manually":false,"plus_addressing_enabled":false,"pop_accounts":[],"preview_marks_read":false,"preview_mode":1,"repl_guid":"e8725a4a02dd43e692bfbdc41ca743fa","reply_from_to_field":false,"request_read_receipts":false,"request_delivery_receipts":false,"show_in_gal":true,"show_in_xmpp":true,"show_task_dues_in_calendar":true,"show_task_starts_in_calendar":true,"show_weekends_monthly":true,"show_weekends_weekly":true,"signature_map_option":3,"spam_check_override_active":false,"spam_forward_option":0,"spam_level_low_action":{"boolOption1":false,"boolOption2":false},"spam_level_med_action":{"action_type":4,"argument":"Junk E-mail","boolOption1":false,"boolOption2":false},"spam_level_high_action":{"action_type":4,"argument":"Junk E-mail","boolOption1":false,"boolOption2":false},"throttle_bandwidth_action":1,"throttle_bandwidth_mb_per_hour":100,"throttle_bounces_action":1,"throttle_bounces_per_hour":500,"throttle_messages_action":1,"throttle_messages_per_hour":1000,"time_zone_index":65,"two_step_configured":false,"two_step_offer":false,"two_step_rfc_secret":"","two_step_type":0,"warn_if_mistakes":true,"hide_mail_avatars":false,"welcome_wizard_progress":0,"xmpp_status":"unavailable","exchange_accounts":[],"smtp_accounts":[],"preferred_indexer":1,"last_accepted_policy_version":0,"blocked_sender_action":1,"blocked_senders":[],"resource_info_map":{},"seen_whats_new":{},"fixer_cfg_version":7,"version":0,"fixer_eas_device_version":0},"remote_trackers_allowed":[],"auto_responders":[{"id":2,"subject":"","body":"","external_reply":"","is_enabled":false,"is_html":true,"external_audience":2,"auto_respond_to_direct_mail_only":false,"autoresponder_config_version":1}],"auto_clean_rules_next_id":1,"auto_responder_next_id":2,"signature_next_id":1,"signature_mappings_next_id":1}

Regards,
0
Kyle Kerst Replied
Employee Post
Hello :-) The JSON structure looks to be okay, so I wonder if it might just be looking in the wrong place. In past versions we used /var/lib/smartermail as our default, whereas later versions pushed pathing to /var/lib/SmarterMail (notice the case change) so it might be possible your pathing is referencing one and should be referencing the other as well. Can you check that for me? If the domain's settings are pointing to the wrong one it'll result in odd behaviors like this as well. 

If that doesn't help I'd like to get a ticket started with you so we can take a peek at it if that's alright?
Kyle Kerst System/Network Administrator SmarterTools Inc. (877) 357-6278 www.smartertools.com
0
CLEBER SAAD Replied
Hi Kyle,
All directories are as smartermail (lowercase).
I removed all smartermail and removed the directories of smartermail from /etc, /var/lib and /opt.
Made a new install, same problem.
Opening a ticket. Regards,

0
Kyle Kerst Replied
Employee Post
Just following up here now that we have identified the root cause along with a solution. These errors were happening because a previous attempt to create the domain failed leaving a partial directory structure present on disk. Once cleaned up, domain creation then worked as expected. 

We were not able to replicate the original domain creation error that caused it in the first place, but I suspect this might stem from the VirtualBox-based deployment somehow and I will update here when we have answers on that side of things as well.

Kyle Kerst System/Network Administrator SmarterTools Inc. (877) 357-6278 www.smartertools.com

Reply to Thread