I'm trying to install a mail server in aapanel. I have CentOS Linux release 7.9.2009 (Core)
When I add Domain name, a message pops up:
Mail server did not initialize successfully.
Please reopen the plugin to initialize,
If the server does not open
port 25 [outbound direction]
it cannot be initialized.
You can run:
[ telnet gmail-smtp-in.l.google.com 25 ]
in the terminal to check whether it is open
iptables are showing that port open:
[root@euve274436 ~]# iptables-save | grep 25
-A IN_public_allow -p tcp -m tcp --dport 25 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
-A IN_public_allow -p udp -m udp --dport 25 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
[root@euve274436 ~]# telnet gmail-smtp-in.l.google.com 25
Trying 173.194.76.12...
Connected to gmail-smtp-in.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP e15si10547531wrs.40 - gsmtp
How do I fix and run it for my server ?
Thx for response.