Help: Add email users in OSX terminal

Please forgive me if this is the wrong place to post.

I am a VERY basic user here and have been tasked with adding a user to our email system -- we use a squirrelmail interface and I have root passwords etc.

I tried logging in through a browser but get this error:
ERROR: Connection dropped by IMAP server.
Query: CAPABILITY

So I figured I have to do it through Terminal. I can get into "root" via terminal but then am lost when it comes to adding users.

I know how to change passwords, etc. and that works so I think I am in the right place.

Just need help with the commands for adding users.

Please assist. Thanks,

Dan

Are you using Mac OS X Server? Or running the server on a desktop flavor? What version?

Server uses the Server Admin application to add users (<10.5... Users preference pane in 10.6, Snow Leopard).

This page summarizes how to add a Mac OS X user via Terminal, although I have NO idea if it will interface into your mail system... However, Squirrelmail uses the system's IMAP programs to display information, it doesn't generally administer the mail system.

Create a new user via the Terminal - Mac OS X Hints

HTH;
Jeff