Issues with Nextcloud Mail - HTML emails not displaying

Hello everyone,

I am currently experiencing several issues with my Nextcloud installation, particularly concerning the Mail app. Here are the details of my setup and the errors I’m encountering:

I am experiencing issues with viewing emails in the Nextcloud Mail app. I enter my email account, and it connects without any problems; it takes a little time, but it connects. The problem arises with the display of emails: those that are in plain text appear correctly, but those that are in HTML format remain in a constant loading state and cannot be read.

I have noticed a warning stating: “Slow session operation session_start detected.” This seems to affect the overall responsiveness of the application when handling mail-related tasks.

What can I do?

Nextcloud Installation Details:
Nextcloud Version: Nextcloud Hub 8 (29.0.8)
Installation Method: Snap
Server Environment: Ubuntu server 22.04
Database: MySQL

Thank you for your help!

Best regards,

Config.php file:

PASTE HERE

The output of your Apache/nginx/system log in /var/log/____:

<?php
$CONFIG = array (
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '*******',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '*******',
      'url' => '/extra-apps',
      'writable' => true,
    ),
  ),
  'supportedDatabases' =>
  array (
    0 => 'mysql',
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '*******',
    'port' => 0,
  ),
  'log_type' => 'file',
  'logfile' => '*******/nextcloud.log',
  'logfilemode' => 416,
  'maintenance_window_start' => 1,
  'instanceid' => '*******',
  'passwordsalt' => '*******',
  'secret' => '*******',
  'trusted_domains' =>
  array (
    0 => '*******',
    1 => '*******',
  ),
  'datadirectory' => '*******',
  'dbtype' => 'mysql',
  'version' => '29.0.8.1',
  'overwrite.cli.url' => '*******',
  'dbname' => '*******',
  'dbhost' => '*******',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '*******',
  'dbpassword' => '*******',
  'installed' => true,
  'maintenance' => false,
  'loglevel' => 1,
  'overwriteprotocol' => 'https',
  'ldapProviderFactory' => '*******',
);

Hey @jmanzanas welcome to the community,

this may be a result of missing mimetypes, see our wiki:

try issue this command on the host:

sudo nextcloud.occ maintenance:repair --include-expensive

your logs may help find a probable cause.

run the debugging script if the above command doesn’t resolve the issue.

your error description points to Nextcloud Mail app.

First of all, thank you very much for the response. Secondly, I have pasted the results of the commands here in the reply, except for the script output due to its length. However, I have uploaded the results in both PDF and log formats to a shared folder on Nextcloud.

Share folder

Cita
try issue this command on the host:
sudo nextcloud.occ maintenance:repair --include-expensive

The result of the execution of the mentioned command:

