-
Bug
-
Resolution: Cannot Reproduce
-
Critical
-
None
-
Email Extension plugin 2.69
Jenkins Version 2.235.1
-
Powered by SuggestiMate
Hi Team,
I using this plugin for sending email notification for developer,
I have configured this plugin with pipeline script.
By configuring email account with Gmail SMTP mail get passed and sent to receipten.
But we are not able to sent email from our official email account.
For your clarity.
we are using Yahoo small business account for our official domain.
Configuration used for Official email account.
SMTP Server : smtp.bizmail.yahoo.com
SMTP Port : 465
Use SSL : enabled
Username : xyz@company.com
Password : XXXXXXXX
I have also generated password for third party application to use in yahoo mail server with less secure option too.
Pipleine script
emailext attachLog: true, body: 'Help', compressLog: true, mimeType: 'text/html', subject: 'Testing', to: 'xyz@company.com'
[JENKINS-62771] Email Extension
Can you provide the whole build log? Also, it would be good if you could turn on debug mode in the global configuration for email-ext.
19:27:38 messageContentType = text/html; charset=UTF-8
19:27:38 Request made to attach build log
19:27:38 Request made to compress build log
19:27:38 Adding recipients from project recipient list
19:27:38 Analyzing: xyz@company.com
19:27:38 Looking for: xyz@company.com
19:27:38 starting at: 0
19:27:38 firstFoundIdx: 0
19:27:38 firstFoundIdx-substring: xyz@company.com
19:27:38 => found type: 0
19:27:38 Analyzing: xyz@company.com
19:27:38 Looking for: xyz@company.com
19:27:38 starting at: 0
19:27:38 firstFoundIdx: 0
19:27:38 firstFoundIdx-substring: xyz@company.com
19:27:38 => found type: 0
19:27:38 Analyzing: xyz@company.com
19:27:38 Looking for: xyz@company.com
19:27:38 starting at: 0
19:27:38 firstFoundIdx: 0
19:27:38 firstFoundIdx-substring: xyz@company.com
19:27:38 => found type: 0
19:27:38 Adding recipients from trigger recipient list
19:27:38 Checking 'xyz@company.com' against '@company.com' to see if they are allowed
19:27:38 Successfully created MimeMessage
19:27:38 Sending email to: xyz@company.com
19:27:49 Error sending to the following VALID addresses: xyz@company.com
19:27:49 SendFailedException message: 550 Request failed; Mailbox unavailable
Hi Alex,
Please find the below log for email sent successfully by configuring same settings with Gmail SMTP.
SMTP Details.
SMTP Server : smtp.gmail.com
SMTP Port : 465
Use SSL : enabled
Username : xyz@gmail.com
Password : XXXXXXXX
19:36:43 messageContentType = text/html; charset=UTF-8
19:36:43 Request made to attach build log
19:36:43 Request made to compress build log
19:36:43 Adding recipients from project recipient list
19:36:43 Analyzing: xyz@company.com
19:36:43 Looking for: xyz@company.com
19:36:43 starting at: 0
19:36:43 firstFoundIdx: 0
19:36:43 firstFoundIdx-substring: xyz@company.com
19:36:43 => found type: 0
19:36:43 Analyzing: xyz@company.com
19:36:43 Looking for: xyz@company.com
19:36:43 starting at: 0
19:36:43 firstFoundIdx: 0
19:36:43 firstFoundIdx-substring: xyz@company.com
19:36:43 => found type: 0
19:36:43 Analyzing: xyz@company.com
19:36:43 Looking for: xyz@company.com
19:36:43 starting at: 0
19:36:43 firstFoundIdx: 0
19:36:43 firstFoundIdx-substring: xyz@company.com
19:36:43 => found type: 0
19:36:43 Adding recipients from trigger recipient list
19:36:43 Checking 'xyz@company.com' against '@company.com' to see if they are allowed
19:36:43 Successfully created MimeMessage
19:36:43 Sending email to: xyz@company.com
I have also tried with fresh Jenkins installation with Extended email plugin too..
The 550 error is coming from Yahoo. You'll need to contact Yahoo support and find out why you are getting that 550 error.
From Yahoo Reply...
When facing Error 550 Mailbox Unavailable or any similar Error 5xx in your Yahoo Mail account, it is recommended to avoid sending email flagged with a 550 or other 5xx error code.
Error generally refers to the SMTP error codes in which a user’s outgoing emails are not delivered to the recipient. This problem generally occurs because:
1.Your email includes content which is restricted as per Yahoo policy.
2.Your SMTP connection was declined.
Please help me to fix this issue with your end.....
The plugin can't overcome the server sending this response. There is nothing that the plugin can do if the server responds with an error code from sending an email.
Hi Alex,
We are also using some other 3rd Party application to send email using our email account (PROS-Biometric Reader and so on)
its works fine with 3rd party application.
But still we are facing problem with Ext.Email plugin only
You are using the exact same configuration on those other applications? I have no Yahoo setup I can use at all to do any debug
Yes iam using same configuration for all 3rd party application integration.....
Please wait i will show you another issue with mailer plugin which is also related to this....
Hi Alex,
The above error was getting while I am trying to send Test Email from Configuration Page.
Which is also same as Extension Email plugin error (com.sun.mail.smtp.SMTPSenderFailedException: 550 Request failed; Mailbox unavailable).
But this Default Mailer Plugin works fine with using Pipeline script, and i am able to sent & receive official emails from this configuration.
script reference:-
mail bcc: '', body: "<h1>CI/CD Pipeline Report - Jenkins</h1><br>Release : </br><br>Sprint : </br><br>Stage : UAT</br><br>Report : Build Pipeline Report URL <a href='http://localhost:9999/job/${env.JOB_NAME}/${env.BUILD_NUMBER}/console'>Link</a></br><br>Log : ${BUILD_URL}/consoleFull</br><br>Logss : consoletext</br>", cc: '', charset: 'UTF-8', from: 'xyz@company.com', mimeType: 'text/html', replyTo: 'xyz@company.com', subject: "CI/CD Pipeline - Jenkins ${env.JOB_NAME} - Build #${env.BUILD_NUMBER} - ${currentBuild.currentResult}", to: 'abc@company.com'
Logs for Mailer Plugin:--
com.sun.mail.smtp.SMTPSenderFailedException: 550 Request failed; Mailbox unavailable
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1817)
Caused: com.sun.mail.smtp.SMTPSendFailedException: 550 Request failed; Mailbox unavailable
;
nested exception is:
com.sun.mail.smtp.SMTPSenderFailedException: 550 Request failed; Mailbox unavailable
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2374)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1808)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1285)
at javax.mail.Transport.send0(Transport.java:231)
at javax.mail.Transport.send(Transport.java:100)
at hudson.tasks.Mailer$DescriptorImpl.doSendTestMail(Mailer.java:713)
at java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)
at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:535)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:280)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:676)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:755)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
at jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:76)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
at javax.servlet.FilterChain$doFilter.call(Unknown Source)
at com.ceilfors.jenkins.plugins.jiratrigger.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.groovy:29)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:128)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:153)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:36)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:566)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1300)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1215)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:500)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
at java.lang.Thread.run(Unknown Source)
If Required yahoo account, i will share you that also... for your debug
Hi Alex,
Any Update on this.. let me know you need my yahoo credentials to debug the issue...
I wouldn't feel comfortable having your login credentials. Can you try with port 587 and enabling TLS?
According to Yahoo small business (link to docs), the correct setup is SSL only - port 465.
Doc also says app password (link to docs) is needed (and issue says it was created too).
Other things I found were:
- Yahoo have had issues when you try and send emails from an alias. Check that it's not your case.
- Using the reply-to field helps on getting you properly identified (question in StackOverflow) and fulfilling server rules (it might be checking that you are saying you are sending the email from an address belonging to the domain)
I would try these two tests:
- put into reply-to field the full address of the account you are sending the email from. Test the plugin configuration
- Using TLS (no SSL) and port 587 (or empty, it'll use that port by default). Test the plugin config again.
Hi Andres,
Same error facing still with your information... too..., please find the screenshot. with gmail configuration still iam able send email from this plugin,... email sending success on gmail only....
Any Update @alfabravoteam slide_o_mix ....
Iam Waiting for your response
I don't know about Andres, but I am a volunteer developing and managing this plugin. I have a day job that takes priority. You are welcome to look into the source and see if you can find the problem and submit a PR, or you can patiently wait until I have some time to look at it. Based on the error, the mail server is returning an error saying the mailbox you are trying to send to is not available, or possibly that the mailbox you are trying to send from is incorrect. I do not believe this is an issue with the plugin itself.
Just as Alex, I'm just another volunteer using my spare time to try and help building this software. This includes trying to help others (like you) to use it. But my day job will always have a higher priority.
The fact other users report a normal behavior while you also can see how it works with other SMTP servers point out to issues with the service you're trying to use (yahoo for SMB). I use this plugin in my day job with office365 and gmail servers with no problem (as you can see yourself with gmail). And security implementations are rather standard, so there's no special settings for Yahoo.
Finally, the fact it showed the same error using TLS means this is not related to plugin implementation but to your mailbox settings/provider.
Have you tried those settings with any other client (e.g. Outlook desktop)? If you're unable to use those credentials in other places, I'd suggest you to reach yahoo support.
SendFailedException message: 550 Request failed; Mailbox unavailable (Console Output Log)