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:31:10 UTC

[james-project] 04/04: 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 master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit ab83b6094bfe1a07f4399dd0ed937bf967a5caf5
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