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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

change port 25

Discussion in 'E-mail Discussions' started by afradata, May 6, 2013.

  1. afradata

    afradata Registered

    Feb 14, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    my smtp port = 25 on cpanel is under ddos attack

    change smtp port to 26
    my mail service is exim
    i opened port 26 tcp-in tcp-out and smtp port on csf

    and block 25 port in tcp-in

    users can send & recive mail whit outlook but can send email by cpanel webamil , cant recive any email by cpanel webmail

    please help me
    #1 afradata, May 6, 2013
    Last edited: May 6, 2013
  2. cPanelJared

    cPanelJared Technical Analyst

    Feb 25, 2010
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If you block incoming traffic on port 25, your users will not be able to receive any mail. That is totally normal, expected behavior. The mail client used makes no difference. Incoming mail simply will not work.

    Port 25 is how mail servers talk to each other. If you block port 25, your server (and your users) will not receive any mail.

    What you are trying to do is just not going to work like you want it to work. If you block port 25, there is no way at all to tell other servers, that want to send mail to your server, to use a different port. Blocking port 25 breaks mail.

    You may be misunderstanding the purpose of Exim running on an additional port (like 26). Many Internet service providers (ISPs) block their end users from sending mail on port 25, so that is why you might want Exim to listen on port 26 or even a different port. Exim on an additional port lets your users send mail to your server, so your server can relay it out to its destination. However, Exim still uses port 25 to send mail to other servers, and other servers still use port 25 to send mail to your server.

    Port 25 is the port that Internet mail servers use to send mail to each other, and disabling it is not a valid way to try to handle a spam or DDOS problem. All it will do is break your mail completely.

    A much better way to deal with this is to ask your hosting company what services they offer to mitigate DDOS attacks. They may be able to block the offending IP addresses at the network level, possibly even at their upstream provider. That is really the only way to approach this, instead of completely breaking mail by blocking port 25.
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    May 20, 2003
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    I agree with Jared. Changing the port isn't a fix for that sort of attack, you need to contact your Hosting Provider.

Share This Page