• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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