Sounds like simple DNS records. Point the different subdomains (A records) to their respective IPs and the mail server (A & MX records) to their respective Domain & IPs. If you're unsure of what to do, it's a simple task for your registrar, just give them a call, or Google will certainly have...