I updated my old phpwrapper script and maybe someone needs this feature too
This phpwrapper helps prevent the sending of large amounts of spam and identifies the script used to send it.
1, create the database with the install.sql which will create the phpmail database.
2, create a sql user for this database.
3, copy the files in the /usr folder to the server's /usr folder
4, set the mysql password in /usr/sbin/sendmail-wrapper-php
5, modify the template /etc/imscp/php/fcgi/php.ini
If you use php-fpm than you will found the php.ini in the /etc/imscp/php/fpm
6, If you want to modify the default daily mail limit than you could modify the default value of the daily_limit column in the mail_domains table. The default limit is 2000 email / day.
7, rebuild customer's configuration files