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.

close pop, imap and smtp ports¡ if server is not used for mail?

Discussion in 'Security' started by craigedmonds, May 18, 2011.

  1. craigedmonds

    craigedmonds Well-Known Member

    Joined:
    Oct 29, 2007
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Europe
    cPanel Access Level:
    Root Administrator
    Twitter:
    If my cpanel server is only used for web hosting and there are no mail services being used (mail is on a different server), should I close certain ports like 110 to prevent attacks?

    The web sites of course will be sending mail so outgoing smtp needs to be active I guess.

    So should I remove ports 110 + 143 + 25 + 587 from the TCP_IN in CSF?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello Craig,

    Will you be unchecking those services in WHM > Service Manager as well? If you close off the ports and do not shut off the services, then you will begin getting chkservd failure emails.

    Thanks.
     
  3. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I also wanted to mention that if you simply shut down the unused services, there is no need to also block their ports in a firewall. A port is not open unless a service is listening on it. If no service is listening on a port, then also blocking it in the firewall is redundant.
     
Loading...

Share This Page