Subject: Unable to save Group Email Account in EspoCRM 9.2.5 - "invalid" error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Segelwolf
    Junior Member
    • Sep 2025
    • 9

    #1

    Subject: Unable to save Group Email Account in EspoCRM 9.2.5 - "invalid" error

    Environment:
    • EspoCRM Version: 9.2.5 (upgraded from 9.1.8)
    • Server: all-inkl.de shared hosting (Premium plan with SSH)
    Problem Description:

    I cannot save a Group Email Account through the Admin UI. Every attempt to save results in an "invalid" error message, regardless of whether I'm creating a new account or editing an existing one.

    Steps to Reproduce:
    • Administration → Group Email Accounts → Create
    • Fill in all required fields:
    • Configure IMAP tab:
      • Host: w020ba72.kasserver.com
      • Port: 143
      • Security: TLS
      • Username: wolf@segelwolf.com
      • Password: [entered]
      • Monitored Folders: INBOX
    • Configure SMTP tab:
      • Host: w020ba72.kasserver.com
      • Port: 587
      • Security: TLS
      • Auth: Enabled
      • Auth Mechanism: LOGIN
      • Username: wolf@segelwolf.com
      • Password: [entered]
      • Shared: Checked
    • Click Save

    Expected Result: Account should be saved successfully.

    Actual Result: Error message "invalid" appears. No further details in the UI.

    Browser Console Error:
    Uncaught (in promise) invalid

    Server Log Error (data/logs/espo-YYYY-MM-DD.log):
    [2025-11-28 15:16:40] WARNING: E_WARNING: openssl_decrypt(): IV passed is only 12 bytes long, cipher expects an IV of precisely 16 bytes, padding with \0 [2025-11-28 15:16:40] CRITICAL: (0) OpenSSL decrypt failure. :: POST /Email :: /www/htdocs/w020ba72/crm.segelwolf.com/application/Espo/Core/Utils/Crypt.php(99)

    Additional Context:
    • SMTP/IMAP connection tests via telnet work perfectly
    • The same credentials work in Thunderbird
    • Admin user has proper role and team assignments
    • This issue persists after:
      • Upgrading from 9.1.8 to 9.2.5
      • Clearing cache
      • Creating proper Admin role and Team
      • Logout/login
    Workaround Attempted: Created the account via direct SQL INSERT into inbound_email table, but this causes OpenSSL errors because passwords are stored unencrypted.

    Questions:
    • Is this a known bug in 9.2.5?
    • What is the proper way to create a Group Email Account when the UI is broken?
    • How should email account passwords be properly encrypted for direct database insertion?

    This issue is blocking me from using EspoCRM's email functionality. Any help would be greatly appreciated.
    Regards

    Wolf
  • rabii
    Active Community Member
    • Jun 2016
    • 1357

    #2
    Definitely this is an issue with your instance. tested this on version 9.2.5 and works fine.

    This could be caused cryptKey config - could be corrupted - check that in your config file.
    Rabii
    EspoCRM & Web Dev

    🔗 See what I’ve built for EspoCRM

    Comment

    Working...