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!

Configure cPanel to stop relaying spam?

Discussion in 'E-mail Discussion' started by compudata, Jun 8, 2008.

  1. compudata

    compudata Registered

    Jun 8, 2008
    Likes Received:
    Trophy Points:
    Scenario... has a website hosted on our cPanel server. They have their own email server so the MX record points to their public IP address.
    Spammers are sending mail to the ip address of the WEBSITE (my server) and cPanel appears to be obliged to relay these messages to that offsite mail server.
    How do I stop these thousand or so messages a day from being relayed without interferring with mail generated by one of their online forms from being sent to that outside mail server?
  2. mtindor

    mtindor Well-Known Member

    Sep 14, 2004
    Likes Received:
    Trophy Points:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    See if exists in /etc/secondarymx

    If you have a domain on your Cpanel server for which you are handling the website but are NOT handling the email, then:

    1. You should see in /etc/remotedomains
    2. You should not see in /etc/localdomains or /etc/secondarymx

    And if you query a public DNS server (using Dig for instance), you should not see your Cpanel server listed as one of the MX's.

    dig mx

    None of the MXs listed should be your cpanel server, unless you specificaclly wanted your Cpanel server to act as a secondary MX. And if you did want your Cpanel server to be a secondary MX for the domain, then it's going to forward any email that hits it to the main mail server.

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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