Skip to main content

Cannot disable PHP mail

Comments

8 comments

  • 24x7server
    Hi, If you are using suPHP, then you can restrict the users from using their custom php.ini and force them to use your one in which you added the mail in the disable functions list.. What version of EasyApache do you currently have on the server?
    0
  • Tayyem
    Thanks for the replay I'm using EasyApache 4 but you didn't get the point my friend, no need for the abusers to edit php.ini because they are not using the main php mail functions they are using their own mailers that connects to the smtp port and send mails without touching php mail functions
    0
  • cPanelMichael
    no need for the abusers to edit php.ini because they are not using the main php mail functions they are using their own mailers that connects to the smtp port and send mails without touching php mail functions

    Hello, The following option is useful if the scripts are attempting to send mail via SMTP via a remote mail server: "WHM Home " Security Center " SMTP Restrictions" As for local SMTP senders, have you considered setting up email sending limits? We document how to do this at: > Contact Manager" that you can configure to alert you if an email account is abusing the system: [LIST]
  • Maximum Hourly Emails Exceeded " A domain exceeded the threshold for the maximum number of sent emails in an hour.
    Thank you.
  • 0
  • Tayyem
    Hello, The following option is useful if the scripts are attempting to send mail via SMTP via a remote mail server: "WHM Home " Security Center " SMTP Restrictions" As for local SMTP senders, have you consider setting up email sending limits? We document how to do this at: > Contact Manager" that you can configure to alert you if an email account is abusing the system: Thank you.

    Thank you I did that but I cannot set it to zero, only one email per hour. Can I set that to zero without being unlimited
    0
  • cPanelMichael
    Thank you I did that but I cannot set it to zero, only one email per hour. Can I set that to zero without being unlimited

    You can't set the max hourly email limit to zero. Note the maximum hourly email limit applies to all email, not just email from PHP scripts. Is your goal to disable email completely for an account, even outside of PHP? Thank you.
    0
  • Tayyem
    You can't set the max hourly email limit to zero. Note the maximum hourly email limit applies to all email, not just email from PHP scripts. Is your goal to disable email completely for an account, even outside of PHP? Thank you.

    Yes because it"s sending emails from months and I cannot stop it, I have disabled the php mail and send mail functions but it"s still sending, I have tried most of things here in the fourm and nothing worked.
    0
  • cPanelMichael
    Hello, You can use the following WHM API 1 function to suspend outgoing email for an account: WHM API 1 Functions - suspend_outgoing_email - Software Development Kit - cPanel Documentation Thank you.
    0
  • Tayyem
    Hello, You can use the following WHM API 1 function to suspend outgoing email for an account:
    0

Please sign in to leave a comment.