Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Disabling PHP mail() function for a domain

General questions about VestaCP
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
ozdamar
Posts: 8
Joined: Mon Jan 25, 2016 8:45 am

Disabling PHP mail() function for a domain
  • Quote

Post by ozdamar » Fri Nov 04, 2016 1:52 pm

Hi there, i searched but couldn't find answer yet, is it possible to disable PHP mail() function for a specific domain?
Top

mike08
Posts: 160
Joined: Sat Jun 20, 2015 7:12 am

Os: Debian 6x
Web: apache + nginx
Re: Disabling PHP mail() function for a domain
  • Quote

Post by mike08 » Fri Nov 04, 2016 2:28 pm

If outgoing spam is what you want to combat, Take a look at this viewtopic.php?f=41&t=12623&p=50183#p50183
Top

ozdamar
Posts: 8
Joined: Mon Jan 25, 2016 8:45 am

Re: Disabling PHP mail() function for a domain
  • Quote

Post by ozdamar » Fri Nov 04, 2016 2:43 pm

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.
Top

ozdamar
Posts: 8
Joined: Mon Jan 25, 2016 8:45 am

Re: Disabling PHP mail() function for a domain
  • Quote

Post by ozdamar » Mon Nov 07, 2016 4:35 pm

This solution didn't helped me, is there any way to disable php mail, for a domain?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Disabling PHP mail() function for a domain
  • Quote

Post by skurudo » Wed Dec 07, 2016 10:21 am

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)
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password