If you want to
import PST to IMAP server, the easiest approach is to first convert the PST emails into a format that the IMAP account can handle, then upload them to the required folders. For a large PST or multiple folders, a tool like
Advik PST File Converter can simplify the process by transferring emails while keeping the folder structure and attachments intact.