How do I set up sendmail to work with KMail if I have a dial-up connection?
First you should check if your Linux/BSD/whatever distribution can do this for you. It probably has already been set up during installation. If that’s not the case, you may want to have a look at the Mail Queue HOWTO or at UCT Linux User’s group page on configuring sendmail for Dial-up connections.