root@nextcloud:/# sudo nextcloud.occ maintenance:repair --include-expensive
 - Repair MySQL collation
     - All tables already have the correct collation -> nothing to do
 - Clean tags and favorites
     - 0 tags of deleted users have been removed.
     - 0 tags for delete files have been removed.
     - 0 tag entries for deleted tags have been removed.
     - 0 tags with no entries have been removed.
 - Repair invalid shares
 - Move .step file of updater to backup location
 - Add move avatar background job
     - Repair step already executed
 - Add preview cleanup background jobs
 - Migrate oauth2_clients table to nextcloud schema
     - Update the oauth2_access_tokens table schema.
     - Update the oauth2_clients table schema.
     - Delete clients (and their related access tokens) with the redirect_uri starting with oc:// or ending with *
 - Repair language codes
 - Add log rotate job
 - Clear frontend caches
     - Image cache cleared
     - JS cache cleared
 - Clear every generated avatar
 - Add preview background cleanup job
 - Queue a one-time job to cleanup old backups of the updater
 - Cleanup invalid photocache files for carddav
 - Add background job to cleanup login flow v2 tokens
 - Remove potentially over exposing share links
     - No need to remove link shares.
 - Clear access cache of projects
 - Reset generated avatar flag
 - Keep legacy encryption enabled
 - Check encryption key format
 - Remove old dashboard app config data
 - Add job to cleanup the bruteforce entries
 - Queue a one-time job to check for user uploaded certificates
 - Repair DAV shares
 - Add background job to set the lookup server share state for users
 - Add token cleanup job
 - Clean up abandoned apps
 - Add possibly missing system config
 - Add AI tasks cleanup jobs
 - Queue a job to generate metadata
 - migrate lazy config values
 - Cache logo dimension to fix size in emails on Outlook
     - Theming is not used to provide a logo
 - Remove legacy ".ocdata" file
 - Remove shares of old group memberships
 - Repair mime types
 - Validate the phone number and store it in a known format for search
     - WARNING: Can not validate phone numbers without `default_phone_region` being set in the config file
 - Handle outdated scheduling events
     - Cleaning up old scheduling events
 - AppAPI Daemons configuration GPU params update
     - Daemons configuration GPU params updated: 0
 - Upgrading Circles App
 - Fix component of birthday calendars
     - 0 birthday calendars updated.
 - Regenerating birthday calendars to use new icons and fix old birthday events without year
     - Repair step already executed
 - Fix broken values of calendar objects
    0 [->--------------------------]
 - Registering building of calendar search index as background job
     - Repair step already executed
 - Register building of social profile search index as background job
     - Repair step already executed
 - Registering background jobs to update cache for webcal calendars
     - Added 0 background jobs to update webcal calendars
 - Registering building of calendar reminder index as background job
     - Repair step already executed
 - Clean up orphan event and contact data
     - 0 events without a calendar have been cleaned up
     - 0 properties without an events have been cleaned up
     - 0 changes without a calendar have been cleaned up
     - 0 cached events without a calendar subscription have been cleaned up
     - 0 changes without a calendar subscription have been cleaned up
     - 0 contacts without an addressbook have been cleaned up
     - 0 properties without a contact have been cleaned up
     - 0 changes without an addressbook have been cleaned up
 - Remove activity entries of private events
     - Removed 0 activity entries
 - Clean up old calendar subscriptions from deleted users that were not cleaned-up
    0 [----->----------------------]
     - 0 calendar subscriptions without an user have been cleaned up
 - Remove invalid object properties
     - 0 invalid object properties removed.
 - Fix the share type of guest shares when migrating from ownCloud
 - Copy the share password into the dedicated column
 - Set existing shares as accepted
 - Restore default tags that are missing
     - Looking up default tags
     - 1 accounts to check found
 1/1 [============================] 100%
 - Add a generated message-id to all Mail messages that have none
     - Looking up messages without a message-id
 - Purify and migrate collected mail addresses
    0 [------------->--------------]
 - Insert background jobs for all accounts
 1/1 [============================] 100%
 - Make Mail itinerary extractor executable
     - itinerary file doesn't exist
 - Create or update provisioned Mail accounts
     - 0 accounts provisioned
 - Repair Broken Threads for all mail accounts
     - Repaired threads, 0 messages updated
 - Queue a job to delete duplicated cached messages
 - Clean up meta table
 - Show a hint about the new editor to existing users
 - Update OAuth token expiration times
 - init metadata
 - Invalidate access cache for projects conversation provider
     - Invalidation not required
 - Cache the user display names
 - Switches from default updater server to the customer one if a valid subscription is available
     - Repair step already executed
 - Send an admin notification if monthly report is disabled
 - Force-reset all Text document sessions
 - Initialize migration of background images from dashboard to theming app
 - Add background job to check for backup codes
 - Insert UUIDFix background job for user and group in batches
 - Remove deprecated refresh time markers for LDAP user records
 - Populating added database structures for workflows

Real-time log visualization when trying to open emails.:

