Эта статья применима к тем ситуациям, когда при проведении поиска используется неверный фильтр. Из-за этого в результатах поиска может оказаться слишком много, слишком мало или вообще никаких писем вопреки вашим ожиданиям. Возможные способы разрешения этой проблемы приведены ниже:
Неверно назначена роль
Пользователям должна быть назначена роль во вкладке Настрока -> Авторизация. При назначении новой роли, кликните по When creating a new role assignment, click the Lookup button, and select an LDAP attribute that all users will match. Make sure the User role is assigned.
Assigned Role Does Not Have Precedence
If a user is assigned to a custom role, make sure that the role appears before other potential matching roles. At the time of user login, when role matching is applied, the order of the roles is significant and can be modified in Configuration->Roles.
Incorrect Role View Filter
Each role has a View Filter that defines what the user can see. Common view filter values are listed below:
View Filter Value | Decription |
---|---|
anyaddress:%email% | Users see only emails corresponding with their email addresses (obtained from the LDAP) |
anyaddress:%domain% | Users see only emails with their cofnidomains |
[leave empty] | Users see all emails |
anyaddress:ABCDEFG | Users see no emails |
Incorrect Email Attribute and Value
If using Microsoft Exchange, the following email attribute and value's must be set in Configuration->Logins:
Email value: SMTP:(.*)
Mail servers other than MS Exchange use attribute such as "mail". In This case, the email attribute and value's in Configuration->Logins will be as follows:
Email value: (.*)
- Temporarily switch off archiving
- Delete the debug.log in Configuration->Logs
- Logout and login as a normal user
- In the debug.log file, MailArchiva will output all the LDAP attributes that it finds. You should see:
Ensure that the mail or proxyAddresses LDAP attribute is visible in the attribute list:
2013-06-05 13:02:22.409 DEBUG - getLDAPEmailAddresses(): analyzing email attribute {attribute='mail'}
2013-06-05 13:02:22.409 DEBUG - attribute:userParameters:m d PCtxCfgPresent551e0bb0CtxCfgFlags100102890CtxShadow01000000*CtxMinEncryptionLevel01
2013-06-05 13:02:22.409 DEBUG - attribute:whenCreated:20011003202117.0Z
If you see:
-06-05 13:02:22.986 WARN - Not all search results may be shown. No email addresses could be obtained from AD/LDAP. Correct the mail attribute or mail value fields in Logins
..this means that Архива could not obtain the email addresses from the email attribute field. Double check the accuracy of the mail attribute and mail value.