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.

Configure cPanel to stop relaying spam?

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

  1. compudata

    compudata Registered

    Joined:
    Jun 8, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Scenario...
    companyabc.com 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

    Joined:
    Sep 14, 2004
    Messages:
    1,279
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    See if companyabc.com 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 companyabc.com in /etc/remotedomains
    2. You should not see companyabc.com 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 companyabc.com mx @resolver.qwest.net

    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.

    Mike
     
Loading...

Share This Page