• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Disable PHP mail for single domain

FarazK

New Pleskian
Hi,

We are using Plesk version 12.0.18 and in a situation where one of our domain is keep sending spams(due to outdated code), we will resolve the code issue but it will take much time for us, so I was wondering if there is any possibility that we can disable PHP mail function for this domain? I know I can disable the mail service for single domain but that does not prevent that domain to send emails through PHP scripts...

Someone suggested us that under PHP settings of domain I can define variable disable_functions = mail but unfortunately that also did not work. Can someone please help on this? may be any workaround via postfix or other.

Regards,
Farmi
 
Hi,

Yes, this is what I did and defining variable disable_functions = mail under domain PHP settings prevents the script to run via http://example.com/spam.php but if it runs by shell via php /path/spam.php still sends the mail. Not sure why is it doing by shell?

Regards,
Faraz
 
Back
Top