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.

How can I block all email comeing from any-name@server.serverdomain.com ?

Discussion in 'Security' started by jols, Feb 18, 2012.

  1. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    Actually, I would like to whitelist these two addresses so messages can be sent out using:

    admin@server.serverdomain.com
    cpanel@server.serverdomain.com

    Way too often a hacker will get access to one of the accounts we host, then they will upload a php script that is a mass spam mailer. But these scripts will always send from:

    userID@server.serverdomain.com

    as in:

    (envelope-from <userID@server.serverdomain.com>)

    Where the "userID" is the hosted account, and, "server.serverdomain.com" is the server name and domain name, NOT the hosted account member's domain.

    So, If I could find a way to filter out email being broadcast from "anyname@server.serverdomain.com" except for the two addresses listed above, this would work wonders I think for defeating this kind of a mass spam-mail-broadcast hack.

    Or is there a way to have the cPanel system use a particular email address on the server that we specify for sending out system messages? In that case we could just filter out/block "ANYNAME@server.serverdomain.com"

    Anyone?
     
  2. minosjl

    minosjl Well-Known Member

    Joined:
    Jun 4, 2011
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Re: How can I block all email comeing from any-name@server.serverdomain.com

    Dear friend,

    You can make the changes in the exim configuration file in order to set the mail are coming from your domains you wish insted of the server host name.

    You can read the spamassain documentation of cPanel in order to whitelist the email address you have

    Thank you
     
Loading...

Share This Page