Operating System - Linux
1827293 Members
1349 Online
109717 Solutions
New Discussion

Need help with relaying e-mails to MS Exchange server

 
SOLVED
Go to solution
Jorge Cocomess
Super Advisor

Need help with relaying e-mails to MS Exchange server

Greetings,

Our main e-mail server is MS Exchange 2003. We have numerous RH Linux servers running AS 2.1 and Oracle 9i -- There are some batch process (cron) jobs that I would like to set up for the summary details send from the linux server to our users and through the exchange box.

So far, I have set, so that the Exchange box allowed relaying from the Linux servers. My question is, what do I need to configure on the Linux server to send e-mail through the Exchange server??

Yes, this Linux server does see the internet. I tested by sending an e-mail to my hot-mail account without any issues. And yes, this Linux server can be pinged inside my network.

Please help this newbie regarding to configuring sendmail.

Thank you in advance.

Jorge
6 REPLIES 6
Alexander Chuzhoy
Honored Contributor
Solution

Re: Need help with relaying e-mails to MS Exchange server

I suppose you use sendmail.
save original copies of /etc/mail/sendmail.mc
and /etc/mail/sendmail.cf - just in case something goes wrong.
edit the file /etc/mail/sendmail.mc
locate the line:
dnl define(`SMART_HOST',`smtp.your.provider')
and change it to something like this:
define(`SMART_HOST',`exchange_server_name')

where exchange server name is the hostname of your exchange server.
After that execute
"m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf"
and then "service sendmail restart"

at this point all outgoing e-mails will be sent to exchange_server_name.
Silju
Advisor

Re: Need help with relaying e-mails to MS Exchange server

Hi,

Simply configuring your linux servers with proper DNS will solve your problem. The DNS should provide the correct mx record for your exchcnage server, and ensure that send mail is running.

service sendmail status

command will give the sendmail detials.

Warm Regards
Silju
Technology to empower all
Steven E. Protter
Exalted Contributor

Re: Need help with relaying e-mails to MS Exchange server

Shalom Jorge,

The smart relay is the way to go.

Setup is required on Exchange.

By default Exchange won't relay mail for any other hosts. This is an anti-spam meaure.

You must explicity modify the exchange server to permit other systems to relay mail through it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jorge Cocomess
Super Advisor

Re: Need help with relaying e-mails to MS Exchange server

What if you cannot locate the Smart_Host entry in the sendmail.mc file??

Thanks for your time.

J
Jorge Cocomess
Super Advisor

Re: Need help with relaying e-mails to MS Exchange server

never mind, I think I got it to work now by adding a "Smart_Host" in /etc/mail/sendmail.cm and also modified the DNS setting.

Thanks everyone.
Jorge Cocomess
Super Advisor

Re: Need help with relaying e-mails to MS Exchange server

closed.