This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 0778d2b408a1623764665d4a839e856235e25bba
Author: Benoit TELLIER <[email protected]>
AuthorDate: Wed Jun 19 12:19:21 2024 +0200

    JAMES-4044 Antora documentation
---
 .../pages/distributed/configure/mailets.adoc       |  2 ++
 docs/modules/servers/partials/LDAPMatchers.adoc    | 41 ++++++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/docs/modules/servers/pages/distributed/configure/mailets.adoc 
b/docs/modules/servers/pages/distributed/configure/mailets.adoc
index 37e13f4c5b..1d7af110ab 100644
--- a/docs/modules/servers/pages/distributed/configure/mailets.adoc
+++ b/docs/modules/servers/pages/distributed/configure/mailets.adoc
@@ -42,6 +42,8 @@ include::partial$ICSSanitizer.adoc[]
 
 include::partial$LocalDelivery.adoc[]
 
+include::partial$LDAPMatchers.adoc[]
+
 include::partial$LogMessage.adoc[]
 
 include::partial$MailAttributesListToMimeHeaders.adoc[]
diff --git a/docs/modules/servers/partials/LDAPMatchers.adoc 
b/docs/modules/servers/partials/LDAPMatchers.adoc
new file mode 100644
index 0000000000..a202ba65ec
--- /dev/null
+++ b/docs/modules/servers/partials/LDAPMatchers.adoc
@@ -0,0 +1,41 @@
+= LDAP matchers for Apache James
+
+This project is an extension for Apache James that allows configuring 
conditions based on LDAP content within Apache 
+James mailetcontainer.
+
+Those include:
+
+ - LDAP conditions based on attributes of the recipients
+ - LDAP conditions based on attributes of the sender
+
+Support is planned for LDAP groups both for sender and recipients.
+
+== Set up
+
+Build this project. For the root of the repository:
+
+....bash
+mvn clean install -DskipTests --am --pl :james-server-mailet-ldap
+....
+
+Then copy the JAR located in `/target` into the `extensions-jars` folder of 
your Apache James installation.
+
+== Configuration
+
+The LDAP settings are reused from the `usersrepository.xml` configuration file.
+
+Then LDAP matchers can be configured within `mailetcontainer.xml`. For 
instance:
+
+....xml
+<mailet matcher="HasLDAPAttibute=description:blocked" class="Null">
+    
+</mailet>
+....
+
+or
+
+....xml
+<mailet matcher="SenderHasLDAPAttibute=description:blocked" class="Null">
+    
+</mailet>
+....


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to