First check out this URL:
http://www.howtoforge.com/perfect-se...-ispconfig3-p3
Setup your hostnames like in the guide in the url. You need to use FQDN (Fully qualified domain name) for email and you need to setup MX record in DNS that points to your IP of ISPConfig server.