SUMMARY: Sendmail not accepting relay host Solaris 10

From: <Harald.Husemann_at_materna.de>
Date: Sat Sep 09 2006 - 01:56:00 EDT
<original posting below>

Hi agn,

and thanks to all who replied (Joseph Tam [tam@math.ubc.ca], Laker Zhu
[zhu_laker@yahoo.ca], Rajdeep Sengupta [rajdeep@noida.atrenta.com]) and
especially to Gary Hyman [gary.hyman@gmail.com] and creydog doma
[ponetguy2@yahoo.com] who pointed me in the right direction:

The trick is to add the same entry (DSmailhost.mydomain.com) to
/etc/mail/submit.cf. I tried it, and it's working know!

Thanks to all and to the list for the quick & reliable answers,

Harald

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 <http://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
<http://mail.info>]
k88IFtFh028933: from=root, size=414, class=0, nrcpts=1,
msgid=< 200609081815.k88IFtFh028933@vi-macs-1.materna-com.de
<mailto: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
<http://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 <http://192.168.123.123>, dsn=5.1.2, stat=Host unknown
(Name server:
192.168.123.123 <http://192.168.123.123> : host not found)
Sep 8 20:15:55 vi-macs-1 sendmail[28933]: [ID 801593 mail.info
<http://mail.info>]
k88IFtFh028933: k88IFtFi028933: DSN: Host unknown (Name server:
192.168.123.123  <http://192.168.123.123>: host not found)
=============/snap/==================

192.168.123.123 <http://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 <http://172.30.66.61> -> 172.30.96.6 <http://172.30.96.6> DNS C
<otherdomain>.de. Internet AAAA ?
172.30.96.6 <http://172.30.96.6> -> 172.30.66.61 <http://172.30.66.61> DNS R
172.30.66.61 <http://172.30.66.61> -> 172.30.96.6 <http://172.30.96.6> DNS C
<otherdomain>.de. Internet Addr ?
172.30.96.6 <http://172.30.96.6> -> 172.30.66.61 <http://172.30.66.61> DNS R
172.30.66.61 <http://172.30.66.61> -> 172.30.96.6 <http://172.30.96.6> DNS C
<otherdomain>.de. Internet MX ?
172.30.96.6 <http://172.30.96.6> -> 172.30.66.61 <http://172.30.66.61> DNS R
<otherdomain>.de. Internet MX
ganymed.<otherdomain>.de.
172.30.66.61  <http://172.30.66.61>-> 172.30.96.6 <http://172.30.96.6> DNS C
192.168.123.123 <http://192.168.123.123>. Internet MX ?
172.30.96.6 <http://172.30.96.6> -> 172.30.66.61  <http://172.30.66.61>DNS R
Error: 3(Name Error)
172.30.66.61 <http://172.30.66.61> -> 172.30.96.6 <http://172.30.96.6> DNS C
192.168.123.123.<mydomain>.de.
Internet MX ?
172.30.96.6 <http://172.30.96.6> -> 172.30.66.61 <http://172.30.66.61> DNS R
Error: 3(Name Error)
172.30.66.61 <http://172.30.66.61> -> 172.30.96.6 <http://172.30.96.6> DNS C
192.168.123.123.<otherdomain>.de.
Internet MX ?
172.30.96.6 <http://172.30.96.6> -> 172.30.66.61 <http://172.30.66.61> DNS R
Error: 3(Name Error)
172.30.66.61 <http://172.30.66.61> -> 172.30.96.6 <http://172.30.96.6> DNS C
192.168.123.123 <http://192.168.123.123>. Internet AAAA ?
172.30.96.6 <http://172.30.96.6> -> 172.30.66.61 <http://172.30.66.61> DNS R
Error: 3(Name Error)
172.30.66.61 <http://172.30.66.61> -> 172.30.96.6 <http://172.30.96.6> DNS C
192.168.123.123.<mydomain>.de.
Internet AAAA ?
172.30.96.6 <http://172.30.96.6> -> 172.30.66.61 <http://172.30.66.61> DNS R
Error: 3(Name Error)
172.30.66.61 <http://172.30.66.61> -> 172.30.96.6 <http://172.30.96.6> DNS C
192.168.123.123.<otherdomain>.de.
Internet AAAA ?
172.30.96.6 <http://172.30.96.6> -> 172.30.66.61 <http://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 <http://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
Received on Sat Sep 9 01:56:33 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:00 EST