sendmail / Google Apps gmail smtp relay
Posted on 2010-11-18
Just a bit of history we had an in house Exchange 2007 server as well as several multifunction devices, a few windows servers, 2 Linux boxes and 1 AIX box that used this Exchange server to relay mail. Recently we moved away from Exchange and are going with Google Apps Gmail. I was told that I could use their SMTP relay similar to exchange and went through the process of setting up one of the Linux servers to serve as the relay for all the other devices. It actually does work but the problem I'm having is that the relayed mail is being sent to the mail box with the from address being the user name that I had setup in Gmail to authenticate.
So for example one of the windows server which runs Crystal used to send out mails which would end up in the users mailbox with the name of the crystal server not they show up under the Gmail users name.
Another example on the other Linux box if I login in as root or another user and go through a mail command that email will show up as "root" or whomever but an application running on that box (PHP) which through a form captures the entered from address - this used to be what appeared in the mailbox - now it's as if the relay is stripping that off and using the Gmail account.
There may not be a "Sendmail" solution to this problem. I'm hardly a sendmail guru but if anyone has any thoughts on what is causing this or has a solution that would be great.