We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Disabling PHP mail
Disabling PHP mail
What's the best way of disable outgoing mail completely to prevent any abuse?
Re: Disabling PHP mail
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
# Debian/Ubuntu
service exim4 stop
update-rc.d exim4 disable
Re: Disabling PHP mail
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
Is there any way to disable this not just for one domain, but for all domains/users on the server? (global)
Re: Disabling PHP mail
Ok i found an answer. Just simply rename exim.conf to something else. After that, phpmail will not work.
Re: Disabling PHP mail
There is another way for apache/httpd
Code: Select all
<Directory /dir/to/your/web/root>
...
php_admin_value sendmail_path "tee mail.out > /dev/null"
...
</Directory>