how can i restrict send mail without username and password

serversetup

New member
Joined
May 6, 2013
Messages
2
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
 
You can disable the php mail() function, but you should state this to your clients and future clients.
 
Hello,

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


Open /etc/exim.conf and find line with

Code:
relay_hosts =

and remove

Code:
: 127.0.0.1
'

from there, and restart exim. And consider disabling PHP mail() as it was suggested by Peter.
 
Back
Top