Visibility Incorrect
This troubleshooting article applies to a situation when incorrect filtering is applied when searching. The result of this is that either no, too few or too many search results than expected are returned. Possible resolutions are discussed below.
Normal Users Can See All Emails!
There are two likely possibilities:
2) Ill-Defined Role View Filter: The view filter on the User role is empty or incorrect. The User role defined in Configuration->Roles should have a role view filter set to "anyaddress:%email%" This value will restrict the role to showing emails associated with the logged in user. If it is empty or incorrectly specified, then the wrong results can show.
Ill-Defined Role Assignment
A role assignment must be created for end-users in Configuration->Logins. 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.
Ill-Defined Role View Filter
Each role has a View Filter that defines what the user can see. Common view filter values are listed below:
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 MailArchiva could not obtain the email addresses from the email attribute field. Double check the accuracy of the mail attribute and mail value.
Found this information useful? Visit mailarchiva.com to learn more about MailArchiva.