How can I disable the php mail function?
I have a user sent spam.
mail('user@example.com', 'My Subject', Hello);
Is a suggestion to have this option in the settings of i-MSCP.
How can I disable the php mail function?
I have a user sent spam.
mail('user@example.com', 'My Subject', Hello);
Is a suggestion to have this option in the settings of i-MSCP.
If you can, disable the function via php.ini
http://www.tutorialarena.com/b…ni-configuration-file.php
yes, put the i-MSCP uses several "php.ini"
ever did change, however this change will not stand, for it just to make any changes on the client it back to default setting.
would be very interesting to have the option of disabling direct mail function in the configuration panel.
you can edit the php.ini in /var/www/fcgi/domain.tld/php5/
search "disable_functions =" and add mail. After a update from i-mscp you must new edit the php.ini.
I-MSCP v1.1.11
fcgi directory does not exist
but in
/etc/php5/fpm/pool.d/domain.tld.conf
add in
php_admin_value[disable_functions] = show_source,system,shell_exec,passthru,exec,phpinfo,shell,symlink,proc_open,popen,mail
Resolved.
Nuxwin plans to deploy the "mail" at:
Value for the disable_functions directive ?
I think very valid!
ah, ok. With php-fpm is this the correct path.
@remonti
Sure, I can add this option.