LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to configure sendmail as a forwarder for all email it receives.. (https://www.linuxquestions.org/questions/linux-server-73/how-to-configure-sendmail-as-a-forwarder-for-all-email-it-receives-878876/)

mlyon 05-04-2011 07:07 PM

How to configure sendmail as a forwarder for all email it receives..
 
Hello,

So I have two servers in my environment, I have an app server that runs my Java App on it and then I have a utility server. Right now, I have that utility server acting as a simple mail gateway so when my app server needs to send an e-mail out, it forwards it to the utility server and the utility server sends it out to where-ever it's destined to. The Java server always sends as one specific user, let's call it bob@company.com.

This set-up is working just fine right now.

Now, I also have my company.com e-mail hosted at an e-mail provider for all of my user's e-mail accounts and such. I also have a bob@company.com e-mail account so if e-mails ever bounce, they end up in this inbox.

Again, this works fine.

My app is pretty email dumb so it can't authenticate itself or anything, that's why im using sendmail on my utility server instead of my e-mail provider's SMTP server.

What I would like to do is to configure sendmail to forward all outbound e-mails (and authenticate) to my e-mail provider's SMTP gateway using the bob@company.com account and credentials.

Is it possible to configure sendmail to do this?

Thank you in advance!

Thanks,
Mike

lrtward 05-06-2011 03:15 PM

Check out the section entitled "Using sendmail as a client with AUTH" at http://www.sendmail.org/~ca/email/auth.html

I think that's what you're looking for.


All times are GMT -5. The time now is 08:02 AM.