Issue Smartermail : must be textual to extract_string, JSON to extract_json.

azaran

New Pleskian
Server operating system version
Windows Server 2022 Datacetner
Plesk version and microupdate number
18.0.78
Hello there,
I have Plesk Obsidian running on Windows Server 2022 and I’m using SmarterMail (installed on a separate Windows Server 2019) as the mail server instead of MailEnable.

SmarterMail version is :

SmarterMail Enterprise
Build 7829 (Jun 8, 2021)

Sadly I cannot update my SmarterMail anytime soon.

Until recently, the integration was working properly. When a customer created a new email account through Plesk, it was successfully created on both Plesk and SmarterMail and everything was manageable.


However, starting today, the behavior has changed:


  • The email account is successfully created in SmarterMail.
  • But Plesk shows the following error and does not add the account:

Error: Unable to update the mail account properties: mailmng failed: Incorrect Content-Type: must be textual to extract_string, JSON to extract_json.


at newMailName(testqwe, example.com, 0)(SmarterMail::Remote::provider::newMailName line 142)


at Unable to execute console command: ‘–add-mailname’(vconsoleapp::start line 95)


at Unable to execute command: ‘C:\Program Files (x86)\Plesk\admin\bin\mailmng --add-mailname “–domain-name=example.com” “–mailname=testqwe” “–password=*”’(vconsoleapp::run line 117)


(Error code 1)


It seems like the communication between Plesk and SmarterMail is failing during the response handling. The error mentions an incorrect Content-Type (expecting text or JSON).


Has anyone faced a similar issue? Any idea what could cause this suddenly, especially after it was working fine before?


Thanks in advance.
 
If you have not upgraded SmarterMail at all and is still on the old version and you just upgraded Plesk, then your best bet is to pull a backup of your Plesk installation and pull the following files from %plesk_bin%:

SMAntivirusProvider.dll
smartermailprovider.dll
smremoteprovider.dll
smspamprov.dll

Copy the files you restored to the %plesk_bin% directory and the function should be back.

Either that or just revert back the installation of Plesk to a point it was working and don't upgrade until you are able to upgrade SmarterMail.

 
Back
Top