Guys... I have changed the indexes and the time needed to send email reducing about 2 seconds. Below is the indexes for the ldap server. Is it correct?
# Indices to maintain index objectClass eq index cn,uid pres,sub,eq index mail,accountStatus eq index mailHost,mailMessageStore sub,eq index mailQuotaSize eq index userPassword eq index uidNumber eq index gidNumber eq index memberUid eq index givenname eq index sambaSID eq index sambaPrimaryGroupSID eq index sambaDomainName eq index default sub When I send or reply emails, I try to watch the smtpd log with "tail -f /var/qmail/service/smtpd/log/main/current". I can be sure now that each time I enter the Send button (of the MUA), some sort of messages like these (within 1 or a half second) come out @40000000464d77462382a8fc qldap_set_option: set referrals successful @40000000464d774623ad6a4c qldap_bind: successful @40000000464d774623ca5c74 qldap_lookup: search for (&(objectClass=qmailUser)(uid=sato)) succeeded @40000000464d774623cbb04c qldap_get_attr(accountStatus): active @40000000464d774623cc6014 qldap_get_attr(userPassword): {SSHA}Mrtyu4cEC9jR2u3iB/Zd34fftVk+3Ti @40000000464d774623cd5dfc check_ldap: password compare was successful @40000000464d774623d66a64 qmail-smtpd 658: authentication success, user sato @40000000464d774623fd014c qmail-smtpd 658: mail from: [EMAIL PROTECTED] @40000000464d7746240398cc qmail-smtpd 658: rcpt to: [EMAIL PROTECTED] @40000000464d7746241f2394 qmail-smtpd 658: go ahead Then it stoped, as the progresive bar of the MUA running. After the send process done (after 5-6 seconds), messages below appear @40000000464d774c193e9fa4 qmail-smtpd 658: message queued: 1179481922 qp 660 size 549 bytes @40000000464d774c197a0e7c qmail-smtpd 658: quit, closing connection @40000000464d774c197caa74 tcpserver: end 658 status 0 @40000000464d774c197cba14 tcpserver: status: 0/40 By seeing this smtpd log, I know (correct me if I was wrong) that the problem is not the authentication to the LDAP server, but the effort qmail does to process emails. For your information, I also use simscan, clamd, and spamassassin to filter emails. Do you have any idea? Thank you in advance. Best regards, sato