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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