root@nextcloud:/# sudo nextcloud.occ log:watch
  Error    mail               Exception: Failed to parse time string (Mon, 28 Oct 2024 15:57:10 +0800 (GMT+08:00)) at position 36 (+): Double timezone specification at            
                              lib/private/AppFramework/Utility/TimeFactory.php line 44

                               0. lib/private/AppFramework/Utility/TimeFactory.php line 44
                                  DateTime->__construct(

                                  )
                               1. .../44812/nextcloud/extra-apps/mail/lib/Service/PhishingDetection/DateCheck.php line 27
                                  OC\AppFramework\Utility\TimeFactory->getDateTime(

                                  )
                               2. .../extra-apps/mail/lib/Service/PhishingDetection/PhishingDetectionService.php line 40
                                  OCA\Mail\Service\PhishingDetection\DateCheck->run(

                                  )
                               3. .../mail/lib/IMAP/ImapMessageFetcher.php line 520
                                  OCA\Mail\Service\PhishingDetection\PhishingDetectionService->checkHeadersForPhishing(

                                  )
                               4. .../var/snap/nextcloud/44812/nextcloud/extra-apps/mail/lib/IMAP/ImapMessageFetcher.php line 237
                                  OCA\Mail\IMAP\ImapMessageFetcher->parseHeaders(

                                  )
                               5. /var/snap/nextcloud/44812/nextcloud/extra-apps/mail/lib/IMAP/MessageMapper.php line 308
                                  OCA\Mail\IMAP\ImapMessageFetcher->fetchMessage(

                                  )
                               6. <<closure>>
                                  OCA\Mail\IMAP\MessageMapper->OCA\Mail\IMAP\{closure}("*** sensitive parameters replaced ***")
                               7. /var/snap/nextcloud/44812/nextcloud/extra-apps/mail/lib/IMAP/MessageMapper.php line 298
                                  array_map(

                                  )
                               8. /var/snap/nextcloud/44812/nextcloud/extra-apps/mail/lib/IMAP/MessageMapper.php line 71
                                  OCA\Mail\IMAP\MessageMapper->findByIds(

                                  )
                               9. /var/snap/nextcloud/44812/nextcloud/extra-apps/mail/lib/Service/MailManager.php line 185
                                  OCA\Mail\IMAP\MessageMapper->find(

                                  )
                              10. .../snap/nextcloud/44812/nextcloud/extra-apps/mail/lib/Controller/MessagesController.php line 211
                                  OCA\Mail\Service\MailManager->getImapMessage(

                                  )
                              11. lib/private/AppFramework/Http/Dispatcher.php line 208
                                  OCA\Mail\Controller\MessagesController->getBody(

                                  )
                              12. lib/private/AppFramework/Http/Dispatcher.php line 114
                                  OC\AppFramework\Http\Dispatcher->executeController(

                                  )
                              13. lib/private/AppFramework/App.php line 161
                                  OC\AppFramework\Http\Dispatcher->dispatch(

                                  )
                              14. lib/private/Route/Router.php line 302
                                  OC\AppFramework\App::main(

                                  )
                              15. lib/base.php line 1001
                                  OC\Route\Router->match(

                                  )
                              16. index.php line 24
                                  OC::handleRequest(

                                  )

  Info     mail               KItinerary binary adapter is not available, can't extract information                                                                                

  Info     mail               KItinerary binary adapter is not available, can't extract information                                                                                

  Info     mail               KItinerary binary adapter is not available, can't extract information                                                                                

  Error    PHP                Undefined array key 1 at /var/snap/nextcloud/44812/nextcloud/extra-apps/mail/vendor/phpmailer/dkimvalidator/src/Validator.php#52                     

  Info     mail               KItinerary binary adapter is not available, can't extract information                                                                                

  Info     mail               No iMIP messages to process.                                                                                                                         

  Info     mail               KItinerary binary adapter is not available, can't extract information  

I also cannot open HTML emails, but text emails are fine. The error seems to arise from the DKIM check, flag setting, or itinerary call, or all 3. The odd thing is, the server responds with the body correctly, but because the other API calls fail, it just inserts an “Error loading message” html instead of the email.

Nextcloud errors:

