Bypass nobody email sending
Hello there,
I'm using WHM/Cpanel server whose sending mail from php nobody is disabled within tweak settings for keeping our server secure against spam issues,
Now we have installed Modsecurity but we want to enable sending email alerts within modsecurity which is refused to sent & throw the following error
Mail sent by user nobody being discarded due to sender restrictions in WHM->Tweak Settings
so how could we keep disabling nobody from sending emails except for specific script ?
any help will be appreciated
please all accept our best regards,,
-
Hi, To use a PHP or CGI script to send mail, enable the suEXEC or mod_php modules in your Apache configuration. Regards, 0 -
Hello NOC_Serverpoint, first thak you so much for trying to help me, second, suExex is already enabled within the server as shown Available handlers: suphp cgi none DEFAULT PHP: 5 PHP4 SAPI: none PHP5 SAPI: suphp SUEXEC: enabled RUID2: not installed so what is the problem, i have searched & tried sudo but nothing fix my problem please all accept my best regards,, Hi, To use a PHP or CGI script to send mail, enable the suEXEC or mod_php modules in your Apache configuration. Regards,
BTW the script i used to run isnt either php or cgi instead its bash script0 -
PHP5 SAPI: suphp
Hello, PHP scripts run as the account using when using suPHP. Thus, PHP scripts will still be able to send out messages. One option to stop this is to add "mail" to the disable_functions line in your PHP configuration file: Thank you.0
Please sign in to leave a comment.
Comments
3 comments