Logged In: YES
user_id=147690

THIS IS EASY TO FIX. THE STATEMENT IN THE HEADER THAT
LOCALHOST WILL BE USED IF NO MAILHOST IS PASSED IS
JUST WRONG. EXPLICITLY SET MAILHOST.

Also, I think there is a variant of connect that just takes a
hostname and no port. That might work better..