Error    mail               OCA\Mail\Exception\ServiceException: Could not set message flag on IMAP: Mail server denied authentication. at custom_apps/mail/lib/Service/MailManager.php line 482           2024-10-31T15:46:49+00:00 
                                                                                                                                                                                                                                       
                              0. custom_apps/mail/lib/Controller/MessagesController.php line 799                                                                                                                                       
                                 OCA\Mail\Service\MailManager->flagMessage(["OCA\\Mail\\Account"], "INBOX", 1107, "seen", true)                                                                                                        
                              1. lib/private/AppFramework/Http/Dispatcher.php line 232                                                                                                                                                 
                                 OCA\Mail\Controller\MessagesController->setFlags(2148, [true])                                                                                                                                        
                              2. lib/private/AppFramework/Http/Dispatcher.php line 138                                                                                                                                                 
                                 OC\AppFramework\Http\Dispatcher->executeController(["OCA\\Mail\\Controller\\MessagesController"], "setFlags")                                                                                         
                              3. lib/private/AppFramework/App.php line 184                                                                                                                                                             
                                 OC\AppFramework\Http\Dispatcher->dispatch(["OCA\\Mail\\Controller\\MessagesController"], "setFlags")                                                                                                  
                              4. lib/private/Route/Router.php line 331                                                                                                                                                                 
                                 OC\AppFramework\App::main(                                                                                                                                                                            
                                   "OCA\\Mail\\Controller\\MessagesController",                                                                                                                                                        
                                   "setFlags",                                                                                                                                                                                         
                                   ["OC\\AppFramework\\DependencyInjection\\DIContainer"],                                                                                                                                             
                                   ["2148","mail.messages.setflags"]                                                                                                                                                                   
                                 )                                                                                                                                                                                                     
                              5. lib/base.php line 1058                                                                                                                                                                                
                                 OC\Route\Router->match("\/apps\/mail\/api\/messages\/2148\/flags")                                                                                                                                    
                              6. index.php line 49                                                                                                                                                                                     
                                 OC::handleRequest(                                                                                                                                                                                    
                                                                                                                                                                                                                                       
                                 )                                                                                                                                                                                                     
                                                                                                                                                                                                                                       
                              Caused by Horde_Imap_Client_Exception: Mail server denied authentication. at .../horde-imap-client/lib/Horde/Imap/Client/Socket.php line 572                                                             
                                                                                                                                                                                                                                       
                               0. custom_apps/mail/lib/IMAP/HordeImapClient.php line 87                                                                                                                                                
                                  Horde_Imap_Client_Socket->_login("*** sensitive parameters replaced ***")                                                                                                                            
                               1. custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php line 853                                                                                                         
                                  OCA\Mail\IMAP\HordeImapClient->_login("*** sensitive parameters replaced ***")                                                                                                                       
                               2. custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php line 1048                                                                                                        
                                  Horde_Imap_Client_Base->login("*** sensitive parameters replaced ***")                                                                                                                               
                               3. custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php line 2892                                                                                                        
                                  Horde_Imap_Client_Base->openMailbox("INBOX", 2)                                                                                                                                                      
                               4. custom_apps/mail/lib/IMAP/MessageMapper.php line 426                                                                                                                                                 
                                  Horde_Imap_Client_Base->store("INBOX", [["Horde_Imap_Client_Ids",false],["\\seen"]])                                                                                                                 
                               5. custom_apps/mail/lib/Service/MailManager.php line 476                                                                                                                                                
                                  OCA\Mail\IMAP\MessageMapper->addFlag(                                                                                                                                                                
                                    ["OCA\\Mail\\IMAP\\HordeImapClient",["HICenv","HICflags","HIChdrs","HICdate","HICsize","And 1 more entries, set log level t ... e],                                                                
                                    ["OCA\\Mail\\Db\\Mailbox",27],                                                                                                                                                                     
                                    [1107],                                                                                                                                                                                            
                                    "\\seen"                                                                                                                                                                                           
                                  )                                                                                                                                                                                                    
                               6. custom_apps/mail/lib/Controller/MessagesController.php line 799                                                                                                                                      
                                  OCA\Mail\Service\MailManager->flagMessage(["OCA\\Mail\\Account"], "INBOX", 1107, "seen", true)                                                                                                       
                               7. lib/private/AppFramework/Http/Dispatcher.php line 232                                                                                                                                                
                                  OCA\Mail\Controller\MessagesController->setFlags(2148, [true])                                                                                                                                       
                               8. lib/private/AppFramework/Http/Dispatcher.php line 138                                                                                                                                                
                                  OC\AppFramework\Http\Dispatcher->executeController(["OCA\\Mail\\Controller\\MessagesController"], "setFlags")                                                                                        
                               9. lib/private/AppFramework/App.php line 184                                                                                                                                                            
                                  OC\AppFramework\Http\Dispatcher->dispatch(["OCA\\Mail\\Controller\\MessagesController"], "setFlags")                                                                                                 
                              10. lib/private/Route/Router.php line 331                                                                                                                                                                
                                  OC\AppFramework\App::main(                                                                                                                                                                           
                                    "OCA\\Mail\\Controller\\MessagesController",                                                                                                                                                       
                                    "setFlags",                                                                                                                                                                                        
                                    ["OC\\AppFramework\\DependencyInjection\\DIContainer"],                                                                                                                                            
                                    ["2148","mail.messages.setflags"]                                                                                                                                                                  
                                  )                                                                                                                                                                                                    
                              11. lib/base.php line 1058                                                                                                                                                                               
                                  OC\Route\Router->match("\/apps\/mail\/api\/messages\/2148\/flags")                                                                                                                                   
                              12. index.php line 49                                                                                                                                                                                    
                                  OC::handleRequest(                                                                                                                                                                                   
                                                                                                                                                                                                                                       
                                  )                                                                                                                                                                                                    

  Error    mail               Horde_Imap_Client_Exception: Mail server denied authentication. at .../horde-imap-client/lib/Horde/Imap/Client/Socket.php line 572                                             2024-10-31T15:47:22+00:00 
                                                                                                                                                                                                                                       
                               0. custom_apps/mail/lib/IMAP/HordeImapClient.php line 87                                                                                                                                                
                                  Horde_Imap_Client_Socket->_login("*** sensitive parameters replaced ***")                                                                                                                            
                               1. custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php line 853                                                                                                         
                                  OCA\Mail\IMAP\HordeImapClient->_login("*** sensitive parameters replaced ***")                                                                                                                       
                               2. custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php line 2510                                                                                                        
                                  Horde_Imap_Client_Base->login("*** sensitive parameters replaced ***")                                                                                                                               
                               3. custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php line 2493                                                                                                        
                                  Horde_Imap_Client_Base->_fetchWrapper("INBOX", ["Horde_Imap_Client_Fetch_Query"], [["Horde_Imap_Client_Ids",false]])                                                                                 
                               4. custom_apps/mail/lib/IMAP/MessageMapper.php line 536                                                                                                                                                 
                                  Horde_Imap_Client_Base->fetch("INBOX", ["Horde_Imap_Client_Fetch_Query"], [["Horde_Imap_Client_Ids",false]])                                                                                         
                               5. custom_apps/mail/lib/Service/ItineraryService.php line 93                                                                                                                                            
                                  OCA\Mail\IMAP\MessageMapper->getHtmlBody(                                                                                                                                                            
                                    ["OCA\\Mail\\IMAP\\HordeImapClient",["HICenv","HICflags","HIChdrs","HICdate","HICsize","And 1 more entries, set log lev ... e],                                                                    
                                    "INBOX",                                                                                                                                                                                           
                                    1106,                                                                                                                                                                                              
                                    "admin"                                                                                                                                                                                            
                                  )                                                                                                                                                                                                    
                               6. custom_apps/mail/lib/Controller/MessagesController.php line 296                                                                                                                                      
                                  OCA\Mail\Service\ItineraryService->extract(["OCA\\Mail\\Account"], ["OCA\\Mail\\Db\\Mailbox",27], 1106)                                                                                              
                               7. lib/private/AppFramework/Http/Dispatcher.php line 232                                                                                                                                                
                                  OCA\Mail\Controller\MessagesController->getItineraries(2147)                                                                                                                                         
                               8. lib/private/AppFramework/Http/Dispatcher.php line 138                                                                                                                                                
                                  OC\AppFramework\Http\Dispatcher->executeController(["OCA\\Mail\\Controller\\MessagesController"], "getItineraries")                                                                                  
                               9. lib/private/AppFramework/App.php line 184                                                                                                                                                            
                                  OC\AppFramework\Http\Dispatcher->dispatch(["OCA\\Mail\\Controller\\MessagesController"], "getItineraries")                                                                                           
                              10. lib/private/Route/Router.php line 331                                                                                                                                                                
                                  OC\AppFramework\App::main(                                                                                                                                                                           
                                    "OCA\\Mail\\Controller\\MessagesController",                                                                                                                                                       
                                    "getItineraries",                                                                                                                                                                                  
                                    ["OC\\AppFramework\\DependencyInjection\\DIContainer"],                                                                                                                                            
                                    ["2147","mail.messages.getitineraries"]                                                                                                                                                            
                                  )                                                                                                                                                                                                    
                              11. lib/base.php line 1058                                                                                                                                                                               
                                  OC\Route\Router->match("\/apps\/mail\/api\/messages\/2147\/itineraries")                                                                                                                             
                              12. index.php line 49                                                                                                                                                                                    
                                  OC::handleRequest(                                                                                                                                                                                   
                                                                                                                                                                                                                                       
                                  )                                                                                                                                                                                                    

  Error    index              OCA\Mail\Exception\ServiceException: Could not fetch message source: Mail server denied authentication. at custom_apps/mail/lib/IMAP/MessageMapper.php line 496                2024-10-31T15:47:22+00:00 
                                                                                                                                                                                                                                       
                              0. custom_apps/mail/lib/Service/DkimService.php line 73                                                                                                                                                  
                                 OCA\Mail\IMAP\MessageMapper->getFullText(                                                                                                                                                             
                                   ["OCA\\Mail\\IMAP\\HordeImapClient",["HICenv","HICflags","HIChdrs","HICdate","HICsize","And 1 more entries, set log leve ... e],                                                                    
                                   "INBOX",                                                                                                                                                                                            
                                   1106,                                                                                                                                                                                               
                                   "admin",                                                                                                                                                                                            
                                   false                                                                                                                                                                                               
                                 )                                                                                                                                                                                                     
                              1. custom_apps/mail/lib/Controller/MessagesController.php line 315                                                                                                                                       
                                 OCA\Mail\Service\DkimService->validate(["OCA\\Mail\\Account"], ["OCA\\Mail\\Db\\Mailbox",27], 1106)                                                                                                   
                              2. lib/private/AppFramework/Http/Dispatcher.php line 232                                                                                                                                                 
                                 OCA\Mail\Controller\MessagesController->getDkim(2147)                                                                                                                                                 
                              3. lib/private/AppFramework/Http/Dispatcher.php line 138                                                                                                                                                 
                                 OC\AppFramework\Http\Dispatcher->executeController(["OCA\\Mail\\Controller\\MessagesController"], "getDkim")                                                                                          
                              4. lib/private/AppFramework/App.php line 184                                                                                                                                                             
                                 OC\AppFramework\Http\Dispatcher->dispatch(["OCA\\Mail\\Controller\\MessagesController"], "getDkim")                                                                                                   
                              5. lib/private/Route/Router.php line 331                                                                                                                                                                 
                                 OC\AppFramework\App::main(                                                                                                                                                                            
                                   "OCA\\Mail\\Controller\\MessagesController",                                                                                                                                                        
                                   "getDkim",                                                                                                                                                                                          
                                   ["OC\\AppFramework\\DependencyInjection\\DIContainer"],                                                                                                                                             
                                   ["2147","mail.messages.getdkim"]                                                                                                                                                                    
                                 )                                                                                                                                                                                                     
                              6. lib/base.php line 1058                                                                                                                                                                                
                                 OC\Route\Router->match("\/apps\/mail\/api\/messages\/2147\/dkim")                                                                                                                                     
                              7. index.php line 49                                                                                                                                                                                     
                                 OC::handleRequest(                                                                                                                                                                                    
                                                                                                                                                                                                                                       
                                 )                                                                                                                                                                                                     
                                                                                                                                                                                                                                       
                              Caused by Horde_Imap_Client_Exception: Mail server denied authentication. at .../horde-imap-client/lib/Horde/Imap/Client/Socket.php line 572                                                             
                                                                                                                                                                                                                                       
                               0. custom_apps/mail/lib/IMAP/HordeImapClient.php line 87                                                                                                                                                
                                  Horde_Imap_Client_Socket->_login("*** sensitive parameters replaced ***")                                                                                                                            
                               1. custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php line 853                                                                                                         
                                  OCA\Mail\IMAP\HordeImapClient->_login("*** sensitive parameters replaced ***")                                                                                                                       
                               2. custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php line 2510                                                                                                        
                                  Horde_Imap_Client_Base->login("*** sensitive parameters replaced ***")                                                                                                                               
                               3. custom_apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php line 2493                                                                                                        
                                  Horde_Imap_Client_Base->_fetchWrapper("INBOX", ["Horde_Imap_Client_Fetch_Query"], [["Horde_Imap_Client_Ids",false]])                                                                                 
                               4. custom_apps/mail/lib/IMAP/MessageMapper.php line 492                                                                                                                                                 
                                  Horde_Imap_Client_Base->fetch("INBOX", ["Horde_Imap_Client_Fetch_Query"], [["Horde_Imap_Client_Ids",false]])                                                                                         
                               5. custom_apps/mail/lib/Service/DkimService.php line 73                                                                                                                                                 
                                  OCA\Mail\IMAP\MessageMapper->getFullText(                                                                                                                                                            
                                    ["OCA\\Mail\\IMAP\\HordeImapClient",["HICenv","HICflags","HIChdrs","HICdate","HICsize","And 1 more entries, set log lev ... e],                                                                    
                                    "INBOX",                                                                                                                                                                                           
                                    1106,                                                                                                                                                                                              
                                    "admin",                                                                                                                                                                                           
                                    false                                                                                                                                                                                              
                                  )                                                                                                                                                                                                    
                               6. custom_apps/mail/lib/Controller/MessagesController.php line 315                                                                                                                                      
                                  OCA\Mail\Service\DkimService->validate(["OCA\\Mail\\Account"], ["OCA\\Mail\\Db\\Mailbox",27], 1106)                                                                                                  
                               7. lib/private/AppFramework/Http/Dispatcher.php line 232                                                                                                                                                
                                  OCA\Mail\Controller\MessagesController->getDkim(2147)                                                                                                                                                
                               8. lib/private/AppFramework/Http/Dispatcher.php line 138                                                                                                                                                
                                  OC\AppFramework\Http\Dispatcher->executeController(["OCA\\Mail\\Controller\\MessagesController"], "getDkim")                                                                                         
                               9. lib/private/AppFramework/App.php line 184                                                                                                                                                            
                                  OC\AppFramework\Http\Dispatcher->dispatch(["OCA\\Mail\\Controller\\MessagesController"], "getDkim")                                                                                                  
                              10. lib/private/Route/Router.php line 331                                                                                                                                                                
                                  OC\AppFramework\App::main(                                                                                                                                                                           
                                    "OCA\\Mail\\Controller\\MessagesController",                                                                                                                                                       
                                    "getDkim",                                                                                                                                                                                         
                                    ["OC\\AppFramework\\DependencyInjection\\DIContainer"],                                                                                                                                            
                                    ["2147","mail.messages.getdkim"]                                                                                                                                                                   
                                  )                                                                                                                                                                                                    
                              11. lib/base.php line 1058                                                                                                                                                                               
                                  OC\Route\Router->match("\/apps\/mail\/api\/messages\/2147\/dkim")                                                                                                                                    
                              12. index.php line 49                                                                                                                                                                                    
                                  OC::handleRequest(                                                                                                                                                                                   
                                                                                                                                                                                                                                       
                                  )                                                                                                                                                                                                    

apps/mail/api/messages/2154/dkim response:

Internal Server Error

The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

Technical details

  • Remote Address: 172.18.0.1
  • Request ID: 89DW5YbVSG2F8EujGEKh

Nextcloud – a safe home for all your data

itineraries/flags response both are:

{"status":"error","message":"Server error","data":[],"code":0}

I’m on AIO 9.7.0, just updated and still getting the error.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.