To tunnel IMAP via SSH to localhost if you are using xs4all:

ssh -C <usernaam>@xs3.xs4all.nl -L 11143:imap.xs4all.nl:143

Your mailclient should then be configured to read mail on server localhost:11143