Solved

sendmail / Google Apps gmail smtp relay

Posted on 2010-11-18
6
1,425 Views
Last Modified: 2012-05-10
Hello,
  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.

Thanks
0
Comment
Question by:interstate
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 26

Expert Comment

by:jar3817
ID: 34172498
You have to add the email accounts you which to "send as" in your gmail settings:
https://mail.google.com/mail/?shva=1#settings/accounts

http://mail.google.com/support/bin/answer.py?hl=en&ctx=mail&answer=22370
0
 

Author Comment

by:interstate
ID: 34172903
Hi,
    It's Friday and I will admit to being slow today.  I setup a user in gmail called johndoe for sake of argument and this is the username and password that the Linux Sendmail box is using to autheticate to smtp.gmal.com

So where I'm confused is when this Linux box gets mail from the crystal server whose ip address is the access database as allowed to relay - what the user sees in his mailbox is an email from johndoe.  in the old exchange days it would have come from the crystal servers name.

So how would I associate a gmail from-address in such a way that it would know that this email from the johndoe box is really from the crystal server and hence use the appropriate from address?

Thanks

0
 
LVL 26

Expert Comment

by:jar3817
ID: 34173348
Log into the gmail account for johndoe and "settings" and then "accounts and imports." The second option down should be "send mail as", you need to add the address that you want the mail to come from.
0
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

Author Comment

by:interstate
ID: 34173444
OK I found that setting area, but it wants a valid email address.  What I have is for example is a internal windows server on a local domain that is using the linux box as a mail rely and then the Linux box sends to Gmail through the johndoe account.

What I don't understand is I have several multifunction devices that rely through this linux box and with these I can type any email address I choose in the from address and that's exactly what shows up in the gmail box.  So who's stripping off the from address from these servers? Sendmail or Google?

Thanks
0
 
LVL 26

Accepted Solution

by:
jar3817 earned 500 total points
ID: 34173570
Google is doing that. Think about it, google (or any other email service) will NEVER forward email with a bogus FROM address, it's just not going to happen. I'd suggest you create some valid email account for all your mutlifunction devices and have them sent via that address. mfdev@yourdomain.com or something like that.
0
 

Author Comment

by:interstate
ID: 34173678
Yes I see what you mean, in the old days with exchange and Verizon just holding our MX record we could get away with it - which explains why we got blacklisted a few times!!!

OK I will proceed down that path which is fine.

Thanks for the help.

0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
exchange 2007 , mailbox 3 34
Exchange 2016 2 37
ADFS:  Allowing ActiveSync clients to use App Passwords 1 26
Exchange 2013 - Recommended Event Log size? 4 20
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question