Forum OpenACS Q&A: Re: Problem connecting to postgresql via stunnel (user can, Aolserver can't)
Hopefully you've mis-typed the port number (in this post only) for setting up the tunnel on the database server. You show 5432. All other references in your post show 55432.
It's not a typo, it's just unecessarily confusing. The connection goes localhost:55432->dataserver:5555->dataserver:5432. 5555 and 55432 are arbitrary numbers (5555 came from a web page I was getting an example from, 55432 is the first slight variation on 5432 that came to mind). It would probably be better to pick different numbers to avoid just this kind of confusion.