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!

Stopping Spam emails from being sent out

Discussion in 'E-mail Discussion' started by Gareth-AWD, Apr 3, 2014.

  1. Gareth-AWD

    Gareth-AWD Well-Known Member

    Joined:
    Jul 3, 2008
    Messages:
    178
    Likes Received:
    4
    Trophy Points:
    68
    Location:
    London, UK
    cPanel Access Level:
    Root Administrator
    Every now and then our customers computers are hacked and their passwords used to send out Spam email.

    Is there any methods to stop this? I heard somebody say that stopping Nobody emails will help, but doesn't that mean that PHP scripts that send emails will then not work.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You mentioned that the home computers of the email users are hacked, but you also referenced PHP scripts. Could you elaborate on how the SPAM emails are sent out?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Gareth-AWD

    Gareth-AWD Well-Known Member

    Joined:
    Jul 3, 2008
    Messages:
    178
    Likes Received:
    4
    Trophy Points:
    68
    Location:
    London, UK
    cPanel Access Level:
    Root Administrator
    Some of my sites use PHP mail to send out things like enquiry forms and alerts. I'm concerned if I stop nobody emails, that my scripts will stop working for genuine email Alerts from PHP which are also nobody?

    The emails are being sent out using pop3 or IMAP due to account details being found by viruses and hackers. So a hacked computer will have the username and password compromised. It happens about once a month, but we have about 400 accounts across 3 servers so quite rare.
     
  4. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    575
    Likes Received:
    20
    Trophy Points:
    143
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    The php mail() function has a "5th parameter" which should be used. More information on how to use it can be found here.

    You should also review the How To Prevent Email Abuse forum post.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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