Disabling PHP mail
Posted: Fri Feb 07, 2014 8:59 pm
What's the best way of disable outgoing mail completely to prevent any abuse?
Code: Select all
# RHEL/CentOS
service exim stop
chkconfig exim stop
Code: Select all
# Debian/Ubuntu
service exim4 stop
update-rc.d exim4 disable
Although exim is off, i can still send mail with a php script.skid wrote:The best way is to stop mail server and remove it from autorun.
Code: Select all
# RHEL/CentOS service exim stop chkconfig exim stop
Code: Select all
<Directory /dir/to/your/web/root>
...
php_admin_value sendmail_path "tee mail.out > /dev/null"
...
</Directory>