If your mail server is the common POP3 type you should be able to talk to it directly as described in
http://communication.howstuffworks.com/email1.htm .
Just run
telnet <name of pop-server> 110
and issue commands to log in and list your messages. You may be able to verify your settings and isolate the problem to kmail or elsewhere. Like the article says, it is a simple protocol, so odds would be on a config error rather than a program bug.
Check your messages first, in case you accidentally delete them while playing with the server.