Page 1 of 1

Disabling PHP mail() function for a domain

Posted: Fri Nov 04, 2016 1:52 pm
by ozdamar
Hi there, i searched but couldn't find answer yet, is it possible to disable PHP mail() function for a specific domain?

Re: Disabling PHP mail() function for a domain

Posted: Fri Nov 04, 2016 2:28 pm
by mike08
If outgoing spam is what you want to combat, Take a look at this viewtopic.php?f=41&t=12623&p=50183#p50183

Re: Disabling PHP mail() function for a domain

Posted: Fri Nov 04, 2016 2:43 pm
by ozdamar
mike08 wrote:If outgoing spam is what you want to combat, Take a look at this viewtopic.php?f=41&t=12623&p=50183#p50183
Yes exactly i just tried that solution thank you very much, but would be great to have this option on vesta panel it's mandatory necessary for many people like me.

Re: Disabling PHP mail() function for a domain

Posted: Mon Nov 07, 2016 4:35 pm
by ozdamar
This solution didn't helped me, is there any way to disable php mail, for a domain?

Re: Disabling PHP mail() function for a domain

Posted: Wed Dec 07, 2016 10:21 am
by skurudo
in httpd/apache users config file (directory section)

Code: Select all

php_admin_value sendmail_path "tee mail.out > /dev/null"
or you can try this htaccess (don't tested with htaccess)