novice problems with bind named and sendmail
Harry Putnam
reader at newsguy.com
Sat Feb 4 00:15:29 UTC 2006
"Jose.Dr.G at gmail.com" <Jose.Dr.G at gmail.com> writes:
> your telling the sendmail that this 'localhost' is the machine's
> name. Try getting rid of this entry...
>
> localhost.local.net0. IN CNAME chub.local.net0.
Thanks .. trying that I see no change in what sendmail thinks its
doing.
I've done this: Altered the zone file as shown at the end.
Restarted named
Restarted sendmail
sent mail with date |mailx -v -s test reader
some of the smtp output shows this:
[...]snip
>>> MAIL From:<root at localhost.local.net0> SIZE=55
>>> AUTH=root at localhost.local.net0
250 2.1.0 <root at localhost.local.net0>... Sender ok
>>> RCPT To:<reader at localhost.local.net0>
>>> DATA
250 2.1.5 <reader at localhost.local.net0>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 <reader at localhost.local.net0>... Connecting to local...
050 <reader at localhost.local.net0>... Sent
[...]snip
Snippet from sendmail log output:
Feb 3 18:08:24 localhost sm-mta[23566]: k1408O7a023566:
from=<root at localhost.local.net0>, size=357, class=0, nrcpts=1,
msgid=<200602040008.k1408OM8023565 at localhost.local.net0>,
proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Feb 3 18:08:24 localhost sm-mta[23566]: k1408O7a023566:
to=<reader at localhost.local.net0>,
ctladdr=<root at localhost.local.net0> (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=local, pri=30357, dsn=2.0.0, stat=Sent
Still this localhosts name is not coming thru...
> Try browsing other people's zone files to see examples of this in
> action
Do you mean finding them on this forum or is there a repository
somewhere of examples?
zone file used for above ouput:
========================================
$TTL 1D
local.net0. IN SOA chub.local.net0. hostmaster (
200405191 ; serial
8H ; refresh
4H ; retry
4W ; expire
1D ) ; minimum
; define the authoritative name server
local.net0. IN NS chub.local.net0.
; [HP 01/30/06 09:56 The 10 indicates priority [lower is higher]]
MX 10 chub.local.net0
; define domain functions with CNAMEs
;[HP 01/29/06 08:29 ]depot CNAME stallman
;[HP 01/29/06 08:29 ]www CNAME cerf
;localhost.local.net0. CNAME chub.local.net0.
;tic.local.net0. CNAME chub.local.net0.
smtp.local.net0. CNAME chub.local.net0.
; just in case someone asks for localhost.local.net0
localhost.local.net0. A 127.0.0.1
; our hostnames, in alphabetical order
ansil.local.net0. A 192.168.0.21
bjp.local.net0. A 192.168.0.16
chub.local.net0. A 192.168.0.4
fw.local.net0. A 192.168.0.20
harvey.local.net0. A 192.168.0.22
mob2.local.net0. A 192.168.0.3
More information about the bind-users
mailing list