• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

How to limit outgoing mail from PHP scripts?

yabado

Regular Pleskian
Where do I setup limits for email sent by PHP scripts?
They do not seem to be throttled by the plan's outgoing limits at all.
 
Customer with old copy of wordpress were hacked and a script sent out tens of thousands of email message before I could catch it.
Outgoing mail support did no good.
 
What restrictions you want to add? You can disable the mail from php. Also if you disable sendmail then client will need to use smtp authentication and then you can add the limitations.
 
Hi,

Had exactly your scenario a few days ago - a wordpress site got hacked and started to send out LOADS of junk...

don't think you can set it on a user/mailbox or domain level. As it's a script, mailbox limits don't apply. Would have thought domain limits should apply but they also didn't catch it, *but the subscription limit caught it* !

Running CentOS 6.6, Plesk12 latest update, and have the following defaults for outgoing mail control configured: 500 per mailbox, 1000 per domain, 1000 per subscription. Serverwide. Quite high, but I only want to catch scenarios as yours or mine...

Hope it helps :)
TomBob
 
Hi,

Had exactly your scenario a few days ago - a wordpress site got hacked and started to send out LOADS of junk...

don't think you can set it on a user/mailbox or domain level. As it's a script, mailbox limits don't apply. Would have thought domain limits should apply but they also didn't catch it, *but the subscription limit caught it* !

Running CentOS 6.6, Plesk12 latest update, and have the following defaults for outgoing mail control configured: 500 per mailbox, 1000 per domain, 1000 per subscription. Serverwide. Quite high, but I only want to catch scenarios as yours or mine...

Hope it helps :)
TomBob

Thanks, it does. Will make sure the Subscription limit is low from now on ;-)
 
Back
Top