Installing IMAP for PHP 7.2 on DirectAdmin Servers
The OVH notification module requires IMAP compiled into the PHP. Here we detail how to install the IMAP extension and compile it into your DirectAdmin setup.
CentOS DirectAdmin Servers
yum -y install pam-devel
Next, run the following commands in order
wget -O imap_php.sh files.directadmin.com/services/all/imap_php.sh
chmod 755 imap_php.sh
At this point, the IMAP module should be compiled into PHP and ready for use.