Operating System - Linux
1753781 Members
7373 Online
108799 Solutions
New Discussion юеВ

Configure sendmail in RedHat 6.1

 

Configure sendmail in RedHat 6.1

Hi all!

I work with RedHat 6.1 and Sendmail 8.9.3

1) When I send mail from serverA (soptec) to other serverB(matriz) with HP-UX 10.20, this never arrive, with command mailq display this

KAA19863 10 Tue Feb 20 10:42
(Deferred: Name server: matriz.agro.com.mx.: host name lookup)


2) In /etc/hosts file servers matriz and soptec exit:
10.10.3.6 soptec soptec.agro.com.mx
10.10.1.1 matriz matriz.agro.com.mx

3) sendmail daemon is running

Why never my mail arrive?

Thanks

CGRC
5 REPLIES 5
Albert E. Whale, CISSP
Honored Contributor

Re: Configure sendmail in RedHat 6.1

Carlos,

It's hard to determine what is going on from this, but can you try the following:

sendmail -v @matriz.agro.com.mx

some text


Please reply with the information in the output of the command.

Have a Great Day!
Sr. Systems Consultant @ ABS Computer Technology, Inc. http://www.abs-comptech.com/aewhale.html & http://www.ancegroup.com

Re: Configure sendmail in RedHat 6.1

Hello Albert

I execute this command:

# sendmail -v dscgrc@matriz.agro.com.mx
Hello


And display this message:

dscgrc@matriz.agro.com.mx... Deferred: Name server: matriz.agro.com.mx.: host name lookup failure

CGRC
Keith Bunge
Occasional Advisor

Re: Configure sendmail in RedHat 6.1

Well here are a few things to look at. Reply back with any further info they might provide.

1) Can you ping ServerB from ServerA?

2) Are you using /etc/nsswitch.conf and if you are does your entry for hosts say something like:

hosts: files dns

3) Is this a static connection or provided through DHCP? DHCP will toss in interface specific resolv.conf files that you might want to look at as well.
Bryce Dunn
Valued Contributor

Re: Configure sendmail in RedHat 6.1

While this is not the answer you will be looking for, have you considered removing sendmail and installing a mailer with better performance and security such as qmail?
Jeffrey S. Sims
Trusted Contributor

Re: Configure sendmail in RedHat 6.1

Hello,

First off you want to make sure that your server is in your DNS correctly.

Secondly, I don't use 8.9.3 but I have 8.11 so your version may be different, however, there is a file called local-host-names that tells your server the domains it answers for, so you may want to add in the appropriate entries there, this also requires an entry similar to
Fw/etc/mail/local-host-names in your sendmail.cf file.

Hope this helps or at least peaks the right thoughts.