Hai
I had similar issues, initially when I installed CWP its works later when I started to restrict the firewall ports its been block.
I found that I have to open a TCP Outgoing port 25 for my server to send out email to other email server, specially.
I found following in Internet.
SMTP servers send mails between each other on port 25. ISP's block the outgoing port 25 to stop spam and this is now almost "an industry standard". Port 465 and 587 should be used for client - server connections only, so 99% of SMTP servers which will send mails to your server will do it on port 25. As you have changed the port from 25 to 465, they won't be able to connect to your server.
Opened TCP \ UDP ports
TCP IN: 80, 443, 2031, 2083, 49226
TCP OUT: 20, 21, 22, 53, 80, 443, 587, 25
UDP IN:
UDP OUT: 20, 21, 53, 123
I only enabled above ports in the firewall.
and I also disable startup and stop services 'Dovecot IMAP/POP3 Server' and 'OpenDKIM'.
only enable 'Postfix Mail Server' service.
My intention just to CWP alert email to reach my gmail address for alert & notification. I'm not running any email service for my domains in the server.
Thank you
Regards
Elil