[nmglug] Apache2-e-mail virtual hosts
a_kaluta
akaluta at zianet.com
Tue Jun 21 18:13:51 PDT 2005
Marsden, et.al;
This may be of interest to you.
"Offering virtual mail services"
"To provide virtual mail service for the new virtual hosts you add,you have
to modify the "newdomain.zone" file and add one or more appropriate MX
record(s). For example,say that your mail server is "mail.domain.com" and it
is configured to accept mail for "newdomain.com". In such a case,you can
modify the /var/named/newdomain.zone to be altered as follows:
@ IN SOA
mewdomain.com.( hostmaster.newdomain.com
200011201002 ; Serial YYYYMMDDXXX
7200 ; refresh
3600 ; (1 hour) retry
1728000 ; ( 20 days) expire
3600) ; (1 hr) minimum ttl
; Name Servers
IN NS ns1.domain.com.
IN NS ns2.domain.com.
IN MX 10 mail.domain.com.
; CNAME for name-based virtual hosting
www.mewdomain.com IN CNAME www.mewdomain.com
Note that if you have multiple mail servers you can add them using a simple
priority scheme.For example,say that you want all mail for "newdomain.com"
to go to mail.domain.com and if this mail server is unavailable,you want to
use "bkupmail.domain.com. " You can simply add a second MX record as shown
here:
IN MX 10 mail.domain.com
IN MX 20 bkupmail.domain.com
The lower number in front of "mail.domain.com " makes it a higher priority
mail server tha bkupmail.domain.com
Make sure you have configured your mail server software to support virtual
mail domains."
Hope the info. is relevent, stumbled across it in my notes.
Anthony
Have any ideas getting ScriptAlias and Alias to bring up files outside
Apache2?
More information about the nmglug
mailing list