create example.com & mail.example.com at once

9 posts / 0 new
Last post
#1 Sun, 07/06/2008 - 15:43
zulkhaery

create example.com & mail.example.com at once

Help me please:

I want 2 apache virtual host created at once: example.com & mail.example.com.

I try using server template. No problem for dns, i can point mail.example.com to my ip, but server template for apache virtual host only allow one virtual host.

So, how to create example.com and mail.example.com all at once ?

Thanks,

Sun, 06/07/2009 - 07:26
Joe
Joe's picture

A mail DNS record is already created (for use for SMTP and POP3/IMAP, generally, though it's not required, and some folks prefer to use a single domain for all POP3S/IMAPS connections so they can use a single certificate).

So, if you want mail to simply alias to the www.example.com/example.com site, you could just add this line to the Apache website section of the Server Template:

ServerAlias mail.${DOM}

For existing servers, you'd need to add the alias in the Services:Configure Website:Networking and Addresses page in the field labeled "Alternate virtual server names".

You can't use the usual "Create Alias" form, because there already exists a mail.example.com name in the DNS zone (and other places). Other auto-generated addresses are ftp, m, and www.

--

Check out the forum guidelines!

Sun, 07/06/2008 - 15:51
zulkhaery

wow, very quick response..
thx.

Sun, 07/06/2008 - 16:02
zulkhaery

Sorry Joe, I can't speak english correctly,

I mean like this:
- i have squirrelmail on /usr/share/squirrelmail.
- url for access this webmail: mail.example.com

I think,more easier if i can create example.com & mail.example.com at once using server templates.

<i>Note: for pop3/smtp i'm not using mail.example.com, its only for webmail.</i>

Sun, 06/07/2009 - 07:26
Joe
Joe's picture

A mail DNS record is already created (for use for SMTP and POP3/IMAP, generally, though it's not required, and some folks prefer to use a single domain for all POP3S/IMAPS connections so they can use a single certificate).

So, if you want mail to simply alias to the www.example.com/example.com site, you could just add this line to the Apache website section of the Server Template:

ServerAlias mail.${DOM}

For existing servers, you'd need to add the alias in the Services:Configure Website:Networking and Addresses page in the field labeled &quot;Alternate virtual server names&quot;.

You can't use the usual &quot;Create Alias&quot; form, because there already exists a mail.example.com name in the DNS zone (and other places). Other auto-generated addresses are ftp, m, and www.

--

Check out the forum guidelines!

Mon, 07/07/2008 - 04:40
ronald
ronald's picture

why not create webmail.example.com and install squirrelmail in there for users to log in?

Mon, 07/07/2008 - 12:27 (Reply to #6)
zulkhaery

i think, not easy to upgrade squirrelmail later if i have many clients.

Sun, 06/07/2009 - 07:26
Joe
Joe's picture

A mail DNS record is already created (for use for SMTP and POP3/IMAP, generally, though it's not required, and some folks prefer to use a single domain for all POP3S/IMAPS connections so they can use a single certificate).

So, if you want mail to simply alias to the www.example.com/example.com site, you could just add this line to the Apache website section of the Server Template:

ServerAlias mail.${DOM}

For existing servers, you'd need to add the alias in the Services:Configure Website:Networking and Addresses page in the field labeled &quot;Alternate virtual server names&quot;.

You can't use the usual &quot;Create Alias&quot; form, because there already exists a mail.example.com name in the DNS zone (and other places). Other auto-generated addresses are ftp, m, and www.

--

Check out the forum guidelines!

Mon, 07/07/2008 - 13:36
ronald
ronald's picture

it seems to me that upgrading a script to a newer version i.e updating should not be influenced by the number of accounts it holds.
Then again I am not familiar with squirrelmail.

Topic locked