About DNS setting ( pop3 and smtp )

Bob Vance bobvance at alumni.caltech.edu
Tue Mar 6 18:36:18 UTC 2001


Where is your "host1" A record in the db.test1.com file ?


>@ IN SOA test1.com. root.test1.com. (

Here, "test1.com." is the MNAME for this zone and is where dynamic
updates would
be sent.  But, there is no A record for it.
While not required (unless you do dynamic updates), you should probably
also have:

@ IN A 192.168.100.1

Note that this will also allow web browsing to

    http://test1.com
as well as
    http://www.test1.com
:)

It's more typical to have the MNAME point to a hostname, though.  Like:

@ IN SOA ns.test1.com. root.test1.com. (

or, in your case,

@ IN SOA host1.test1.com. root.test1.com. (


The SMTP "server" is also incoming, as far as this host is concerned :)
(outgoing, as far as a PC mail client is concerned).
An MX record tells mailers where to send mail *(in)to* to get e-mail to
a
domain/host name -- in your case, "pop3", when sending to
"... at test1.com" .

Typically, a PC mail client does not look for the MX record, though.
Normally, they rely on an SMTP server to relay e-mail for them.
These relays should use the MX record.
So, in test1.com, only other mail relays or more sophisticated mail
clients
(like a Unix box, using 'sendmail') would look for the MX record.
However, relays *outside* your domain would use the MX record in order
to find
out that they should send this mail to "pop3.test1.com" --->
192.168.100.1


So, a PC client in test1.com presumably has his configuration set such
that
    his   SMTP server is  "smtp"
and his   POP3 server is  "pop3"

To read mail, the PC "POP"s "pop3", where, hopefully, mail has been
deposited
for it.
To send mail, the PC will connect via SMTP to "smtp" and rely on "smtp"
to get
the mail on its way to the ultimate destination.


You don't need the MX record in db.192.168.100 , since no one will be
sending mail to user at 100.168.192.in-addr.arpa.  :)


-------------------------------------------------
Tks        | <mailto:BVance at sbm.com>
BV         | <mailto:BobVance at alumni.caltech.edu>
Sr. Technical Consultant,  SBM, A Gates/Arrow Co.
Vox 770-623-3430           11455 Lakefield Dr.
Fax 770-623-3429           Duluth, GA 30097-1511
=================================================

From: Edward <edward at macau.ctm.net>

Hello,

There is only one computer machine , so only one IP address , now I want
to set pop3 server ( incoming ) and smtp server ( outgoing ) , so these
are my setting of DNS :

---cut--->
db.test1.com :

@ IN SOA test1.com. root.test1.com. (
                                      1997022701 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
@ IN NS host1.test1.com.
@ IN MX 3 pop3.test1.com.
www IN A 192.168.100.1
pop3 IN A 192.168.100.1
ftp IN A 192.168.100.1
smtp IN A 192.168.100.1


db.192.168.100 :

@ IN SOA test1.com. root.test1.com. (
                                      1997022701 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
@ IN NS host1.test1.com.
@ IN MX 3 pop3.test1.com.
1 IN PTR www.test1.com.
1 IN PTR pop3.test1.com.
1 IN PTR smtp.test1.com.
1 IN PTR ftp.test1.com.

---cut--->

Pl : Ip address is 192.168.100.1 , domain_name is test1.com
Thank for your help !

Edward.





More information about the bind-users mailing list