I still wonder though, in which cases a "virtual server license" will be eaten. Unfortunately your answer is not be clear enough to me: e.g. what is with the subdomains pop3.domain1.com & smtp.domain1.com ? Will they eat two licenses or will they not? And how could virtualmin decide, if "those subdomains have different content" or if "the are merely aliases"? Perl is mighty, but that seems to be a challenging task. ; - )
No, those (pop.domain.tld, smtp.domain.tld, etc.) generally won’t have separate content and do not count against your total. Unless, of course, you create a sub-server on one of those domains to put different content in. They’re just names (not domains).
Virtualmin knows, quite simply, because it knows when it is being told to create a separate content directory for the new domain. I believe we could be more clear in this discussion by not talking about domain names at all in the conversation–let’s instead talk about “sub-servers”. A sub-server may happen to have the same second level domain as an existing server, but if they have separate content homes, then they are different “servers” as far as Virtualmin, Apache, BIND, Postfix, etc. is concerned. Nothing complicated about it, really, if you forget about thinking of them as “sub-domains” based on their name. In BIND, Apache, Postfix, etc., a sub-server looks different than a mere new name (alias or domain name) pointing at an existing site.
Domain names are just names, and are not at all related to how the number of “domains” are counted (i.e. a name just points to the domain…it is not the domain itself, much like the name Joe just points to the person that is me, but it isn’t actually the person). Domain names are not domains. A domain has a content directory, mail accounts, databases, and as many domain names as you want to assign to it. Sub-domain names are also merely names.
To put it another way, sub-servers that you create count against the total. Aliases (or domain names of any sort pointing to existing servers/domains), that you create or that Virtualmin creates, do not count against the total.
Frankly spoken i would be much more convinced, if your license would only limit the number of the second level domains, like domain1.com, domain2.com, etc, rather than limit the number of third level domains. That would be making life a lot of easier, clearer and much more calculable at least for me.
Virtualmin keeps up with it for you. There’s really no need to make it seem so complicated. No need to count at all.
Just look on the System Information page, in the Virtualmin Information section (click on the title or plus sign to open it out, as it is collapsed by default). The “Virtual servers” number is the number of servers that you have created. When the license management tools get better, it’ll even turn red when you go over the number you’ve purchased, and provide a link for upgrading.
And, as I mentioned, we’re not enforcing anything until we have good tools here at Virtualmin.com for managing your domain usage and the ability to upgrade to new domain limits easily.
I hope this clarifies things a bit and eases your mind on the license issue. We knew from day one that the single most common complaint about our competitors was how ornery the licensing terms and conditions of their software was…we’re trying very very hard to make things easy, and never get in the way of folks using the software in the manner they’ve paid for.