1831213 Members
2743 Online
110021 Solutions
New Discussion

Re: RH MAIL SETUP

 
SOLVED
Go to solution
Mark Ellis
Advisor

RH MAIL SETUP

I have a RH ES-V3.0 server and I am trying to set up mail services (smtp) and I am not sure how to configure. I can send mail through the Ximian desktop, but when I try it from the command line "mail xxx@xxxxxx.com < /etc/hosts" - I am getting a timeout to the exchange server. Any ideas?
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: RH MAIL SETUP

You are going to need to have a little more to help.

try sending mail with elm.

then this:

sendmail -v -d8 -d38 someaddress@exchangeserver
type some text

.


If it works all is well.

Sendmail ships relatively secure on RH 3.0 but you will need to work on it. See my thread on spam. Rith now its near the top of the list. Vernon Brown has a few good threads in his profile too.

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
Mark Ellis
Advisor

Re: RH MAIL SETUP

No - it times out going to the exchange server:


-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
i3UCNRlg023185 6 Fri Apr 30 08:23
(Deferred: Connection timed out with tango.xxx.com.)


Could it be that I don't have something set up right - it shows default localhost.localdomain?
Steven E. Protter
Exalted Contributor

Re: RH MAIL SETUP

Most likely the exchange server is not setup to allow you to relay. Have you set the DS directive in sendmail.cf?

If so, is it the correct hostname or ip address of the Exchange Server?

If correct does the exchange server allow relay? That has to be set up exlicitly.

Talk to the exchange admin.

Make sure you can at least ping that server. If you can't ping it, correct networking. If you can the issue may be the exchange server.

Tests:

nslookup xxxxxx.com
or
dig xxxxxx.com

Does it give answer. If it gives no answer, fix /etc/hosts networking

Consider connecting to a DNS server and getting name resolution that way.

Thats why my diagnostic is so nice, it helps you pinpoint the problem. You can redirect the output to a file and post 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
Mark Ellis
Advisor

Re: RH MAIL SETUP

Our exchange server will allow RELAY from this subnet. Inside the sendmail.cf file I see:

# "Smart" relay host (may be null)
DS

What is the syntax for adding my exchange server ip?

Thank you!
Steven E. Protter
Exalted Contributor
Solution

Re: RH MAIL SETUP

bunny chance.

Two ways

DS
hostname_of_exchange_server

DS
[IP_address_of_exchange_server]

ex

DS
[192.168.0.25]


save sendmail.cf

service sendmail restart

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
Mark Ellis
Advisor

Re: RH MAIL SETUP

You are the man! Thanks!!!