sun and windows email forwarding - between sun and exchange
We have two Sun servers running Solaris 10 and a Windows based network that handles all our external email thru MS exchange 2003. Id like to setup the email service from the Sun server to be able to send emails to the MS exchange server (which should then be able to forward them onto the appropriate email box.).
How can I do this?
Is sendmail the best option?
What are the step by step tasks required to achieve this ?
I really need the process spelled out as I am not often performing admin tasks, suggestions most welcome
# 1
Well, Sun support solved this one ...
If you make the Exchange server the smart relay for the Sun servers then any local email (on the server) is delivered locally, but any email
that is not for a local user will be sent to the Exchange server.
To set the smart relay you need to edit the sendmail.cf file, which is located in /etc/mail.
First make a backup copy of the sendmail.cf file, then open the sendmail.cf file in a text editor.
Find the following lines:
# "Smart" relay host (may be null)
DS
You need to add either the ip address of the Exchange server to the "DS" line as in the example below
DS123.123.123.123
After saving your changes you will need to restart sendmail with the following command
svcadm restart svc:/network/smtp:sendmail
Now test that mail is working properly, if not restore your original sendmail.cf file from the copy made and restart sendmail again.