I forget the name of the log file (no longer on the gocd core team), but there's a wrapper output log or something.
- Ketan On Fri, Aug 28, 2020 at 4:03 PM Jeroen Oortwijn < [email protected]> wrote: > According to the FAQ (https://javaee.github.io/javamail/FAQ#debug), > setting this system property causes the debug information to be printed to > the console. > How do I then retrieve this information in case of the GoCD server, as > there isn't any console? > > - Jeroen > > On Friday, 28 August 2020 at 07:01:31 UTC+2 [email protected] wrote: > >> I don't believe there's a flag: but you may be able to set the system >> property >> <https://docs.gocd.org/current/advanced_usage/other_config_options.html> >> `mail.debug` to true. Other system mail specific system properties are >> documented in this page >> <https://docs.oracle.com/javaee/7/api/javax/mail/package-summary.html>. >> >> - Ketan >> >> >> >> On Fri, Aug 28, 2020 at 9:12 AM 'Ashwanth Kumar' via go-cd < >> [email protected]> wrote: >> >>> 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 >>> <https://groups.google.com/d/msgid/go-cd/CAD9m7CxYB2XnKGD4nVXZPMN_yLj_GqZnarTiJbgchJizSFOB9w%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > 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/19516af7-56ff-481b-9842-b7c796c6629cn%40googlegroups.com > <https://groups.google.com/d/msgid/go-cd/19516af7-56ff-481b-9842-b7c796c6629cn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAMUPJd6ZXQsib7OqC_ExXoGGcnsG9q944V6vk8%2BPYfjtF5M%3DcQ%40mail.gmail.com.
