Qmail-lspawn
From Qmail-LDAP Wiki
NAME
qmail-lspawn - schedule local deliveries
DESCRIPTION
qmail-lspawn was modified by qmail-ldap to support clustering and other features. See CLUSTERING SUPPORT bellow.
CLUSTERING SUPPORT
If ldapcluster is set to 1, the clustering support is enabled in qmail-ldap.
qmail-lspawn clustering support is depicted in the following scheme:
Clustering Scheme
(1)qmail-lspawn on server1 does the ldap lookup | v (2)is the account active? If yes go further else bounce | v (3)get the mailHost field, if there is such a field compare it with the ~control/me file. If they do not differ do everything as usual. Else forward the message with qmail-qmqpc qmail-qmqpc tries to contact the host from the mailHost filed | v (4)qmail-lspawn on server2 does the ldap lookup and is happy with the mailHost field (hopefully ;-) | v (5)now get all the other ldap entries and start at the end qmail-local. qmail-local does then all the forwarding and programdeliveryNotes:
- in (1), this lookup consists of an ldapsearch for an entry having the attribute LDAP_MAIL or LDAP_MAILALTERNATE matching the recipient address of the current message.
- in (2), the "is the account active?" is made by checking the value on LDAP_ISACTIVE attribute.
- in (3), The mailHost field actually is compared with me and ldapclusterhosts control files. If mailHost matches any FQDN listed in me or ldapclusterhosts it's assumed that the Maildir for that user is in the current machine.
CONTROL FILES
defaultquotacount, defaultquotasize, dirmaker, ldapbasedn, ldapcluster, ldapclusterhosts, ldapdefaultdotmode, ldapgid, ldaplocaldelivery, ldaplogin, ldapmessagestore, ldapobjectclass, ldappassword, ldapserver, ldaptimeout, ldapuid
ENVIRONMENT VARIABLES
LOGLEVEL
