I am looking at a multi domain setup which will allow to user to enter his email and password. The internal IMAP & SMTP configuration will be picked directly from the domain name specific settings..
Example user's email id is
email@domain1.com
from the settings it will pick its:
IMAP Server: tls://imap.domain1.com
SMTP Server: tls://smtp.domain1.com
For another user:
email2@domain2.com
IMAP Server will be: tls://imap.domain2.com
SMTP Server will be: tls://abcjf.google.com
Is it possible? If yes how?
Thank You