1826537 Members
4309 Online
109695 Solutions
New Discussion

Mail relay host

 
SOLVED
Go to solution
vskumar
Occasional Contributor

Mail relay host

Experts,
I have a HP workstation from which I want to send the out going mails(SMTP mails) to the SMTP server which is Exchange server(Microsoft)
Can you pl let me know which lines have I got to edit in the /etc/sendmail.cf file? Thanks in advance

VSK
3 REPLIES 3
Michael Tully
Honored Contributor
Solution

Re: Mail relay host

Uday_S_Ankolekar
Honored Contributor

Re: Mail relay host

Hi,

vi sendmail.cf file in /etc/mail

search for DS string by ^DS
infront of DS put exchange servers' ful qualified domain name
Save and quit sendmail file
restart the sendmail daemon by
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

Goodluck,
-USA...
Good Luck..
Steven Sim Kok Leong
Honored Contributor

Re: Mail relay host

Hi,

As long as your DNS server registers your Exchange server in the MX (Mail Exchange) records for your domain, you do not need to modify /etc/sendmail.cf

To check, at the nslookup prompt, type

nslookup> set type=mx
nslookup> [enter your domain]

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com