http://askubuntu.com/questions/158957/how-to-set-the-fully-qualified-domain-name-in-12-04
Set fqdn
change hostname in /etc/hostname
add fqdn in /etc/hosts
say for host foo and domain pri /etc/hosts entry is:
127.0.1.1 foo.pri foo
set up exim for mail handling (from Linode example)
https://www.linode.com/docs/email/exim/sendonly-mail-server-with-exim-on-debian-6-squeeze
reconfigure exim4 script
dpkg-reconfigure exim4-config
xx