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


The following commit(s) were added to refs/heads/master by this push:
     new 2200e5b  JAMES-2754 Authenticate SMTP transaction in 
DeploymentValidation
2200e5b is described below

commit 2200e5b2f1728a52cf05b62f303b6b2e2ef73927
Author: Benoit Tellier <[email protected]>
AuthorDate: Mon Apr 5 18:46:27 2021 +0700

    JAMES-2754 Authenticate SMTP transaction in DeploymentValidation
    
    Otherwise it get rejected by the server as an unauthenticated
    remote third part is claiming a local identity...
---
 .../james/mpt/imapmailbox/external/james/DeploymentValidation.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/mpt/impl/imap-mailbox/external-james/src/test/java/org/apache/james/mpt/imapmailbox/external/james/DeploymentValidation.java
 
b/mpt/impl/imap-mailbox/external-james/src/test/java/org/apache/james/mpt/imapmailbox/external/james/DeploymentValidation.java
index 935181b..36f2a52 100644
--- 
a/mpt/impl/imap-mailbox/external-james/src/test/java/org/apache/james/mpt/imapmailbox/external/james/DeploymentValidation.java
+++ 
b/mpt/impl/imap-mailbox/external-james/src/test/java/org/apache/james/mpt/imapmailbox/external/james/DeploymentValidation.java
@@ -90,7 +90,9 @@ public abstract class DeploymentValidation {
     @Test
     public void validateDeploymentWithMailsFromSmtp() throws Exception {
         SMTPMessageSender smtpMessageSender = new 
SMTPMessageSender("another-domain");
-        smtpSystem.connect(smtpMessageSender).sendMessage("test@" + DOMAIN, 
USER_ADDRESS);
+        smtpSystem.connect(smtpMessageSender)
+            .authenticate(USER_ADDRESS, PASSWORD)
+            .sendMessage(USER_ADDRESS, USER_ADDRESS);
         imapClient.connect(getConfiguration().getAddress(), 
getConfiguration().getImapPort().getValue());
         imapClient.login(USER_ADDRESS, PASSWORD);
         awaitAtMostTenSeconds.until(this::checkMailDelivery);

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

Reply via email to