>Oddly enough...I have a server with the MX record pointing to
>mybellybutton.com in DNS and listed as mail.mybellybutton.com in the iMail
>server as the domain name. While it shows mail.mybellybutton.com in the web
>interface, I get mails sent to [EMAIL PROTECTED] just fine.
Frank,
The sending mail server (SMTP client) uses its local rsolver (DNS client)
to query its DNS (DNS server) which tries to find a match for the "RCPT
TO:" domain. DNS server finds that it has an MX record, then it returns the
FQHN (fully qualified host name) pointed at by the MX record. Then the
resolver (DNS client) queries for the A record of the MX's FQHN.
Then SMTP client (the sending mail host, the Mail Transfer Agent, MTA)
contacts that ip address looking for an SMTP server. Imail is there. ie,
the whole DNS gymnastics spits out just the ip address of the Imail
machine, period. the name of the domain doesn't matter.
During the SMTP session, Imail will see the "RCPT TO:" and lookups the
@domain.com in Imail's local domains, AND in the NT hosts file as a
"relayed for address". Imail needs to find both domain.com and, just in
case, mail.domain.com.
The point is that it's not necessary to have
$ORIGIN AnyVirtDomain.com.
@ MX 10 mail.AnyVirtDomain.com.
If you have lots of virtual domains, they all can be set up identically as:
$ORIGIN AnyVirtDomain.com.
@ MX 10 mail.defaultdomain.com.
because the only info that matters to mail devliery is the IP ADDRESSS of
Imail to which the sending SMTP client is to delivier AnyVirtDomain.com's
mail to.
so what? well, you can set up new virtual domain in you DNS with the
$INCLUDE directive to greatly simplify and remove erros from adding domains:
;zone file: db.NewVirtDomain.com
;
$TTL 86400
$ORIGIN NewVirtDomain.com.
@ SOA AuthNS.ISPdomain.com adminNS.ISPdomain.com (
NewVirtualDomainSN
etc
etc
)
$INCLUDE db.CommonInfrastructure
and your new db.NewVirtdomain.com file is finished where all you have to do
is change "NewVirtDomain.com" to the name of the specific domain.
.. where db.CommonInfrastructue includes all these common Resource Reccords:
@ NS ns1.ISPdomain.com.
@ NS ns2.ISPdomain.com.
@ MX 10 mail.ISPdomain.com.
@ MX 20 mail.ISPdomain.com.
@ MX 30 mail.offsitedomain.com.
mail MX 10 mail.ISPdomain.com.
mail MX 20 mail.ISPdomain.com.
mail MX 30 mail.offsitedomain.com.
; ip.ad.re.ss for Big Virtual HTTP/FTP server (ftp for HTTP site maintenance)
@ A ip.ad.re.ss
www A ip.ad.re.ss
ftp A ip.ad.re.ss
;end of db.CommonInfrastrure
Len
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.