quantranhong1999 commented on code in PR #1743:
URL: https://github.com/apache/james-project/pull/1743#discussion_r1342474125
##########
protocols/imap/src/main/java/org/apache/james/imap/processor/AbstractAuthProcessor.java:
##########
@@ -73,6 +73,7 @@ public void configure(ImapConfiguration imapConfiguration) {
protected void doAuth(AuthenticationAttempt authenticationAttempt,
ImapSession session, ImapRequest request, Responder responder,
HumanReadableText failed) {
Preconditions.checkArgument(!authenticationAttempt.isDelegation());
+ LOGGER.warn("Failed IMAP login from: 172.12.1.4");
Review Comment:
Likely need to propagate the remoteIP from Netty to `IMAPSession` then.
##########
server/apps/distributed-app/docker-compose-crowdsec.yml:
##########
@@ -0,0 +1,113 @@
+version: '3'
+
+services:
+
+ james:
+ depends_on:
+ cassandra:
+ condition: service_healthy
+ opensearch:
+ condition: service_started
+ rabbitmq:
+ condition: service_started
+ s3:
+ condition: service_started
+ pulsar:
+ condition: service_started
+ image: apache/james:distributed-latest
Review Comment:
James memory + CrowdSec should be more lightweight for a POC. Anyway not
important.
##########
server/apps/distributed-app/docker-compose-crowdsec.yml:
##########
@@ -0,0 +1,113 @@
+version: '3'
+
+services:
+
+ james:
+ depends_on:
+ cassandra:
+ condition: service_healthy
+ opensearch:
+ condition: service_started
+ rabbitmq:
+ condition: service_started
+ s3:
+ condition: service_started
+ pulsar:
+ condition: service_started
+ image: apache/james:distributed-latest
+ container_name: james
+ hostname: james.local
+ command:
+ - --generate-keystore
+ networks:
+ - james
+ ports:
+ - "80:80"
+ - "25:25"
+ - "110:110"
+ - "143:143"
+ - "465:465"
+ - "587:587"
+ - "993:993"
+ - "8000:8000"
+ volumes:
+ - ./sample-configuration/pulsar.properties:/root/conf/pulsar.properties
+ -
./sample-configuration/queue-pulsar.properties:/root/conf/queue.properties
+ - ./logs:/logs/
Review Comment:
Create a docker volume that is shared between James container and CrowdSec,
rather than volume to the host file system?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]