Smtp Error

I am testing emails with mailtrap it was working fine until my mailtrap limit exceeds then i created a new account and tried to add configuration to email settings of cs-cart. but it gives me an error no matter how many different new configuration i tried.

SMTP ErrorFailed to connect to server: Connection timed out (110)

screen shot attached of configuration

Screenshot from 2022-07-24 19-59-20.png

I am testing emails with mailtrap it was working fine until my mailtrap limit exceeds then i created a new account and tried to add configuration to email settings of cs-cart. but it gives me an error no matter how many different new configuration i tried.

SMTP ErrorFailed to connect to server: Connection timed out (110)

screen shot attached of configuration

It seems like the smtp.mailtrap.io rejects any incoming connections, since I was unable to connect to it too:

$ nmap smtp.mailtrap.io -p 25,465

Starting Nmap 7.60 ( https://nmap.org ) at 2022-07-26 19:15 +04
Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
Nmap done: 1 IP address (0 hosts up) scanned in 3.08 seconds

$ nmap smtp.mailtrap.io

Starting Nmap 7.60 ( https://nmap.org ) at 2022-07-26 19:16 +04
Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
Nmap done: 1 IP address (0 hosts up) scanned in 3.10 seconds

Please contact this mail server provider on this matter.

I recently had a similar issue with testing on mailtrap.io

if on cPanel using ConfigServer Security & Firewall, you will need to allow your domains user ID to bypass the SMTP block in the config file

Always allow the following comma separated users and groups to bypass
SMTP_BLOCK

Note: root (UID:0) is always allowed
SMTP_ALLOWUSER = cpanel,ADD_YOUR_DOMAIN_USER_HERE
SMTP_ALLOWGROUP = mail