You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2021/04/02 01:30:19 UTC

[james-project] 05/05: JAMES-3525 Trust unauthenticated local sender in authorized network

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

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

commit 2ed7f01d4753aff362312f0f93f7b8f7f3ac1095
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Wed Mar 31 11:19:03 2021 +0700

    JAMES-3525 Trust unauthenticated local sender in authorized network
---
 .../smtp/core/AbstractSenderAuthIdentifyVerificationRcptHook.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/protocols/smtp/src/main/java/org/apache/james/protocols/smtp/core/AbstractSenderAuthIdentifyVerificationRcptHook.java b/protocols/smtp/src/main/java/org/apache/james/protocols/smtp/core/AbstractSenderAuthIdentifyVerificationRcptHook.java
index 3cbad39..f93176c 100644
--- a/protocols/smtp/src/main/java/org/apache/james/protocols/smtp/core/AbstractSenderAuthIdentifyVerificationRcptHook.java
+++ b/protocols/smtp/src/main/java/org/apache/james/protocols/smtp/core/AbstractSenderAuthIdentifyVerificationRcptHook.java
@@ -63,7 +63,7 @@ public abstract class AbstractSenderAuthIdentifyVerificationRcptHook implements
             return HookResult.DECLINED;
         } else {
             // Validate that unauthenticated users do not use local addresses in MAIL FROM
-            if (belongsToLocalDomain(sender)) {
+            if (belongsToLocalDomain(sender) && !session.isRelayingAllowed()) {
                 return AUTH_REQUIRED;
             } else {
                 return HookResult.DECLINED;

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org