Sendmail - relay Host unknown since adding dns


 
Thread Tools Search this Thread
Operating Systems HP-UX Sendmail - relay Host unknown since adding dns
# 1  
Old 07-10-2015
Sendmail - relay Host unknown since adding dns

Hi
ever since we´ve added the server in DNS, sendmail stopped working, but everything seems to be configured properly although in the mail logs we see:
Code:
Jul 10 16:52:58 itc01 sendmail[5593]: t6AEqrHT005593: from=root, size=6, class=0, nrcpts=1, msgid=<201507101452.t6AEqrHT005593@itc01.headquarter.tmm>, relay=root@localhost
Jul 10 16:53:08 itc01 sendmail[5593]: t6AEqrHT005593: to=myname@dominio.co.yy, ctladdr=root (0/3), delay=00:00:15, xdelay=00:00:10, mailer=relay, pri=30006, relay=192.168.1.39, dsn=5.1.2, stat=Host unknown (Name server: 192.168.1.39: host not found)
itc01[320]/etc/mail #

but in /etc/hosts file I have:
Code:
192.168.1.39    exchange-hub.headquarter.tmm

the
Code:
/etc/resolv.conf

is:
Code:
more /etc/resolv.conf
domain dominio.co.yy
nameserver 192.168.1.69
nameserver 192.168.1.39
search headquarter.tmm

and the
Code:
/etc/nsswitch.conf

:

Code:
passwd:       compat
group:        compat
hosts:        files dns
ipnodes:      dns [NOTFOUND=return] nis [NOTFOUND=return] files
networks:     nis [NOTFOUND=return] files
protocols:    nis [NOTFOUND=return] files
rpc:          nis [NOTFOUND=return] files
publickey:    nis [NOTFOUND=return] files
netgroup:     nis [NOTFOUND=return] files
automount:    files nis
#aliases:      files nis
aliases:      files
services:     nis [NOTFOUND=return] files

Please can you help?

---------- Post updated at 05:23 PM ---------- Previous update was at 05:07 PM ----------

problem solved , I have put the FQDN of the server DS macro of
Code:
sendmail.cf


Last edited by fretagi; 07-10-2015 at 12:13 PM..
# 2  
Old 07-10-2015
Code:
host 192.168.1.39

and
Code:
getent hosts 192.168.1.39

should give the same hostname.
getent (if available on your system) uses the libc defaults that is normally /etc/nsswitch.conf, eventually through a nscd cache.

For ipnodes (Solaris?) I recommend only "files". In few configurations "files dns" can make sense, but always "files" first, and "localhost" should be in /etc/hosts file.
(Not relevant here: also services should be "files" first, for performance reason.)
Do you have nscd with hosts caching (and ipnodes caching) enabled? (See /etc/nscd.conf and command nscd -g) Then restart nscd.
# 3  
Old 07-10-2015
Are we actually discussing this thread again?

DNS config preventing mail delivery



Robin
# 4  
Old 07-10-2015
Quote:
Originally Posted by rbatte1
Are we actually discussing this thread again?

DNS config preventing mail delivery

Robin
Smilie
Now I see, it is HP-UX. Does not have nscd, and no getent.
My /etc/nsswitch.conf recommendations are valid nevertheless.
While I wonder what HP-UX does with ipnodes...it looks like this line was blindly copied from the Sun/Solaris nsswitch.conf and does not have an effect.
--
DS in sendmail.cf is the valid line to set the relayhost.
Normally sendmail does
Code:
nslookup -q=mx relayhost

and if not successful
Code:
nslookup -q=a relayhost

or
Code:
nslookup -q=aaaa relayhost

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Sendmail relay failing

Hi Techies Bit new to sendmail thingy. I have a Solaris 10 box. There is a request generated by customer that they want Solaris 10 box to use as relay an external smtp server. the smtp server is updated in hosts file and it is pingable. I have updated by "vi" /etc/mail/sendmail.cf # ...... (0 Replies)
Discussion started by: khaniqshahid
0 Replies

2. Solaris

Classic: sendmail[pid]: My unqualified host name (hostname) unknown

Hi all, I'd like to disable sendmail permanently on my "new" 220R with freshly installed SunOS 5.10 because it prints annoying messages to the system console. Also I'm interested in how to fix the actual problem with unqualified host name. My unqualified host name (hostname) unknown; sleeping... (2 Replies)
Discussion started by: pseudocoder
2 Replies

3. Red Hat

add relay to sendmail.cf

Hi, I notice that my relay on sendmail.cf is just "DS" and no ip. So I guess, it's using the local DNS to relay my mail which sometimes being spammed. I would like to add a new relay ip "DSxxx.xxx.xxx.xxx" on sendmail.cf. What do I need to edit sendmail.cf? Do I just use vi or m4? ... (4 Replies)
Discussion started by: itik
4 Replies

4. Solaris

Sendmail error delaying relay

When I try to send mail, sendmail delays a lot. After monitoring syslog, I noticed that sendmail starts with this first message... waits a minute and gives the second message... waits another minute and then sends off the email. How do I correct this in sendmail or completly disable it. I'm sending... (0 Replies)
Discussion started by: adelsin
0 Replies

5. UNIX for Dummies Questions & Answers

Sendmail error: 550 5.1.8 invalid/host-not-in-DNS

I have sendmail setup to relay through my external ISP. Everything was working fine until I started getting the error message (below). I don't what I did to cause this? I have read a number of related posts and it appears that I might need to configure the sending address of my server to appear... (0 Replies)
Discussion started by: simonmason
0 Replies

6. Solaris

PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10

Hello, I have a problem - I created a chrooted jail for one user. When I'm logged in as root, everything work fine, but when I'm logged in as a chrooted user - I have many problems: 1. When I execute the command ping, I get weird results: bash-3.00$ usr/sbin/ping localhost ... (4 Replies)
Discussion started by: Przemek
4 Replies

7. Solaris

Sendmail relay problem

I have a sendmail issue When I try to send a mail message using mailx I get a "connection refused by mail14.messagelabs.com" error. relay=mail14.messagelabs.com., dsn=4.0.0, stat=Deferred: Connection refused by mail14.messagelabs.com However, mail14.messagelabs.com doesn't exist. The... (4 Replies)
Discussion started by: soliberus
4 Replies

8. UNIX for Dummies Questions & Answers

Sendmail open relay

All I am having a bit of a problem with my sendmail smtp server. The environment: Redhat Linux 8 sendmail-8.12.8-9.80. The mailserver is used by our application to send mail notifications to users on the system. The application is hosted on 2 different servers (separate domains)... (2 Replies)
Discussion started by: skotapal
2 Replies

9. Cybersecurity

Sendmail Relay

I'm trying to get my Solaris 7 sendmail server to allow external clients to send to external recipients. I know this has to do with relaying, but I'm not sure how unsafe I have to get to allow this. I simply need for users to login from any domain and be allowed to send mail via SMTP to any... (4 Replies)
Discussion started by: Solaris
4 Replies

10. UNIX for Advanced & Expert Users

sendmail : 550 host unknown

Hi I try to configure snedmail as smtp for my solaris box. if the useres are local there's no problem everything's working fine, but is it outside, sendmail says it could find the host. why?! all other tools find diffrent host? Could anyone tell me how I set up an easy mx ? So I test it with... (29 Replies)
Discussion started by: mrsaint
29 Replies
Login or Register to Ask a Question