Subject: Problems with sendmail
To: None <netbsd-help@netbsd.org>
From: Jan Danielsson <jan.danielsson@gmail.com>
List: netbsd-help
Date: 02/06/2006 17:10:09
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig51981DB2F6D1411E6F70833B
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hello all,
First, the background:
I have a computer on a network from which uses dhcp, but does _not_
transmit host names. To find out my dynamically assigned host name I
need to run "ifconfig -a" and then "nslookup" for my IP address. Then I
can parse the host name from there. If I set this host name (by running
"hostname <name>", I can send/receive mail via the command "mail" and
receive mail from cronjobs.
However, there are reasons I do _not_ want to use the dynamically
assigned name. So, I would like to hard code my host name to something
else. This works great for all application I have (afaik) except sendmail=
=2E
This is what happens if I hard code my host name, (in this case it's
"anca"), and send a test mail using the command "mail root":
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
From: Mail Delivery Subsystem <MAILER-DAEMON@anca>
To: root@anca
MIME-Version: 1.0
Content-Type: multipart/report; report-type=3Ddelivery-status;
boundary=3D"k16FxRvx002851.1139241567/anca."
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
This is a MIME-encapsulated message
--k16FxRvx002851.1139241567/anca.
The original message was received at Mon, 6 Feb 2006 16:59:27 +0100 (CET)=
from root@localhost
----- The following addresses had permanent fatal errors -----
root
(reason: 553 5.1.8 <root@anca>... Domain of sender address root@anca
does not exist)
(expanded from: root)
----- Transcript of session follows -----
=2E.. while talking to [localhost.]:
>>> MAIL From:<root@anca> SIZE=3D40
<<< 553 5.1.8 <root@anca>... Domain of sender address root@anca does not
exist
501 5.6.0 Data format error
--k16FxRvx002851.1139241567/anca.
Content-Type: message/delivery-status
Reporting-MTA: dns; anca.
Arrival-Date: Mon, 6 Feb 2006 16:59:27 +0100 (CET)
Final-Recipient: RFC822; root@anca.
Action: failed
Diagnostic-Code: SMTP; 553 5.1.8 <root@anca>... Domain of sender address
root@anca does not exist
Last-Attempt-Date: Mon, 6 Feb 2006 16:59:27 +0100 (CET)
--k16FxRvx002851.1139241567/anca.
Content-Type: message/rfc822
by anca. (8.13.3/8.13.3) id k16FxRvw002851
for root; Mon, 6 Feb 2006 16:59:27 +0100 (CET)
Date: Mon, 6 Feb 2006 16:59:27 +0100 (CET)
From: Charlie Root <root>
Message-Id: <200602061559.k16FxRvw002851@anca.>
To: root
Subject: test
This is a test!
--k16FxRvx002851.1139241567/anca.--
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
I have tried reading about the issue on the 'net. And honestly, I
don't understand most of the answers. I have run "sendmail -bt -d8.8"
and then "/map host localhost", which I believe gives a hint at the
problem. It's trying to look up localhost.student.uu.se on the DNS. The
output follows:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> /map host localhost
map_lookup: host (localhost) dns_getcanonname(localhost, trymx=3D1)
dns_getcanonname: trying localhost.student.uu.se (AAAA)
;; res_nquerydomain(localhost, student.uu.se, 1, 28)
;; res_query(localhost.student.uu.se, 1, 28)
;; res_nmkquery(QUERY, localhost.student.uu.se, IN, AAAA)
;; res_send()
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52177
;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; localhost.student.uu.se, type =3D AAAA, class =3D IN
;; Querying server (# 1) address =3D 130.238.4.133
;; new DG socket
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 52177
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; localhost.student.uu.se, type =3D AAAA, class =3D IN
student.uu.se. 30M IN SOA dns1.uu.se. Domainmaster.uu.se. (=
2006020601 ; serial
1H ; refresh
10M ; retry
4w2d ; expiry
30M ) ; minimum
;; rcode =3D (NXDOMAIN), counts =3D an:0 ns:1 ar:0
NO: errno=3D19, h_errno=3D1
no match (68)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
My /etc/hosts contains:
::1 localhost localhost.
127.0.0.1 localhost localhost.
130.243.238.202 anca anca.
PLEASE help me. This has been bothering me for months. What do I need
to do to be able to hard code my host name and still be able to use
sendmail for receiving information about cronjobs?
--=20
Kind Regards,
Jan Danielsson
Te audire non possum. Musa sapientum fixa est in aure.
--------------enig51981DB2F6D1411E6F70833B
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
iD8DBQFD53Tl8wBCTJQ8HEIRAi/kAKDEkDZa2X6dgggm/k7hqRi6vWnomQCfb/Jt
LDLoCUCKt/fbvmMQUfX/6vo=
=hB2w
-----END PGP SIGNATURE-----
--------------enig51981DB2F6D1411E6F70833B--