Hosting/Email account management

I have two physical servers (soon to be three), running Virtualmin. (debian.sapphire-web.com & hx202.sapphiresolutionsltd.com - soon to add hx201.sapphiresolutionsltd.com and switch debian.sapphire-web.com to hx200.sapphiresolutionsltd.com)

Cloudmin will be installed on the hx200.sapphiresolutionsltd.com (currently testing it on the current hardware configuration which will be used on, but under the host name of debian.sapphire-web.com).

I want to force my clients to access their account and manage their web sites, by logging in via a log-in form on my company web site (to be hosted on hx200.sapphiresolutionsltd.com). However these clients may have accounts on either of three systems.

I would also like there to be a way for clients to create a hosting account by filling out a web form and then logging in via a log-in form on my company web site (to be hosted on hx200.sapphiresolutionsltd.com). However these clients may have accounts on either of three systems.

I'm sure your Virtualmin/Cloudmin system can facilitate this, but I'm not sure how to make it happen.

I also want to force my clients to log in to web mail via a log-in form on my company web site (to be hosted on hx200.sapphiresolutionsltd.com). However these clients may have accounts on either of three systems.

Status: 
Active

Comments

I'm passing this along to Jamie for further comment... however, he's in Australia now, so there may be a delay in his response.

However, here's some thoughts in the meantime --

What you're looking to do is actually fairly difficult, it may not be possible to do it as you asked.

Here's some thoughts on how to tackle some of your questions --

I would also like there to be a way for clients to create a hosting account by filling out a web form and then logging in via a log-in form on my company web site (to be hosted on hx200.sapphiresolutionsltd.com). However these clients may have accounts on either of three systems.

One of the things you may want to look into is the WHMCS application, provided by whmcs.com. It has the ability to provision new hosting accounts across any number of Virtualmin servers. It uses the Virtualmin API to accomplish that. Using it, you could have a web form where a user can sign up for a web hosting account, and it can setup the account on one of your three servers.

I want to force my clients to access their account and manage their web sites, by logging in via a log-in form on my company web site (to be hosted on hx200.sapphiresolutionsltd.com)

I don't know of a good way to make that work as such.

However, remember that by default, Virtualmin sets up a redirect for every domain, so that going to "admin.customer_domain.tld" redirects to the Virtualmin login page on their particular server. You're able to tweak where that redirect goes by going into System Settings -> Server Templates -> Default -> Apache Website, and setting "Redirect admin.domain to Virtualmin" to your desired URL.

I also want to force my clients to log in to web mail via a log-in form on my company web site

This is similar to the "admin.domain.tld" redirect... you can setup a "webmail.domain.tld" redirect.

I suspect that with those redirects, you'll have more luck redirecting to the Virtualmin and Usermin login forms rather than custom screens... and you can upload your own logo onto those login forms.

So are you looking for a way to have a single login form that redirects users to the correct Virtualmin instance based on which system their domain / account is on? Because I have actually already developed a module that does exactly that ..

So are you looking for a way to have a single login form that redirects users to the correct Virtualmin instance based on which system their domain / account is on? Because I have actually already developed a module that does exactly that ..

Yes Jamie, I don't really want my clients going to port 10000 or 20000 on their own domain to access their accounts. In fact, I want to block that ability altogether. I want clients to be forced to use my company web site to access their accounts (if need specific sub-domains to get this done, fine!).

But this is only about 1/3 of what I'm looking for. andreychek posted some interesting follow up which I haven't looked into yet, but...

I want people who hit my web site to be able to sign up for a web hosting account, access their account and check their email, all without leaving my company pages.

With my company web site being found at http://www.sapphiresolutionsltd.com/ I understand that I may have to set up separate sub-domains for this to happen.

I could set up:

https://signup.sapphiresolutionsltd.com/ for new customers to sign up.

and...

https://myacct.sapphiresolutionsltd.com/ for current customers to log in to their hosting profile.

and...

https://webmail.sapphiresolutionsltd.com/ for current customers to check their email.

This all kind of leads in to the other topic I had asked about at: https://www.virtualmin.com/node/15180

I would like to put all these sub-domains on one Virtualmin server with the main domain and have it all covered by one SSL Certificate.

Ok, in that case you would either need to write your own PHP apps that call the Virtualmin / Cloudmin API, or see if some other package like WHMCS can integrate with Virtualmin to provide this functionality ..

So are you looking for a way to have a single login form that redirects users to the correct Virtualmin instance based on which system their domain / account is on? Because I have actually already developed a module that does exactly that ..

How does the module you refer to here work?

Yes, the login redirector module works fine .. it is designed for user with Cloudmin, which already knows what domains and usernames exist on each system that it manages, and so can do the redirect properly.

I understand it works as a redirector.

Where do I get it to try?

I can create a package for it .. which OS are you running your Cloudmin master system on?

I will email you the module file ..

I'll be looking for it - Thanks!

I sent the email already .. let me know if you got it OK, and if the module works.