Forum OpenACS Q&A: Re: Problem connecting to postgresql via stunnel (user can, Aolserver can't)

My first test would be to change localhost (which probably resolves to 127.0.0.1) to the FQDN (fully qualified domain name) of the machine, eg www.example.com .

That is, try changing localhost:55432:acsdb to www.example.com:55432:acsdb .  This will have Postgres try to talk TCPIP to the "real" IP address.