~control/virtualdomains
From Qmail-LDAP Wiki
You don't need to use this control file to make the virtualdomains work in qmail-ldap.
This is a very condensed view on what's the role of the virtualdomains control file in qmail-ldap:
1. qmail-smtpd accepts connection
- Is relayclient set?
- qmail-smtpd could perform further checks to accept or reject the message. Let's say the message was accepted and got queued.
2. qmail-send takes a look at it
- Is the recipients domain in virtualdomains or locals (doesn't matter with qmail-ldap)?
- Yes -> feed it to qmail-lspawn for local delivery
- No -> feed it to qmail-rspawn for remote delivery (relaying as usual)
3. qmail-lspawn gets it for local delivery
- Is the recipients full email address found in the LDAP directory?
- Yes -> check if all needed attributes are present
- Yes -> deliver it to the maildir
- No -> bounce
- No -> try a standard qmail (UNIX user or ~users/assign) delivery
- Yes -> check if all needed attributes are present
