Thanks for the quick reply here.
1. We are implementing a simple PHP-IMAP based inbound mail processing module.
2. Sample here https://www.php.net/manual/en/function.imap-open.php
The IMAP extension is not available through the Docker image. Through normal LAMP it can be installed, but not on this PHP-WordPress image given by Docker.
Thanks