Author Topic: multi domain virtual domain solution  (Read 5741 times)

Offline Rupat

  • Newbie
  • *
  • Posts: 1
multi domain virtual domain solution
« on: October 07, 2010, 04:00:26 AM »
Hello !

I have the following setup

klaus@domain1.de
elfriede@domain1.de
siegfried@domain2.de
luschie@domain2.de

i also hav one address for webinterface with an ssl zertifikate. so i have no need to buy many zerts for each domain. So i want that siegfried can login with "siegfried" and his password on the common webmail interface. (https://mail.maindomain.de)

So i wrote a plugin that do the following:

check if a user exists that have siegfried before the '@'
    if only one is found his complete username (siegfried.domain2.de) is passed to the authentification

if more than one is found the login is canceled and he need to authenticate with siegfried.domain2.de

if non is found the given username is passed and of course this will later fail

siegfried can now login with:
siegfried or siegfried@domain2.de or siegfried.domain2.de


Ok a problem is when equal usernames on different domains exists. but this is not often.

but i think it is a good solution. and there is also no security hole.


If someone is interested in i can post plugin here. (its based on vlogin)