How to use msmtp with socks port localhost:1086?

I am trying to use localhost:1086 (set up by shadowsocks on mac) with msmtp. But it keeps on failing. But msmtp can work with tor’s localhost:9050 port. Do you what is the difference between shadowsocks port 1086 vs tor’s 9050? How to make msmtp work woth port 1086?

The error log of msmtp is this

errormsg=‘the server sent an empty reply’ exitcode=EX_PROTOCOL