Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Disable email sending capability for a spamming account

Discussion in 'E-mail Discussion' started by euro-space, Nov 22, 2016.

Tags:
  1. euro-space

    euro-space Member

    Joined:
    Mar 24, 2014
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    Executed SSH command:

    whmapi1 suspend_outgoing_email user=cpusername

    To disable sending emails for a cPanel account, which is sending out spam, but seems it doesn't work, as there's a lot of spam emails in the queue from that account.
    Sample log line:
    Code:
    ----
    
    2016-11-22 05:57:34 1c945G-00065Y-PA <= jackson_thomas@domain.com U=cpusername P=local S=1693 id=84dca1845fee6de89f890e3b443391e5@www.domain.com T="Is your resume available?" for someusr@yahoo.com
    2016-11-22 05:57:34 cwd=/home2/cpusername/public_html/components/com_contact/models/forms 4 args: /usr/sbin/sendmail -t -i -fthomas_valenzuela@domain.com
    
    ----
    
    Username exists in /etc/outgoing_mail_suspended_users file

    Any suggestion how to completely disable email service for the domain?

    Thanks in advance.
     
    #1 euro-space, Nov 22, 2016
    Last edited by a moderator: Nov 22, 2016
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    604
    Likes Received:
    43
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi,
    The spam mail sending from above path using mail script. You have to disabled php mail function for the account by creating custom php.ini file
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. euro-space

    euro-space Member

    Joined:
    Mar 24, 2014
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks for the suggestion, yeah this is an alternative way, however it is also interesting why above cPAnel API command doesn't do its job. Any thoughts from cPanel staff please?

    Cheers.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,704
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know which PHP handler is configured on the system? Is "Prevent “nobody” from sending mail" enabled in "WHM >> Tweak Settings"?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. danielpmc

    danielpmc Well-Known Member

    Joined:
    Nov 3, 2016
    Messages:
    76
    Likes Received:
    32
    Trophy Points:
    18
    Location:
    Gainesville, Florida
    cPanel Access Level:
    Reseller Owner
    Hello euro-space,

    Is there a reason for keeping this account active? If you know it definitely is spam, why not delete the account before it gets your server IPs blacklisted? You owe nothing to an account holder who is proven to be, and repeatedly, negatively affecting others.

    Just my opinion.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelMichael and Infopro like this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice