I have a server running Apache 2.2, PHP 5, and MySQL 5.0. There are three
vhosts on it at the moment and more envisioned in the future. We are a
start-up company and have not yet gone 'live' (our sites are currently
using restricted access).
The server uses Debian Etch.
It is time to add email services. I have been looking around and am not
finding the information for the setup that we want. I am sure that the
information is out there, I am either looking in the wrong place or am
searching for the wrong key words. I have read through the Exim docs.
If the information is in them, I did not recognize it.
We have an email account with Google. I have set up the MX record on our
DNA server as specified by Google; mail.demo.com points to the Google
server. We have set up accounts and can send/receive emails. Pinging
mail.demo.com gets returns from the Google server, as it should.
Exim4 is installed on the website server with whatever the default install
configuration is. The website server is not hosted on Google.
What we wish to do is allow the website for demo.com to send email via the
mail.demo.com sever. The demo.com email sender will be different users
such as firstname.lastname@example.org, email@example.com, etc. The demo.com
users will not check email on the demo.com server, we do not want to store
email on the demo.com server, and mail.demo.com users will only consist
of demo.com departments and employees.
This setup we want to use for all website domains served. For example,
demo.com, anotherdemo.com, and thirddemo.com. Each domain will be setup
with its own Google account.
PHP has the mail function that we wish to use. We do not plan mass emails
I have found several examples of how to set up Exim for use with a single
user account on gmail. I do not think that is what I want.
Again, I believe this must be a common problem that has been solved many
times. Would someone point me to web resources for doing this using Exim?