cannot connect to postfix on 587

You need to tell to postfix to listen to the submission port. Look in master.cf, usually under /etc/postfix, and uncomment the line:

submission inet n       -       -       -       -       smtpd

Also, check the firewall(s) settings to be sure the port 587 is reachable from your client.