• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Error when accessing mail account list with SmarterMail

Duarte N

New Pleskian
Username:

TITLE


Error 500 when accessing mail account list with SmarterMail

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Plesk Obsidian v18.0.69_build20250424.13 os_Windows 2016/2019/2022/2025
Microsoft Windows Server 2022

PROBLEM DESCRIPTION

After upgrading Plesk to the latest version and SmarterMail Remote, clicking on "Mail Accounts" in a domain gives this error:
ERROR: Error: Call to a member function getPackage() on null (WebmailPackage.php:59)

STEPS TO REPRODUCE

In a Plesk with SmarterMail Remote accessing a domain -> Tab "Mail" -> "Mail Accounts".

ACTUAL RESULT

Type: Error
Message: ERROR: Error: Call to a member function getPackage() on null (WebmailPackage.php:59)
Stack trace: __webpack_modules__</o/</<@https://cp1.nuvem.pt/cp/javascript/main.js?1745921683:1:14154

EXPECTED RESULT

List mail accounts.

ANY ADDITIONAL INFORMATION

2025-04-29 09:59:17] PHP Warning: Undefined variable $defPackageMng; File: C:\Program Files (x86)\Plesk\admin\plib\Webmail\Driver\WebmailPackage.php, Line: 59

[2025-04-29 09:59:17] 3832:681094e5a87da ERR [panel] PHP Warning: Undefined variable $defPackageMng; File: C:\Program Files (x86)\Plesk\admin\plib\Webmail\Driver\WebmailPackage.php, Line: 59

[2025-04-29 09:59:17] PHP Warning: Undefined variable $defPackageMng in C:\Program Files (x86)\Plesk\admin\plib\Webmail\Driver\WebmailPackage.php on line 59
[2025-04-29 09:59:17] 3832:681094e5a87da ERR [panel] Call to a member function getPackage() on null:
0: C:\Program Files (x86)\Plesk\admin\plib\Webmail\Driver\WebmailPackage.php:59
Webmail_Driver_WebmailPackage->getUrl(string 'smremotewebmail', string 'unixacademy.pt', string 'geral', boolean true)
1: C:\Program Files (x86)\Plesk\admin\plib\Webmail\Facade.php:101
Webmail_Facade->getWebmailUrl(string 'smremotewebmail', string 'unixacademy.pt', string 'geral', boolean true)
2: C:\Program Files (x86)\Plesk\admin\plib\Smb\View\List\Emails.php:235
Smb_View_List_Emails->_getData()
3: C:\Program Files (x86)\Plesk\admin\plib\CommonPanel\View\List\Abstract.php:269
CommonPanel_View_List_Abstract->fetchData()
4: C:\Program Files (x86)\Plesk\admin\application\smb\controllers\EmailAddressController.php:130
Smb_EmailAddressController->listAction()
5: C:\Program Files (x86)\Plesk\admin\plib\vendor\plesk\zf1\library\Zend\Controller\Action.php:516
Zend_Controller_Action->dispatch(string 'listAction')
6: C:\Program Files (x86)\Plesk\admin\plib\vendor\plesk\zf1\library\Zend\Controller\Dispatcher\Standard.php:308
Zend_Controller_Dispatcher_Standard->dispatch(object of type Zend_Controller_Request_Http, object of type Zend_Controller_Response_Http)
7: C:\Program Files (x86)\Plesk\admin\plib\vendor\plesk\zf1\library\Zend\Controller\Front.php:954
Zend_Controller_Front->dispatch(object of type Zend_Controller_Request_Http)
8: C:\Program Files (x86)\Plesk\admin\plib\Application\Web.php:48
Plesk\Application_Web->run()
9: C:\Program Files (x86)\Plesk\admin\htdocs\application.php:15
[2025-04-29 09:59:17] 3832:681094e5a87da ERR [panel] Call to a member function getPackage() on null

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
Thank you for the report, @Duarte N . The behavior in question is recognized as a bug identified with ID PPPM-14931. Our team is already working on introducing a fix for it. In the meantime, the workaround, please try the following:

1. Navigate to Tools & Settings > Server Components > Remote SmarterMail Web Client and verify the Login URL set there
2. Register a new URL using the value from step 1:

plesk bin mailserver.exe --add-external-webmail -webmail-name RemoteSmarterMail -webmail-url customer-smartermail-webmail.tld ; plesk bin mailserver.exe --update-webmail RemoteSmarterMail -state true

3. Set the webmail registered in the previous step to the required domains from Domains > example.com > Mail > Mail Settings > Webmail
 
We released an update today which fixes the issue with the “Mail Accounts” page. If you have automatic updates enabled (or already run Plesk Obsidian 18.0.69 Update 3) this update should be installed automatically overnight. Plesk Obsidian 18.0.69 Update 3 :
Fixed the issue where opening the “Mail Accounts” page in Plesk resulted in the “Call to a member function getPackage() on null (WebmailPackage.php:59)” error for domains using Remote SmarterMail Web Client. (PPPM-14931)
 
Dkim error when creating a customer if the remote email service is Smartermail

I am using Plesk panel and Smartermail is connected to it remotely.(Support of remote SmarterMail: On)
I recently noticed that on several different servers, creating new domains when Allow signing outgoing mail is enabled in Plesk panel is accompanied by an error and the domain is not created.
Keep in mind that the servers with the problem have Plesk Obsidian 18.0.69 Update #2 version of Plesk panel and the Smartermail servers have different versions.

SmarterMail Professional 100.0.8629.18139 (August 17, 2023)
SmarterMail Professional Version - 100.0.7242.24590
SmarterMail Professional 100.0.8594.33598 (July 13, 2023)

The error text is as follows.
Email Configuration
mailmng failed: Incorrect Content-Type: must be textual to extract_string, JSON to extract_json. in generateDKIMKeyPair(default, 2048)(SmarterMail::Common::Domain::generateDKIMKeyPair line 199)
in Unable to execute console command: '--generate-domain-dkim-key-pair'(vconsoleapp::start line 95)
in Unable to execute command: '"C:\Program Files (x86)\Plesk\admin\bin\mailmng" --generate-domain-dkim-key-pair "--domain-name=test55256.com" "--key-size=2048" "--selector=default"'(vconsoleapp::run line 117)
(Error Code 1)

What is your solution to fix the problem?
 

Attachments

  • Screenshot 2025-05-07 122653.png
    Screenshot 2025-05-07 122653.png
    49.9 KB · Views: 2
Back
Top