how can i restrict send mail without username and password

serversetup

Registered
May 6, 2013
4
0
1
cPanel Access Level
Root Administrator
hello

i have a server for hosting and i want restrict all user

they cant send mail without username and password since i want restrict php script for send mail on the server

i hope someone can help me.

taq
 

serversetup

Registered
May 6, 2013
4
0
1
cPanel Access Level
Root Administrator
hello



please let me to define more my problem



I have a server for webhosting



I want restricted email send my server with my users hosting



I want don't send email without filed from on the server to each email receiver



please help me
 

Veeble-Adam

Active Member
May 7, 2013
43
0
6
cPanel Access Level
Root Administrator
There is a function available in PHP to send a mail via PHP script. The function is mail(). You can disable PHP mail() function to prevent spamming from the server and allow only SMTP authentication to send the emails via PHP script. You can disable PHP mail() function from WHM.

To disable mail() function, you may add "mail" to the "disable_functions" in the php configuration. You may do it via WHM as given below:

[1] Login to your WHM.
[2] Go to "PHP Configuration Editor" under "Service Configuration" and select "Advanced mode".
[3] Add "mail" to the list of disable_functions and save it!

This should help.