No mail can be sent or received: how to setup MX and work around port 25 block

Can you share with us your intent to replace port 25 with 465 or 587?

Is it perhaps to work around the block on port 25 that your VPS hosting provider has specifically put up to stop you from sending out email? No, changing the port to 465 or 587 will not let you get around the limitation that your VPS host has imposed on your account. The only way forward for you is to use a smarthost / mail relay since your vps host / service provider has blocked port 25 for outgoing mail.

Oh, you had better undo your most recent changes and put 25 back else your system will not work normally even if you are able to convince your VPS host to remove the block on port 25.