Yes, setting up webmail is a real hassle. Even thought you have your LD_LIBRARY_PATH set, it's still complaining that it can't find the library to load it. Maybe there's a typo in your LD_LIBRARY_PATH. What do you have it set to? Also, do you have your CLASSPATH variable set correctly in your nsd.tcl file?