I am running a cyberpanel server on digital ocean with Ubuntu 20.04 LTS. for about 1 month , I am not able to send emails through my websites. however I am able to receive emails in my account. whether I logged in to rainloop or connect my acocunt with SMTP on Mailspring/Thunderbird. I am not able to “send” emails.
While debugging I found out that while sending emails, the Postfix is using port 25 , which is disabled for outgoing by default in Digitalocean. so all my emails are connecting to xxx.xxx.xxx.xxx:25 which results in connection time out.
I added SSL to my email and it is showing no error except when i check it on checktls.com , the domain name in SSL is www.example.com. ( I had this SSL issue in websites as well in last cyberpanel verison)
I am not able to make POSTFIX to use 587 port or 465 (SSL) for mails.
I checked port 587 using telnet and its open, when I use port 25, it never shows any response except timed out error.
Is there any thing to solve my problem? I could use GMAIL smtp in my wordpress sites, but we are also using our email addresses for official communication also. so I need to solve this problem for ourselves.




