The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Disable outgoing mails from system users.

Discussion in 'E-mail Discussions' started by amolmistry, Mar 5, 2013.

  1. amolmistry

    amolmistry Member

    Joined:
    Sep 3, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    Noticed that there are lots of mails being sent from user@hostname.com (this is the user when it gets created when we Add hosting of domain name in cPanel)

    Any Idea how to disable spamming from such users?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    In cPanel:
    Set Up a Default Address - cPanel Documentation

    Select "Discard with error to sender" add a message, No Such User Here

    in WHM for new accounts:
    Home » Server Configuration » Tweak Settings, Mail tab.

    Select "Fail" here and save configuration.
     
  3. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    Well, depends what kind of scripts those users use to send mail. You can disable mail() function in PHP, so will have to use SMTP with authentication. Or better search and block those scripts, which generate spam. Since this could be also "good" emails, each case should be investigated separately.
     
  4. amolmistry

    amolmistry Member

    Joined:
    Sep 3, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Infopro,

    But thing is I wish to discard the mails which are being sent from system user accounts (which are got created while adding hosting i.e. cpanel.com user : cpanel (cpanel@hostname.com)).
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm sorry, your query is unclear to me.

    System emails, for example quota or email box full emails, are sent to the system user. user @host.servername.com and are forwarded to that users real, Contact email address. user @host.servername.com is not a "real" email address.

    ConfigServer blog has a post on this located here you might find interesting:
    Why you should use :fail:
     
  6. amolmistry

    amolmistry Member

    Joined:
    Sep 3, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I'm really very sorry Infopro, I mean to say, there are spamming is happening from that user which are getting creating after Account addition, check attached screenshot and check yellow highlighted part so that you will come to know exactly what I mean. Capture.JPG
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Well, we'd have to see some of the emails I think to be able to give you proper direction.

    User mileshig is the cPanel user. He can't send emails out on "his" own. His scripts could, as Anton mentions above. For mileshig to send email, he'd have to create an actual email account, which by your image, he does not have right now.

    Depending on the settings I mentioned previously, a spammer could send emails to anyname at mileshig's domain.com
     
  8. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    I can add to this:

    Let's say Bob's email address was hijacked and now bob@somedomain.ltd sends spam, using outlook (or any other email client) through SMTP.

    How does one stop all outgoing mail for a certain user, or domain?
     
  9. amolmistry

    amolmistry Member

    Joined:
    Sep 3, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    Atleast is there any option to disable mailing services for specific user/email id?
     
Loading...

Share This Page