Sorry I’m out of ideas. You can see the packets with for example
tcpdump -c 19 -A -n port 587
but as the traffic is mostly encrypted, it might not help. It might show that no connection is made, or is rejected.
Edit: I found I had to switch to port 2525, but I don’t remember why. It’s a standard alternative, apparently.