Cobra Forum

Plesk Panel => Plesk Service/Interface => Topic started by: mahesh on Dec 28, 2023, 07:24 AM

Title: Unable to add new subscriptions after installing SmarterMail: mailmng failed:
Post by: mahesh on Dec 28, 2023, 07:24 AM
Question:
Unable to add new subscriptions after installing SmarterMail: mailmng failed: Incorrect Content-Type: must be textual to extract_string, JSON to extract_json
Symptoms
[2023-01-30 07:56:18] 18884:63d7e894d8cae ERR [panel] Long task executor: id=91 completed with error: mailmng failed: Incorrect Content-Type: must be textual to extract_string, JSON to extract_json.
at newDomain(example.com)(SmarterMail::Local::Provider::newDomain line 195)
at Unable to execute console command: '--add-domain'(vconsoleapp::start line 95)
at Unable to execute command: '"C:\Program Files (x86)\Plesk\admin\bin\mailmng" --add-domain "--domain-name=example.com" "--disk-quota=104857600" "--total-disk-quota=-1"'(vconsoleapp::run line 117)
(Error code 1):
Cause
ModSecurity blocks the newly created default SmarterMail website and prevents the addition of new Subscriptions In Plesk as a side effect.

Resolution
c:\>plesk sbin defpackagemng --update --type=waf.modsecurity --package=modsecurity --fix
Once ModSecurity is reconfigured, it will no longer block the SmarterMail website and the issue will be resolved.