JySysAdmin 0 Newbie Poster

I've been trying to setup a mail server on my VPS like the one we have at work and am having trouble getting vexim working. I can only send mail from it from the terminal and only can receive if I make aliases in /etc/alaises that redirect to other addresses.

I would like to have a full mail server with Mailboxes and actually have my server store messages and not just relay them.

I have vexim set up in a virtualhost, when I go to the form to add a localdomain I just get a whitescreen when I submit it.

I get errors about undefined variables in PHP in my error_log

[Wed Dec 12 22:45:43 2012] [error] [client xyz] PHP Notice: Undefined index: realname in /usr/src/vexim2/vexim/config/variables.php on line 63, referer: https://domain/vexim/siteadd.php?type=local
[Wed Dec 12 22:45:43 2012] [error] [client xyz] PHP Notice: Undefined variable: _SESSION in /usr/src/vexim2/vexim/config/variables.php on line 65, referer: https://domain/vexim/siteadd.php?type=local
[Wed Dec 12 22:45:43 2012] [error] [client xyz] PHP Notice: Undefined variable: _SESSION in /usr/src/vexim2/vexim/config/variables.php on line 66, referer: https://domain/vexim/siteadd.php?type=local
[Wed Dec 12 22:45:43 2012] [error] [client xyz] PHP Notice: Undefined variable: _SESSION in /usr/src/vexim2/vexim/config/variables.php on line 67, referer: https://domain/vexim/siteadd.php?type=local

I would be really grateful if I could get this working sigh