It is possible.
You need to assign a single IP for each virtual domain, then patch the
authentication backend you are using to do the mapping. I did it for userdb
and it works fine.
Each vdomain user is told to configure their mail client with
mail.vdomain-x.com and the login providing their user name, without the
If you are interested, I can send you my patches to userdb/userdb.c and
Randy Lewis (Kenneth R. Lewis) escribió:
Has anyone implemented I.P. based multi-domains.
Very specifically, I want the notion of DEFAULT_DOMAIN (as optionally
defined in etc/authmysqlrc) to be determined from the I.P. address
locally as one of many aliased I.P. addresses.
If I have 10 aliased I.P. address on a machine, each DNS mapped
to names like: mail.someplace.com
... I would like authentication by a user through one of those
aliased I.P. addresses to be able to just authenticate
as 'bob' and if he is listed in one of those domains (on the
MySQL user database for that domain) then his auththentication
will succeed due to the DEFAULT_DOMAIN getting set to his
Let me know if this is being done somewhere. I'd like to
use that approach for multiple domains here.