Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Sending SMTP mail to Microsoft exchange server

David Pace
Occasional Visitor

Sending SMTP mail to Microsoft exchange server

I am attempting to set up sendmail to forward all smtp mail to our exchange server. I can successfully send mail via exchange to addresses in my domain. The problem comes up when I attempt to send to an address outside of my domain. Sendmail attempts to resolve the address. When it fails, it just queues the message. I need sendmail to simple relay all smtp messages to exchange.
5 REPLIES
Steven E. Protter
Exalted Contributor

Re: Sending SMTP mail to Microsoft exchange server

modify this file:

/etc/mail/sendmail.cf

Change

DS

to

DShostname_of_exchange_server

or
DS
[IP address of exchange server]

The latter method will work even if DNS is down on your network.

The Exchange server must be configured to relay mail from your HP server.

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

I believe the above is a soluition to the issue.

To test the configuration:

sendmail -v -d8.99 -d38.99 someone@your.net
Type some text

.





means hit enter.

good luck and regards,

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
Jim Mallett
Honored Contributor

Re: Sending SMTP mail to Microsoft exchange server

Dave,

Steve's on the money as far as the settings go, I just wanted to add: Pay special attention to his line about the Exchange Server needing to be setup to accept relays from the HP box.
I suddenly saw the same symptoms you have only to find out our Exchange Admin had turned off relaying because of a pretty bad (external) spamming incident.
There should be an exception list that you can add your HP box too that will allow relaying.

Also, /var/adm/syslog/mail.log may shed some light on the connection failure with the Exchange server.

Jim
Hindsight is 20/20
David Pace
Occasional Visitor

Re: Sending SMTP mail to Microsoft exchange server

I have set the DS value in sendmail.cf to the address of our exchange server. Mail within our domain seems to work okay, but address outside of the domain get name server timeouts and the following message:

Transient parse error -- message queued for future delivery

David
Berlene Herren
Honored Contributor

Re: Sending SMTP mail to Microsoft exchange server

Are you using DNS? If not, then cp /etc/nsswitch.files /etc/nsswitch.conf.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Steven E. Protter
Exalted Contributor

Re: Sending SMTP mail to Microsoft exchange server

If the Exchange admin doesn't know what he/she is doing, relay could be openned up for the entire Internet. This is serious.

If you don't have dns enabled as Berlene says, you can do it with /etc/hosts

just add an entry into the file that looks like this.

ip_of_exchange_server hostname_of_exchange_server


save the file.

SEP
35 points to go....
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