using shared host mail server with my VPS server
I have two hosting accounts with two separate providers. One is a shared hosting account the other is a VPS.
I use my VPS for video and heavy media stuff and I use some Java applications all of which are not available on a shared hosting account.
While i could install a mail server and / or a DNS server on my VPS, i chose to keep my shared managed hosting for the DNS and mail server as this would relieve me of the head ache of a mail server and DNS server so i can concentrate on application development.
My VPS is running ubuntu 10 and apache2.
My question is simple. How can i configure my VPS to use my shared hosting mail server. I have set up virtual hosts on my VPS and have multiple domains / DNS zones / addon domains in my shared hosting account all with their own email addresses. The A records in my shared account for each domain points to my VPS IP address.
I was thinking I need to specify the MX records in my apache conf file in sites-enabled directory, but I would need to login to my mail server?
Basically, what I need to do is allow my applications on my VPS access to a mail server to send automated emails, like login information.