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/06 03:26:25 UTC
[james-project] branch master updated: JAMES-2754 Authenticate SMTP
transaction in DeploymentValidation
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 <bt...@linagora.com>
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: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org