Hi!
My question is, how can i limit users to use mail() func in php only with they domain. EX: my domain is dat.com and i try send mail with sender: ex@example.com its replaces to no-reply@dat.com or something.
Thanks
Hi!
My question is, how can i limit users to use mail() func in php only with they domain. EX: my domain is dat.com and i try send mail with sender: ex@example.com its replaces to no-reply@dat.com or something.
Thanks
Hello ;
Before PHP5.4, you can do that by activating the safe mode but it's not longer recommended. Activating the safe mode will cause disabling of the 5th parameter (additional_parameters) to the mail() function, which allow to set the 'FROM' field. In that case, a warning is raised if the user try to use it.
With PHP5.3 and newer, you must set the following parameter in the php.ini file of the customer for which you want disallow custom 'FROM' field:
For instance, something like this (no tested) should do the job:
See also http://forum.i-mscp.net/Thread…es-management-with-i-MSCP to know how php.ini are managed with i-MSCP, according the Httpd server implementation you are using.
Thanks you for using i-MSCP