I'll probably wait for GoCD Developers to respond on the SMTP log. AFAIK
there aren't any but there may be a flag to enable it.

Based on the stack trace you shared earlier, it looks like there was an
error with the credentials that was passed to GoCD.

javax.mail.AuthenticationFailedException: 451 4.3.2 Internal server error


Thanks,

On Thu, Aug 27, 2020 at 10:25 PM Jeroen Oortwijn <
[email protected]> wrote:

> I made a simple test application in C#:
> namespace SMTP_send_email_test
> {
>     class Program
>     {
>         static void Main(string[] args)
>         {
>             var mimeMessage = new MimeKit.MimeMessage();
>             mimeMessage.From.Add(new MimeKit.MailboxAddress("GoCD server",
> "gocd@***.**"));
>             mimeMessage.To.Add(new MimeKit.MailboxAddress("GoCD server",
> "gocd@***.**"));
>             mimeMessage.Subject = "Test message";
>             mimeMessage.Body = new MimeKit.TextPart() { Text = "This is a
> test!" };
>
>             using (var smtpClient = new MailKit.Net.Smtp.SmtpClient(new
> MailKit.ProtocolLogger("smtp.log")))
>             {
>                 smtpClient.Connect("mail.antagonist.nl", 465,
> MailKit.Security.SecureSocketOptions.SslOnConnect);
>                 smtpClient.Authenticate("gocd@***.**", "********");
>                 smtpClient.Send(mimeMessage);
>                 smtpClient.Disconnect(true);
>             }
>         }
>     }
> }
>
> And when run on the same PC as the GoCD server is running, it was able to
> send the mail (from smtp.log):
> Connected to smtps://mail.antagonist.nl:465/
> S: 220 smtp ESMTP ready
> C: EHLO [10.0.2.15]
> S: 250-smtp
> S: 250 AUTH PLAIN LOGIN
> C: AUTH PLAIN ****************
> S: 235 2.0.0 OK
> C: MAIL FROM:<gocd@***.**>
> S: 250 OK
> C: RCPT TO:<gocd@***.**>
> S: 250 Accepted
> C: DATA
> S: 354 Enter message, ending with "." on a line by itself
> C: From: GoCD server <gocd@***.**>
> C: Date: Thu, 27 Aug 2020 18:37:21 +0200
> C: Subject: Test message
> C: Message-Id: <SP9BR6GPIBU4.QRAK6FVSVTCN2@***.**>
> C: To: GoCD server <gocd@***.**>
> C: MIME-Version: 1.0
> C: Content-Type: text/plain; charset=utf-8
> C:
> C: This is a test!
> C: .
> S: 250 OK id=1kBKts-00B44l-6x
> C: QUIT
> S: 221 s188.webhostingserver.nl closing connection
>
> So it would be nice if I can see the SMTP log of the GOCD server, so I can
> further debug the issue.
>
> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/b398df0a-1372-435a-8e07-0fce9df130a0n%40googlegroups.com
> <https://groups.google.com/d/msgid/go-cd/b398df0a-1372-435a-8e07-0fce9df130a0n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CxYB2XnKGD4nVXZPMN_yLj_GqZnarTiJbgchJizSFOB9w%40mail.gmail.com.

Reply via email to