Hi,
Up front, let me say that I am not currently a Linode customer, just in case the affects whether or not you answer my question. However, I know there are smart people around here, so I am hoping you can look beyond that.
Also, I will admit upfront that email setup is not my forte in any way, shape or form -- and my current setup could be inefficient.
Anyway, I have gone through many of the posts on this forum and elsewhere, but I am admittedly just plain confused and can't put my finger on how to best accomplish what I want to do. I am running Ubuntu Hardy. Right now, I host two domains on my VPS, each, of course, represented as a separate vhost entity. Let's call them:
d1.com
d2.com
d1.com is a Wordpress installation
d2.com is a regular website with notification capability after an order was placed, for example.
Also, email for these domains are hosted via Google Apps.
Right now, I am also using Exim4 (maybe that's the problem, I don't know). I am only sending email. I have not set anything up to receive email. My Exim4 configuration (via the passwd.client file -- that is the appropriate file, right?) is setup such that all of my email is going through Google Apps in d2.com. Let's call it:
contact@d2.com
Now, anytime a comment is left on a blog post at d1.com, or someone makes an order at d2.com, an email is sent out looking like the following:
From: Sales <contact@d2.com>
Subject: You have a sale
Date: June 7, 2009 2:12:32 PM PDT
To:
personWhoOrdered@gmail.com
Reply-To:
sales@d2.com
OR
From: Wordpress <contact@d2.com>
Subject: You have a comment
Date: June 7, 2009 2:12:32 PM PDT
To:
joel@d1.com
I want the From: line, especially for d1, to be
joel@d1.com, respectively. I don't want the
contact@d2.com to show up at all.
I tried adding
joel@d1.com as a From address to the
contact@d2.com Google Apps account (Settings/Account/Send Email As). However, no luck. Still the same problem.
My passwd.client file (in /etc/exim4/) settings look like:
mail-smtp.l.google.com:contact@d2.com:myPassword
*.google.com:contact@d2.com:myPassword
smtp.gmail.com:contact@d2.com:myPassword
If I understand Exim correctly, it is using this account information to actually forward the email to the appropriate account for sending. To my eyes it is seeming like that email that is forwarded from exim with the email address that I specified in my Wordpress installation (
wordpress@d1.com) is not being recognized by Google Apps, even though I specified
wordpress@d1.com as a valid From address.
Do you think Exim is the cause here? Or am I missing something? I am just stuck.
It has been suggested that maybe PostFix or msmtp might be easier to configure in this case, but I don't want to go through the trouble of changing if I am missing something more fundamental.
Any advice would be appreciated. Thanks!
Joel
BTW, here are possible some relevant posts:
My post on the Slicehost forum (although as you will notice at the end of the discussion thread, I made some modifications to match what I posted above):
http://forum.slicehost.com/comments.php ... ionID=3806
This Linode Forum post using Postfix (although I am not sure that helps with multiple domains):
https://www.linode.com/forums/viewtopic.php?t=4342