i'm using mageplaza's SMTP extension for magento 2.
I have configured the smtp with smtp.office365.com and when sending the test email it is giving following error.
Could not open socket: stream_socket_client(): unable to connect to tcp://smtp.office365.com:587 (Permission denied)
So is this issue on server settings or in magento side ? Also i have setup the linux server for the magento installation. Do need to install configure the SMTP for this server also ?