I'm using Red Hat Linux 6.1 for my virtual web hosts (using one ip for the vhosts) and Imail Server 5.05 on a
separate NT box for the mail server.  How do I use Imail server to configure virtual e-mail hosts based on
the web hosts on the Linux box? 

For ANYdomain, the zone file (I assume a Linux guy runs BIND 8.2.2 p5) would look like this:

;file db.anyhost.com
$TTL 86400
$ORIGIN anyhost.com
@      SOA etc etc
;
@      NS     ns1.ISPdomain.com
@      NS     ns2.ISPdomain.com
;
@      MX     10 imailbox.ISPdomain.com
;
@      A      ip.ad.re.ss           ;  of linux box for web server
www    A      ip.ad.re.ss           ;  of linux box for web server
ftp    A      ip.ad.re.ss           ;  of linux box for client access to his htdoc's.

Since all domains share all the above records 'cept the SOA, you could use $INCLUDE  db.template for all the zone files:

;file db.anyhost.com
$TTL 86400
$ORIGIN anyhost.com
@      SOA etc etc
;
$INCLUDE db.template

where db.template.com contains all the common, repeating records:

@      NS     ns1.ISPdomain.com
@      NS     ns2.ISPdomain.com
;
@      MX     10 imailbox.ISPdomain.com
@      A      ip.ad.re.ss           ;  of linux box for linux box
www    A      ip.ad.re.ss           ;  of linux box for linux box
ftp    A      ip.ad.re.ss           ;  of linux box for client's access to his htdoc's.

Then in Imail, for every domain on the linux box, define a virtual mail host of "anyhost.com" and with mail host alias of "mail.anyhost.com".

Len

Len
http://BIND8NT.MEIway.com: ISC BIND 8 installable binary for NT4
http://IMGate.MEIway.com:  Build free, hi-perf, anti-spam mail gateways

Reply via email to