Applicable to:
- Plesk for Linux
- Plesk for Windows
Symptoms
There is no possibility to remove sessions of the Mail Importing and Website Importing utilities via Plesk GUI.
Cause
The behavior is considered as a Plesk feature request with the ID #PMT-4498, which is planned to be addressed in future Plesk updates.
Resolution
As a workaround remove the sessions directories manually using one of the solutions below:
- Log into the server via SSH.
- Run the command below to remove sessions directory for the required domain:
- For Website Importing:
# rm -rf /usr/local/psa/var/modules/site-import/sessions/site-migration-[domain-id]
- For Mail Importing:
# rm -rf /usr/local/psa/var/modules/site-import/sessions/mail-migration-[domain-id]
Note: to get
[domain-id]
execute the command below by replacingexample.com
with the name of the required domain:# plesk db "select id as '[domain-id]' from domains where name='example.com'\G;" | grep -v row
[domain-id]: 14 - For Website Importing:
- Log into the server via RDP.
- Manually remove sessions folder for the required domain:
- For Website Importing:
%plesk_dir%\var\modules\site-import\sessions\site-migration-[domain-id] - For Mail Importing:
%plesk_dir%\var\modules\site-import\sessions\mail-migration-[domain-id]
Note: to get
[domain-id]
execute the command below via CMD by replacingexample.com
with the name of the required domain:C:\> plesk db "select id as '[domain-id]' from domains where name='example.com'\G;" | findstr /v row
[domain-id]: 1 - For Website Importing:
Comments
1 comment
Thanks for your info ! I've done my changes editing .json files !
Do you know if there's a way to create an import session using Plesk cli ?
I asked to claude.ai and she said:
plesk bin mail --imap-import-messages <domain> <mailname> --src-host <source_server> --src-login <source_username> --src-password '<source_password>'
i've to test
Please sign in to leave a comment.