I'm not aware of a setting in the configure dialog, but open the file ~/.kde/share/config/kmailrc in your favourite editor (while Kontact/KMail is not running). You will find an option called folders in the General group. In that option you can enter the path to your mail directory on your other partition.