please first try to open the ports in system firewall or with IPTables rules by following
Keep in mind that IPTables rules are usually reseted on system reboot by default. Not sure how it is in CentOS case.
If that does not help, please check also output of the command
netstat -nltp | grep 25
which checks if there is actually any application listening on that port.