Sendmail not accepting relay host Solaris 10

From: Harald Husemann (harald.husemann@materna.de)
Date: Fri Sep 08 2006 - 14:38:15 EDT


Hi managers,

and sorry for being a bit off-topic, but this one's drivin' me nuts and
since sendmail is a part of Solaris...
Okay, here's the problem:

I've setup sendmail as I did a hundred times before on Sol. 9, to use
our mailhost for relaying. So, my entry in sendmail.cf reads:

# "Smart" relay host (may be null)
DSmailhost.<mydomain>.de

But, I can't send a mail, every time I try it (using mailx on the
command line) I get the following in /var/log/syslog:

============/snip/=================
Sep 8 20:15:55 vi-macs-1 sendmail[28933]: [ID 801593 mail.info]
k88IFtFh028933: from=root, size=414, class=0, nrcpts=1,
msgid=<200609081815.k88IFtFh028933@vi-macs-1.materna-com.de>,
relay=root@localhost
Sep 8 20:15:55 vi-macs-1 sendmail[28933]: [ID 801593 mail.info]
k88IFtFh028933: to=hhuseman@<otherdomain>.de, ctladdr=root (0/0),
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30414,
relay=192.168.123.123, dsn=5.1.2, stat=Host unknown (Name server:
192.168.123.123: host not found)
Sep 8 20:15:55 vi-macs-1 sendmail[28933]: [ID 801593 mail.info]
k88IFtFh028933: k88IFtFi028933: DSN: Host unknown (Name server:
192.168.123.123: host not found)
=============/snap/==================

192.168.123.123 is the IP of the relay, so, I presume it has found the
relay - but, why is it complaining that this host is unknown?? Hm, I
sniffed on port 53, and here's what I got:

===========/snips/===========
172.30.66.61 -> 172.30.96.6 DNS C <otherdomain>.de. Internet AAAA ?
 172.30.96.6 -> 172.30.66.61 DNS R
172.30.66.61 -> 172.30.96.6 DNS C <otherdomain>.de. Internet Addr ?
 172.30.96.6 -> 172.30.66.61 DNS R
172.30.66.61 -> 172.30.96.6 DNS C <otherdomain>.de. Internet MX ?
 172.30.96.6 -> 172.30.66.61 DNS R <otherdomain>.de. Internet MX
ganymed.<otherdomain>.de.
172.30.66.61 -> 172.30.96.6 DNS C 192.168.123.123. Internet MX ?
 172.30.96.6 -> 172.30.66.61 DNS R Error: 3(Name Error)
172.30.66.61 -> 172.30.96.6 DNS C 192.168.123.123.<mydomain>.de.
Internet MX ?
 172.30.96.6 -> 172.30.66.61 DNS R Error: 3(Name Error)
172.30.66.61 -> 172.30.96.6 DNS C 192.168.123.123.<otherdomain>.de.
Internet MX ?
 172.30.96.6 -> 172.30.66.61 DNS R Error: 3(Name Error)
172.30.66.61 -> 172.30.96.6 DNS C 192.168.123.123. Internet AAAA ?
 172.30.96.6 -> 172.30.66.61 DNS R Error: 3(Name Error)
172.30.66.61 -> 172.30.96.6 DNS C 192.168.123.123.<mydomain>.de.
Internet AAAA ?
 172.30.96.6 -> 172.30.66.61 DNS R Error: 3(Name Error)
172.30.66.61 -> 172.30.96.6 DNS C 192.168.123.123.<otherdomain>.de.
Internet AAAA ?
 172.30.96.6 -> 172.30.66.61 DNS R Error: 3(Name Error)

(<mydomain> is the domain-name of the machine itself, and <otherdomain>
is another domain of us which is also configured in /etc/resolv.conf)

So, it's doin' a hostname lookup for mailhost.<mydomain>.de (right), and
gets the right IP (192.168.123.123) from the nameserver. So far, so good
- but now, things are getting weird, since it tries to lookup the IP in
the DNS by using the IP as a HOSTNAME??!! It's clear that this will not
work, but where is my mistake?

Hope anyone can help, will (of course) summarize.

Thanks in advance,

and have a nice hackin',

Harald
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:40:45 EDT