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.

Stopping Spam emails from being sent out

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

  1. Gareth-AWD

    Gareth-AWD Well-Known Member

    Joined:
    Jul 3, 2008
    Messages:
    144
    Likes Received:
    2
    Trophy Points:
    18
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. Gareth-AWD

    Gareth-AWD Well-Known Member

    Joined:
    Jul 3, 2008
    Messages:
    144
    Likes Received:
    2
    Trophy Points:
    18
    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:
    569
    Likes Received:
    15
    Trophy Points:
    18
    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.
     
Loading...

Share This Page