Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

Jim Lloyd
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: [hidden email]
Error sending to the following VALID addresses: [hidden email]
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

slide
You can turn on debug mode in the plugin (global config) and more information should come up in the build log, it should give information from JavaMail as to what is going on.


On Tue, Jul 15, 2014 at 10:29 AM, Jim Lloyd <[hidden email]> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: [hidden email]
Error sending to the following VALID addresses: [hidden email]
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

Jim Lloyd
Debug mode was already on for that build. The two lines of error message were all that were present in the log.

On Tuesday, July 15, 2014 11:03:16 AM UTC-7, slide wrote:
You can turn on debug mode in the plugin (global config) and more information should come up in the build log, it should give information from JavaMail as to what is going on.


On Tue, Jul 15, 2014 at 10:29 AM, Jim Lloyd <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6oOPSUZGIlIJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">jim....@...> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6oOPSUZGIlIJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">engineering_p...@redsealnetworks.com
Error sending to the following VALID addresses: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6oOPSUZGIlIJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">engineering_p...@redsealnetworks.com
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6oOPSUZGIlIJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">jenkinsci-use...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.



--
Website: <a href="http://earl-of-code.com" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fearl-of-code.com\46sa\75D\46sntz\0751\46usg\75AFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fearl-of-code.com\46sa\75D\46sntz\0751\46usg\75AFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg';return true;">http://earl-of-code.com

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

slide
Hmmm, that's strange, I've normally seen a bunch more output from JavaMail, does your mailserver require authentication and is it setup correctly? Can you also check the logs for the container and see if there is additional JavaMail log info there?


On Tue, Jul 15, 2014 at 11:15 AM, Jim Lloyd <[hidden email]> wrote:
Debug mode was already on for that build. The two lines of error message were all that were present in the log.

On Tuesday, July 15, 2014 11:03:16 AM UTC-7, slide wrote:
You can turn on debug mode in the plugin (global config) and more information should come up in the build log, it should give information from JavaMail as to what is going on.


On Tue, Jul 15, 2014 at 10:29 AM, Jim Lloyd <[hidden email]> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: engineering_p...@redsealnetworks.com
Error sending to the following VALID addresses: engineering_p...@redsealnetworks.com
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

Jim Lloyd
We don't require authentication, and I can successfully send test emails using the "Test configuration by sending test e-mail" setting under the global setting for E-mail Notification.

We're running the .war directly using "java -jar jenkins.war --logfile=/var/log/jenkins/jenkins.log". The jenkins.log file does not contain any information about this error.


On Tue, Jul 15, 2014 at 11:41 AM, Slide <[hidden email]> wrote:
Hmmm, that's strange, I've normally seen a bunch more output from JavaMail, does your mailserver require authentication and is it setup correctly? Can you also check the logs for the container and see if there is additional JavaMail log info there?


On Tue, Jul 15, 2014 at 11:15 AM, Jim Lloyd <[hidden email]> wrote:
Debug mode was already on for that build. The two lines of error message were all that were present in the log.

On Tuesday, July 15, 2014 11:03:16 AM UTC-7, slide wrote:
You can turn on debug mode in the plugin (global config) and more information should come up in the build log, it should give information from JavaMail as to what is going on.


On Tue, Jul 15, 2014 at 10:29 AM, Jim Lloyd <[hidden email]> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: engineering_p...@redsealnetworks.com
Error sending to the following VALID addresses: engineering_p...@redsealnetworks.com
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].

For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

slide
Ok, another option is to restart Jenkins and add -Dmail.debug=true to the command line. 


On Tue, Jul 15, 2014 at 12:18 PM, Jim Lloyd <[hidden email]> wrote:
We don't require authentication, and I can successfully send test emails using the "Test configuration by sending test e-mail" setting under the global setting for E-mail Notification.

We're running the .war directly using "java -jar jenkins.war --logfile=/var/log/jenkins/jenkins.log". The jenkins.log file does not contain any information about this error.


On Tue, Jul 15, 2014 at 11:41 AM, Slide <[hidden email]> wrote:
Hmmm, that's strange, I've normally seen a bunch more output from JavaMail, does your mailserver require authentication and is it setup correctly? Can you also check the logs for the container and see if there is additional JavaMail log info there?


On Tue, Jul 15, 2014 at 11:15 AM, Jim Lloyd <[hidden email]> wrote:
Debug mode was already on for that build. The two lines of error message were all that were present in the log.

On Tuesday, July 15, 2014 11:03:16 AM UTC-7, slide wrote:
You can turn on debug mode in the plugin (global config) and more information should come up in the build log, it should give information from JavaMail as to what is going on.


On Tue, Jul 15, 2014 at 10:29 AM, Jim Lloyd <[hidden email]> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: engineering_p...@redsealnetworks.com
Error sending to the following VALID addresses: engineering_p...@redsealnetworks.com
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].

For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

Richard Bywater-2
In reply to this post by Jim Lloyd
I would start by asking the group who administers the SMTP server you are talking to. Given that the Invalid Address error is being returned by the server, perhaps there is some policy in place on the SMTP server that prevents you sending to that address?

Richard.


On Wed, Jul 16, 2014 at 5:29 AM, Jim Lloyd <[hidden email]> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: [hidden email]
Error sending to the following VALID addresses: [hidden email]
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

Jim Lloyd
I don't think that is the problem. I can send test emails from Jenkins using the "Test configuration by sending test e-mail" setting under the global setting for E-mail Notification. And I can also send emails from the machine without authentication using the mailx command:

mailx -s "Testing 1,2,3" -S smtp=smtp://smtp.ourcompany.com:25 < test.txt

Where the smtp.ourcompany.com address is the same address configured in jenkins.

Finally, we have had emails work in the past. The problems have all come after upgrading Jenkins and various plugins in order to be able to use Git, which was not supported on the ancient version of Jenkins that we were previously using. Even after the upgrade, we were able to have some mails delivered, albeit there were other problems. For more info, see the thread I started on June 13th:

https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4



On Tue, Jul 15, 2014 at 2:12 PM, Richard Bywater <[hidden email]> wrote:
I would start by asking the group who administers the SMTP server you are talking to. Given that the Invalid Address error is being returned by the server, perhaps there is some policy in place on the SMTP server that prevents you sending to that address?

Richard.


On Wed, Jul 16, 2014 at 5:29 AM, Jim Lloyd <[hidden email]> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: [hidden email]
Error sending to the following VALID addresses: [hidden email]
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

slide
Ok, let's start over with this. The server is sending back a response that says that [hidden email] is invalid, but JavaMail thinks the address is valid. This can happen when either the sender or recipient is invalid, can you try the -Dmail.debug=true option that I mentioned? Also, can you post your global config.xml file (after you scrub it for company information). 


On Tue, Jul 15, 2014 at 2:31 PM, Jim Lloyd <[hidden email]> wrote:
I don't think that is the problem. I can send test emails from Jenkins using the "Test configuration by sending test e-mail" setting under the global setting for E-mail Notification. And I can also send emails from the machine without authentication using the mailx command:

mailx -s "Testing 1,2,3" -S smtp=smtp://smtp.ourcompany.com:25 < test.txt

Where the smtp.ourcompany.com address is the same address configured in jenkins.

Finally, we have had emails work in the past. The problems have all come after upgrading Jenkins and various plugins in order to be able to use Git, which was not supported on the ancient version of Jenkins that we were previously using. Even after the upgrade, we were able to have some mails delivered, albeit there were other problems. For more info, see the thread I started on June 13th:

https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4



On Tue, Jul 15, 2014 at 2:12 PM, Richard Bywater <[hidden email]> wrote:
I would start by asking the group who administers the SMTP server you are talking to. Given that the Invalid Address error is being returned by the server, perhaps there is some policy in place on the SMTP server that prevents you sending to that address?

Richard.


On Wed, Jul 16, 2014 at 5:29 AM, Jim Lloyd <[hidden email]> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: [hidden email]
Error sending to the following VALID addresses: [hidden email]
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

Jim Lloyd
I have managed to find a combination that seems to work. I stopped using the outlook based smtp server and simply used the default server running on the localhost, and one email was successfully delivered. Note that we have been using the outlook smtp server continuously for months, and all sent multiple test emails through it today, yet that was the only thing I changed in order to get a successful email. I'll do some more testing and reply back if I learn anything more specific about the underlying problem. 


On Tue, Jul 15, 2014 at 3:23 PM, Slide <[hidden email]> wrote:
Ok, let's start over with this. The server is sending back a response that says that [hidden email] is invalid, but JavaMail thinks the address is valid. This can happen when either the sender or recipient is invalid, can you try the -Dmail.debug=true option that I mentioned? Also, can you post your global config.xml file (after you scrub it for company information). 


On Tue, Jul 15, 2014 at 2:31 PM, Jim Lloyd <[hidden email]> wrote:
I don't think that is the problem. I can send test emails from Jenkins using the "Test configuration by sending test e-mail" setting under the global setting for E-mail Notification. And I can also send emails from the machine without authentication using the mailx command:

mailx -s "Testing 1,2,3" -S smtp=smtp://smtp.ourcompany.com:25 < test.txt

Where the smtp.ourcompany.com address is the same address configured in jenkins.

Finally, we have had emails work in the past. The problems have all come after upgrading Jenkins and various plugins in order to be able to use Git, which was not supported on the ancient version of Jenkins that we were previously using. Even after the upgrade, we were able to have some mails delivered, albeit there were other problems. For more info, see the thread I started on June 13th:

https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4



On Tue, Jul 15, 2014 at 2:12 PM, Richard Bywater <[hidden email]> wrote:
I would start by asking the group who administers the SMTP server you are talking to. Given that the Invalid Address error is being returned by the server, perhaps there is some policy in place on the SMTP server that prevents you sending to that address?

Richard.


On Wed, Jul 16, 2014 at 5:29 AM, Jim Lloyd <[hidden email]> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: [hidden email]
Error sending to the following VALID addresses: [hidden email]
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

ayuojha1110
Jim,

Did you find anything other than changing smtp value. I am facing same issue and got only one smtp. All my test emails are working but its throwing error once build done in jenkins. 

On Wednesday, July 16, 2014 at 5:08:15 AM UTC+5:30, Jim Lloyd wrote:
I have managed to find a combination that seems to work. I stopped using the outlook based smtp server and simply used the default server running on the localhost, and one email was successfully delivered. Note that we have been using the outlook smtp server continuously for months, and all sent multiple test emails through it today, yet that was the only thing I changed in order to get a successful email. I'll do some more testing and reply back if I learn anything more specific about the underlying problem. 


On Tue, Jul 15, 2014 at 3:23 PM, Slide <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="e5JkEVi_JyUJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">slide...@...> wrote:
Ok, let's start over with this. The server is sending back a response that says that <a href="javascript:" target="_blank" gdf-obfuscated-mailto="e5JkEVi_JyUJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">engineering_p...@redsealnetworks.com is invalid, but JavaMail thinks the address is valid. This can happen when either the sender or recipient is invalid, can you try the -Dmail.debug=true option that I mentioned? Also, can you post your global config.xml file (after you scrub it for company information). 


On Tue, Jul 15, 2014 at 2:31 PM, Jim Lloyd <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="e5JkEVi_JyUJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jim....@...> wrote:
I don't think that is the problem. I can send test emails from Jenkins using the "Test configuration by sending test e-mail" setting under the global setting for E-mail Notification. And I can also send emails from the machine without authentication using the mailx command:

mailx -s "Testing 1,2,3" -S smtp=smtp://<a href="http://smtp.ourcompany.com:25" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsmtp.ourcompany.com%3A25\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBrsPfWjpIFQjFrEGvNFybFc-sAA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsmtp.ourcompany.com%3A25\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBrsPfWjpIFQjFrEGvNFybFc-sAA&#39;;return true;">smtp.ourcompany.com:25 < test.txt

Where the <a href="http://smtp.ourcompany.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsmtp.ourcompany.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRXmLcuKiClfyhn2LW-5o_eB3Auw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsmtp.ourcompany.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRXmLcuKiClfyhn2LW-5o_eB3Auw&#39;;return true;">smtp.ourcompany.com address is the same address configured in jenkins.

Finally, we have had emails work in the past. The problems have all come after upgrading Jenkins and various plugins in order to be able to use Git, which was not supported on the ancient version of Jenkins that we were previously using. Even after the upgrade, we were able to have some mails delivered, albeit there were other problems. For more info, see the thread I started on June 13th:

<a href="https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4&#39;;return true;">https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4



On Tue, Jul 15, 2014 at 2:12 PM, Richard Bywater <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="e5JkEVi_JyUJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">ric...@...> wrote:
I would start by asking the group who administers the SMTP server you are talking to. Given that the Invalid Address error is being returned by the server, perhaps there is some policy in place on the SMTP server that prevents you sending to that address?

Richard.


On Wed, Jul 16, 2014 at 5:29 AM, Jim Lloyd <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="e5JkEVi_JyUJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jim....@...> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="e5JkEVi_JyUJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">engineering_p...@redsealnetworks.com
Error sending to the following VALID addresses: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="e5JkEVi_JyUJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">engineering_p...@redsealnetworks.com
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="e5JkEVi_JyUJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe&#39;;return true;">https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="e5JkEVi_JyUJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.

For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="e5JkEVi_JyUJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Website: <a href="http://earl-of-code.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fearl-of-code.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fearl-of-code.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg&#39;;return true;">http://earl-of-code.com

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe&#39;;return true;">https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="e5JkEVi_JyUJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/58024c74-6ae9-4b46-993a-2e1e142b04ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

Ujjawal Khare
Hello,

Me too facing same issue. Test mail works fine but when run build, i get "Error sending mail to following valid...".

@Jim: When  you say you used local server did you mean you configured any email client ?

Can you please guide me in this direction ?


Regards,
Ujjawal

On Tuesday, 18 September 2018 17:54:10 UTC+5:30, [hidden email] wrote:
Jim,

Did you find anything other than changing smtp value. I am facing same issue and got only one smtp. All my test emails are working but its throwing error once build done in jenkins. 

On Wednesday, July 16, 2014 at 5:08:15 AM UTC+5:30, Jim Lloyd wrote:
I have managed to find a combination that seems to work. I stopped using the outlook based smtp server and simply used the default server running on the localhost, and one email was successfully delivered. Note that we have been using the outlook smtp server continuously for months, and all sent multiple test emails through it today, yet that was the only thing I changed in order to get a successful email. I'll do some more testing and reply back if I learn anything more specific about the underlying problem. 


On Tue, Jul 15, 2014 at 3:23 PM, Slide <[hidden email]> wrote:
Ok, let's start over with this. The server is sending back a response that says that engineering_p...@redsealnetworks.com is invalid, but JavaMail thinks the address is valid. This can happen when either the sender or recipient is invalid, can you try the -Dmail.debug=true option that I mentioned? Also, can you post your global config.xml file (after you scrub it for company information). 


On Tue, Jul 15, 2014 at 2:31 PM, Jim Lloyd <[hidden email]> wrote:
I don't think that is the problem. I can send test emails from Jenkins using the "Test configuration by sending test e-mail" setting under the global setting for E-mail Notification. And I can also send emails from the machine without authentication using the mailx command:

mailx -s "Testing 1,2,3" -S smtp=smtp://<a href="http://smtp.ourcompany.com:25" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsmtp.ourcompany.com%3A25\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBrsPfWjpIFQjFrEGvNFybFc-sAA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsmtp.ourcompany.com%3A25\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBrsPfWjpIFQjFrEGvNFybFc-sAA&#39;;return true;">smtp.ourcompany.com:25 < test.txt

Where the <a href="http://smtp.ourcompany.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsmtp.ourcompany.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRXmLcuKiClfyhn2LW-5o_eB3Auw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsmtp.ourcompany.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRXmLcuKiClfyhn2LW-5o_eB3Auw&#39;;return true;">smtp.ourcompany.com address is the same address configured in jenkins.

Finally, we have had emails work in the past. The problems have all come after upgrading Jenkins and various plugins in order to be able to use Git, which was not supported on the ancient version of Jenkins that we were previously using. Even after the upgrade, we were able to have some mails delivered, albeit there were other problems. For more info, see the thread I started on June 13th:

<a href="https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4&#39;;return true;">https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4



On Tue, Jul 15, 2014 at 2:12 PM, Richard Bywater <[hidden email]> wrote:
I would start by asking the group who administers the SMTP server you are talking to. Given that the Invalid Address error is being returned by the server, perhaps there is some policy in place on the SMTP server that prevents you sending to that address?

Richard.


On Wed, Jul 16, 2014 at 5:29 AM, Jim Lloyd <[hidden email]> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: engineering_p...@redsealnetworks.com
Error sending to the following VALID addresses: engineering_p...@redsealnetworks.com
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe&#39;;return true;">https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Website: <a href="http://earl-of-code.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fearl-of-code.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fearl-of-code.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg&#39;;return true;">http://earl-of-code.com

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe&#39;;return true;">https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3c093333-161d-421d-8182-69dabd9396e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

Ujjawal Khare
Can any one guide me how to fix this issue "SendFailedException message: 501 5.1.7 Invalid address" ?

Test email was success but fails with error when i execute the build.


Regards,
Ujjawal

On Friday, 4 January 2019 14:02:13 UTC+5:30, Ujjawal Khare wrote:
Hello,

Me too facing same issue. Test mail works fine but when run build, i get "Error sending mail to following valid...".

@Jim: When  you say you used local server did you mean you configured any email client ?

Can you please guide me in this direction ?


Regards,
Ujjawal

On Tuesday, 18 September 2018 17:54:10 UTC+5:30, [hidden email] wrote:
Jim,

Did you find anything other than changing smtp value. I am facing same issue and got only one smtp. All my test emails are working but its throwing error once build done in jenkins. 

On Wednesday, July 16, 2014 at 5:08:15 AM UTC+5:30, Jim Lloyd wrote:
I have managed to find a combination that seems to work. I stopped using the outlook based smtp server and simply used the default server running on the localhost, and one email was successfully delivered. Note that we have been using the outlook smtp server continuously for months, and all sent multiple test emails through it today, yet that was the only thing I changed in order to get a successful email. I'll do some more testing and reply back if I learn anything more specific about the underlying problem. 


On Tue, Jul 15, 2014 at 3:23 PM, Slide <[hidden email]> wrote:
Ok, let's start over with this. The server is sending back a response that says that engineering_p...@redsealnetworks.com is invalid, but JavaMail thinks the address is valid. This can happen when either the sender or recipient is invalid, can you try the -Dmail.debug=true option that I mentioned? Also, can you post your global config.xml file (after you scrub it for company information). 


On Tue, Jul 15, 2014 at 2:31 PM, Jim Lloyd <[hidden email]> wrote:
I don't think that is the problem. I can send test emails from Jenkins using the "Test configuration by sending test e-mail" setting under the global setting for E-mail Notification. And I can also send emails from the machine without authentication using the mailx command:

mailx -s "Testing 1,2,3" -S smtp=smtp://<a href="http://smtp.ourcompany.com:25" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsmtp.ourcompany.com%3A25\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBrsPfWjpIFQjFrEGvNFybFc-sAA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsmtp.ourcompany.com%3A25\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBrsPfWjpIFQjFrEGvNFybFc-sAA&#39;;return true;">smtp.ourcompany.com:25 < test.txt

Where the <a href="http://smtp.ourcompany.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsmtp.ourcompany.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRXmLcuKiClfyhn2LW-5o_eB3Auw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsmtp.ourcompany.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRXmLcuKiClfyhn2LW-5o_eB3Auw&#39;;return true;">smtp.ourcompany.com address is the same address configured in jenkins.

Finally, we have had emails work in the past. The problems have all come after upgrading Jenkins and various plugins in order to be able to use Git, which was not supported on the ancient version of Jenkins that we were previously using. Even after the upgrade, we were able to have some mails delivered, albeit there were other problems. For more info, see the thread I started on June 13th:

<a href="https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4&#39;;return true;">https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4



On Tue, Jul 15, 2014 at 2:12 PM, Richard Bywater <[hidden email]> wrote:
I would start by asking the group who administers the SMTP server you are talking to. Given that the Invalid Address error is being returned by the server, perhaps there is some policy in place on the SMTP server that prevents you sending to that address?

Richard.


On Wed, Jul 16, 2014 at 5:29 AM, Jim Lloyd <[hidden email]> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: engineering_p...@redsealnetworks.com
Error sending to the following VALID addresses: engineering_p...@redsealnetworks.com
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe&#39;;return true;">https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Website: <a href="http://earl-of-code.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fearl-of-code.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fearl-of-code.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg&#39;;return true;">http://earl-of-code.com

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe&#39;;return true;">https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c2c82f88-07a9-4a01-806c-41f2db1806ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

slide
Can you give more information about what mail server you are using and so forth? Also, if you can enable debug mode in the global config area for email-ext (Extended Email Plugin) and post the log with secure information redacted, it might help.

On Thu, Jan 10, 2019 at 1:04 AM Ujjawal Khare <[hidden email]> wrote:
Can any one guide me how to fix this issue "SendFailedException message: 501 5.1.7 Invalid address" ?

Test email was success but fails with error when i execute the build.


Regards,
Ujjawal

On Friday, 4 January 2019 14:02:13 UTC+5:30, Ujjawal Khare wrote:
Hello,

Me too facing same issue. Test mail works fine but when run build, i get "Error sending mail to following valid...".

@Jim: When  you say you used local server did you mean you configured any email client ?

Can you please guide me in this direction ?


Regards,
Ujjawal

On Tuesday, 18 September 2018 17:54:10 UTC+5:30, [hidden email] wrote:
Jim,

Did you find anything other than changing smtp value. I am facing same issue and got only one smtp. All my test emails are working but its throwing error once build done in jenkins. 

On Wednesday, July 16, 2014 at 5:08:15 AM UTC+5:30, Jim Lloyd wrote:
I have managed to find a combination that seems to work. I stopped using the outlook based smtp server and simply used the default server running on the localhost, and one email was successfully delivered. Note that we have been using the outlook smtp server continuously for months, and all sent multiple test emails through it today, yet that was the only thing I changed in order to get a successful email. I'll do some more testing and reply back if I learn anything more specific about the underlying problem. 


On Tue, Jul 15, 2014 at 3:23 PM, Slide <[hidden email]> wrote:
Ok, let's start over with this. The server is sending back a response that says that [hidden email] is invalid, but JavaMail thinks the address is valid. This can happen when either the sender or recipient is invalid, can you try the -Dmail.debug=true option that I mentioned? Also, can you post your global config.xml file (after you scrub it for company information). 


On Tue, Jul 15, 2014 at 2:31 PM, Jim Lloyd <[hidden email]> wrote:
I don't think that is the problem. I can send test emails from Jenkins using the "Test configuration by sending test e-mail" setting under the global setting for E-mail Notification. And I can also send emails from the machine without authentication using the mailx command:

mailx -s "Testing 1,2,3" -S smtp=smtp://smtp.ourcompany.com:25 < test.txt

Where the smtp.ourcompany.com address is the same address configured in jenkins.

Finally, we have had emails work in the past. The problems have all come after upgrading Jenkins and various plugins in order to be able to use Git, which was not supported on the ancient version of Jenkins that we were previously using. Even after the upgrade, we were able to have some mails delivered, albeit there were other problems. For more info, see the thread I started on June 13th:

https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4



On Tue, Jul 15, 2014 at 2:12 PM, Richard Bywater <[hidden email]> wrote:
I would start by asking the group who administers the SMTP server you are talking to. Given that the Invalid Address error is being returned by the server, perhaps there is some policy in place on the SMTP server that prevents you sending to that address?

Richard.


On Wed, Jul 16, 2014 at 5:29 AM, Jim Lloyd <[hidden email]> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: [hidden email]
Error sending to the following VALID addresses: [hidden email]
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c2c82f88-07a9-4a01-806c-41f2db1806ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVepYE9CNwRh0YinweC9zvVCBMJAPiNLEzn--C6gtdzz4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

Ujjawal Khare
Here are attached configuration. When put on DEBUG it validates recipients email and prints :

Error sending to the following VALID addresses; [hidden email]

SendFailedException message: 501 5.1.7 Invalid Address

Note : 
1. sender and reciever emails are correct.
2. My organization smtp server doesn't require smtp authentication and ssl.
3. Test mail works fine and received.

On Thu, 10 Jan 2019, 18:53 Slide <[hidden email] wrote:
Can you give more information about what mail server you are using and so forth? Also, if you can enable debug mode in the global config area for email-ext (Extended Email Plugin) and post the log with secure information redacted, it might help.

On Thu, Jan 10, 2019 at 1:04 AM Ujjawal Khare <[hidden email]> wrote:
Can any one guide me how to fix this issue "SendFailedException message: 501 5.1.7 Invalid address" ?

Test email was success but fails with error when i execute the build.


Regards,
Ujjawal

On Friday, 4 January 2019 14:02:13 UTC+5:30, Ujjawal Khare wrote:
Hello,

Me too facing same issue. Test mail works fine but when run build, i get "Error sending mail to following valid...".

@Jim: When  you say you used local server did you mean you configured any email client ?

Can you please guide me in this direction ?


Regards,
Ujjawal

On Tuesday, 18 September 2018 17:54:10 UTC+5:30, [hidden email] wrote:
Jim,

Did you find anything other than changing smtp value. I am facing same issue and got only one smtp. All my test emails are working but its throwing error once build done in jenkins. 

On Wednesday, July 16, 2014 at 5:08:15 AM UTC+5:30, Jim Lloyd wrote:
I have managed to find a combination that seems to work. I stopped using the outlook based smtp server and simply used the default server running on the localhost, and one email was successfully delivered. Note that we have been using the outlook smtp server continuously for months, and all sent multiple test emails through it today, yet that was the only thing I changed in order to get a successful email. I'll do some more testing and reply back if I learn anything more specific about the underlying problem. 


On Tue, Jul 15, 2014 at 3:23 PM, Slide <[hidden email]> wrote:
Ok, let's start over with this. The server is sending back a response that says that [hidden email] is invalid, but JavaMail thinks the address is valid. This can happen when either the sender or recipient is invalid, can you try the -Dmail.debug=true option that I mentioned? Also, can you post your global config.xml file (after you scrub it for company information). 


On Tue, Jul 15, 2014 at 2:31 PM, Jim Lloyd <[hidden email]> wrote:
I don't think that is the problem. I can send test emails from Jenkins using the "Test configuration by sending test e-mail" setting under the global setting for E-mail Notification. And I can also send emails from the machine without authentication using the mailx command:

mailx -s "Testing 1,2,3" -S smtp=smtp://smtp.ourcompany.com:25 < test.txt

Where the smtp.ourcompany.com address is the same address configured in jenkins.

Finally, we have had emails work in the past. The problems have all come after upgrading Jenkins and various plugins in order to be able to use Git, which was not supported on the ancient version of Jenkins that we were previously using. Even after the upgrade, we were able to have some mails delivered, albeit there were other problems. For more info, see the thread I started on June 13th:

https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4



On Tue, Jul 15, 2014 at 2:12 PM, Richard Bywater <[hidden email]> wrote:
I would start by asking the group who administers the SMTP server you are talking to. Given that the Invalid Address error is being returned by the server, perhaps there is some policy in place on the SMTP server that prevents you sending to that address?

Richard.


On Wed, Jul 16, 2014 at 5:29 AM, Jim Lloyd <[hidden email]> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: [hidden email]
Error sending to the following VALID addresses: [hidden email]
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c2c82f88-07a9-4a01-806c-41f2db1806ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVepYE9CNwRh0YinweC9zvVCBMJAPiNLEzn--C6gtdzz4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAEVfYmgsrGHVagA6px-pVJZMKqNFwzXrLsQ0_FOYiHmTfA1Ctg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

ZFc1A.png (36K) Download Attachment
kGIln.png (66K) Download Attachment
7xAt1.png (29K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

slide
You need to setup the server settings in the  Extended E-mail Notification section of the global configuration if you are using that configuration in your job.

On Thu, Jan 10, 2019 at 9:00 AM Ujjawal Khare <[hidden email]> wrote:
Here are attached configuration. When put on DEBUG it validates recipients email and prints :

Error sending to the following VALID addresses; [hidden email]

SendFailedException message: 501 5.1.7 Invalid Address

Note : 
1. sender and reciever emails are correct.
2. My organization smtp server doesn't require smtp authentication and ssl.
3. Test mail works fine and received.

On Thu, 10 Jan 2019, 18:53 Slide <[hidden email] wrote:
Can you give more information about what mail server you are using and so forth? Also, if you can enable debug mode in the global config area for email-ext (Extended Email Plugin) and post the log with secure information redacted, it might help.

On Thu, Jan 10, 2019 at 1:04 AM Ujjawal Khare <[hidden email]> wrote:
Can any one guide me how to fix this issue "SendFailedException message: 501 5.1.7 Invalid address" ?

Test email was success but fails with error when i execute the build.


Regards,
Ujjawal

On Friday, 4 January 2019 14:02:13 UTC+5:30, Ujjawal Khare wrote:
Hello,

Me too facing same issue. Test mail works fine but when run build, i get "Error sending mail to following valid...".

@Jim: When  you say you used local server did you mean you configured any email client ?

Can you please guide me in this direction ?


Regards,
Ujjawal

On Tuesday, 18 September 2018 17:54:10 UTC+5:30, [hidden email] wrote:
Jim,

Did you find anything other than changing smtp value. I am facing same issue and got only one smtp. All my test emails are working but its throwing error once build done in jenkins. 

On Wednesday, July 16, 2014 at 5:08:15 AM UTC+5:30, Jim Lloyd wrote:
I have managed to find a combination that seems to work. I stopped using the outlook based smtp server and simply used the default server running on the localhost, and one email was successfully delivered. Note that we have been using the outlook smtp server continuously for months, and all sent multiple test emails through it today, yet that was the only thing I changed in order to get a successful email. I'll do some more testing and reply back if I learn anything more specific about the underlying problem. 


On Tue, Jul 15, 2014 at 3:23 PM, Slide <[hidden email]> wrote:
Ok, let's start over with this. The server is sending back a response that says that [hidden email] is invalid, but JavaMail thinks the address is valid. This can happen when either the sender or recipient is invalid, can you try the -Dmail.debug=true option that I mentioned? Also, can you post your global config.xml file (after you scrub it for company information). 


On Tue, Jul 15, 2014 at 2:31 PM, Jim Lloyd <[hidden email]> wrote:
I don't think that is the problem. I can send test emails from Jenkins using the "Test configuration by sending test e-mail" setting under the global setting for E-mail Notification. And I can also send emails from the machine without authentication using the mailx command:

mailx -s "Testing 1,2,3" -S smtp=smtp://smtp.ourcompany.com:25 < test.txt

Where the smtp.ourcompany.com address is the same address configured in jenkins.

Finally, we have had emails work in the past. The problems have all come after upgrading Jenkins and various plugins in order to be able to use Git, which was not supported on the ancient version of Jenkins that we were previously using. Even after the upgrade, we were able to have some mails delivered, albeit there were other problems. For more info, see the thread I started on June 13th:

https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4



On Tue, Jul 15, 2014 at 2:12 PM, Richard Bywater <[hidden email]> wrote:
I would start by asking the group who administers the SMTP server you are talking to. Given that the Invalid Address error is being returned by the server, perhaps there is some policy in place on the SMTP server that prevents you sending to that address?

Richard.


On Wed, Jul 16, 2014 at 5:29 AM, Jim Lloyd <[hidden email]> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: [hidden email]
Error sending to the following VALID addresses: [hidden email]
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c2c82f88-07a9-4a01-806c-41f2db1806ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVepYE9CNwRh0YinweC9zvVCBMJAPiNLEzn--C6gtdzz4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAEVfYmgsrGHVagA6px-pVJZMKqNFwzXrLsQ0_FOYiHmTfA1Ctg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdB0U-tPKZJasJDyg1U8Ju%2BjE%3Dk2L3pwY3FQpzdVJe3TQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

Ujjawal Khare
Do you mean Extended email configuration inside  Manage Jenkins --> Configure System ?
Please see the attached configuration. Its already there but still doesn't work.

On Thu, Jan 10, 2019 at 9:55 PM Slide <[hidden email]> wrote:
You need to setup the server settings in the  Extended E-mail Notification section of the global configuration if you are using that configuration in your job.

On Thu, Jan 10, 2019 at 9:00 AM Ujjawal Khare <[hidden email]> wrote:
Here are attached configuration. When put on DEBUG it validates recipients email and prints :

Error sending to the following VALID addresses; [hidden email]

SendFailedException message: 501 5.1.7 Invalid Address

Note : 
1. sender and reciever emails are correct.
2. My organization smtp server doesn't require smtp authentication and ssl.
3. Test mail works fine and received.

On Thu, 10 Jan 2019, 18:53 Slide <[hidden email] wrote:
Can you give more information about what mail server you are using and so forth? Also, if you can enable debug mode in the global config area for email-ext (Extended Email Plugin) and post the log with secure information redacted, it might help.

On Thu, Jan 10, 2019 at 1:04 AM Ujjawal Khare <[hidden email]> wrote:
Can any one guide me how to fix this issue "SendFailedException message: 501 5.1.7 Invalid address" ?

Test email was success but fails with error when i execute the build.


Regards,
Ujjawal

On Friday, 4 January 2019 14:02:13 UTC+5:30, Ujjawal Khare wrote:
Hello,

Me too facing same issue. Test mail works fine but when run build, i get "Error sending mail to following valid...".

@Jim: When  you say you used local server did you mean you configured any email client ?

Can you please guide me in this direction ?


Regards,
Ujjawal

On Tuesday, 18 September 2018 17:54:10 UTC+5:30, [hidden email] wrote:
Jim,

Did you find anything other than changing smtp value. I am facing same issue and got only one smtp. All my test emails are working but its throwing error once build done in jenkins. 

On Wednesday, July 16, 2014 at 5:08:15 AM UTC+5:30, Jim Lloyd wrote:
I have managed to find a combination that seems to work. I stopped using the outlook based smtp server and simply used the default server running on the localhost, and one email was successfully delivered. Note that we have been using the outlook smtp server continuously for months, and all sent multiple test emails through it today, yet that was the only thing I changed in order to get a successful email. I'll do some more testing and reply back if I learn anything more specific about the underlying problem. 


On Tue, Jul 15, 2014 at 3:23 PM, Slide <[hidden email]> wrote:
Ok, let's start over with this. The server is sending back a response that says that [hidden email] is invalid, but JavaMail thinks the address is valid. This can happen when either the sender or recipient is invalid, can you try the -Dmail.debug=true option that I mentioned? Also, can you post your global config.xml file (after you scrub it for company information). 


On Tue, Jul 15, 2014 at 2:31 PM, Jim Lloyd <[hidden email]> wrote:
I don't think that is the problem. I can send test emails from Jenkins using the "Test configuration by sending test e-mail" setting under the global setting for E-mail Notification. And I can also send emails from the machine without authentication using the mailx command:

mailx -s "Testing 1,2,3" -S smtp=smtp://smtp.ourcompany.com:25 < test.txt

Where the smtp.ourcompany.com address is the same address configured in jenkins.

Finally, we have had emails work in the past. The problems have all come after upgrading Jenkins and various plugins in order to be able to use Git, which was not supported on the ancient version of Jenkins that we were previously using. Even after the upgrade, we were able to have some mails delivered, albeit there were other problems. For more info, see the thread I started on June 13th:

https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4



On Tue, Jul 15, 2014 at 2:12 PM, Richard Bywater <[hidden email]> wrote:
I would start by asking the group who administers the SMTP server you are talking to. Given that the Invalid Address error is being returned by the server, perhaps there is some policy in place on the SMTP server that prevents you sending to that address?

Richard.


On Wed, Jul 16, 2014 at 5:29 AM, Jim Lloyd <[hidden email]> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: [hidden email]
Error sending to the following VALID addresses: [hidden email]
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c2c82f88-07a9-4a01-806c-41f2db1806ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVepYE9CNwRh0YinweC9zvVCBMJAPiNLEzn--C6gtdzz4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAEVfYmgsrGHVagA6px-pVJZMKqNFwzXrLsQ0_FOYiHmTfA1Ctg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdB0U-tPKZJasJDyg1U8Ju%2BjE%3Dk2L3pwY3FQpzdVJe3TQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAEVfYmhEyV8GP4z8X4x6z0wr1UFjqWbrtF0X-OGRZHqY1iLqHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Extented Email in Configure Settings.png (74K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

Ujjawal Khare
Here is the debug logs:

Set build name.
New build name is 'xyz #18'
[Start-xyz-TestSuite] $ /var/jenkins_home/tools/ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation/local_allure/bin/allure generate -c -o /home/ukhare/move/Start-xyz-TestSuite/allure-report
Report successfully generated to /home/ukhare/move/Start-xyz-TestSuite/allure-report
Allure report was successfully generated.
Creating artifact for the build.
Artifact was added to the build.
Archiving artifacts
Checking for post-build
Performing post-build step
Checking if email needs to be generated
Email was triggered for: Always
Sending email for trigger: Always
messageContentType = text/html; charset=UTF-8
Adding recipients from project recipient list
Analyzing: ujjawal.khare
Looking for: ujjawal.khare
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: ujjawal.khare
	=> found type: 0
Analyzing: ujjawal.khare
Looking for: ujjawal.khare
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: ujjawal.khare
	=> found type: 0
Analyzing: ujjawal.khare
Looking for: ujjawal.khare
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: ujjawal.khare
	=> found type: 0
Adding recipients from trigger recipient list
Analyzing: [hidden email]
Looking for: [hidden email]
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: [hidden email]
	=> found type: 0
Analyzing: [hidden email]
Looking for: [hidden email]
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: [hidden email]
	=> found type: 0
Analyzing: [hidden email]
Looking for: [hidden email]
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: [hidden email]
	=> found type: 0
Successfully created MimeMessage
Sending email to: [hidden email]
Error sending to the following VALID addresses: [hidden email]
SendFailedException message: 501 5.1.7 Invalid address

Finished: SUCCESS


Regards,
Ujjawal
On Fri, Jan 11, 2019 at 9:25 AM Ujjawal Khare <[hidden email]> wrote:
Do you mean Extended email configuration inside  Manage Jenkins --> Configure System ?
Please see the attached configuration. Its already there but still doesn't work.

On Thu, Jan 10, 2019 at 9:55 PM Slide <[hidden email]> wrote:
You need to setup the server settings in the  Extended E-mail Notification section of the global configuration if you are using that configuration in your job.

On Thu, Jan 10, 2019 at 9:00 AM Ujjawal Khare <[hidden email]> wrote:
Here are attached configuration. When put on DEBUG it validates recipients email and prints :

Error sending to the following VALID addresses; [hidden email]

SendFailedException message: 501 5.1.7 Invalid Address

Note : 
1. sender and reciever emails are correct.
2. My organization smtp server doesn't require smtp authentication and ssl.
3. Test mail works fine and received.

On Thu, 10 Jan 2019, 18:53 Slide <[hidden email] wrote:
Can you give more information about what mail server you are using and so forth? Also, if you can enable debug mode in the global config area for email-ext (Extended Email Plugin) and post the log with secure information redacted, it might help.

On Thu, Jan 10, 2019 at 1:04 AM Ujjawal Khare <[hidden email]> wrote:
Can any one guide me how to fix this issue "SendFailedException message: 501 5.1.7 Invalid address" ?

Test email was success but fails with error when i execute the build.


Regards,
Ujjawal

On Friday, 4 January 2019 14:02:13 UTC+5:30, Ujjawal Khare wrote:
Hello,

Me too facing same issue. Test mail works fine but when run build, i get "Error sending mail to following valid...".

@Jim: When  you say you used local server did you mean you configured any email client ?

Can you please guide me in this direction ?


Regards,
Ujjawal

On Tuesday, 18 September 2018 17:54:10 UTC+5:30, [hidden email] wrote:
Jim,

Did you find anything other than changing smtp value. I am facing same issue and got only one smtp. All my test emails are working but its throwing error once build done in jenkins. 

On Wednesday, July 16, 2014 at 5:08:15 AM UTC+5:30, Jim Lloyd wrote:
I have managed to find a combination that seems to work. I stopped using the outlook based smtp server and simply used the default server running on the localhost, and one email was successfully delivered. Note that we have been using the outlook smtp server continuously for months, and all sent multiple test emails through it today, yet that was the only thing I changed in order to get a successful email. I'll do some more testing and reply back if I learn anything more specific about the underlying problem. 


On Tue, Jul 15, 2014 at 3:23 PM, Slide <[hidden email]> wrote:
Ok, let's start over with this. The server is sending back a response that says that [hidden email] is invalid, but JavaMail thinks the address is valid. This can happen when either the sender or recipient is invalid, can you try the -Dmail.debug=true option that I mentioned? Also, can you post your global config.xml file (after you scrub it for company information). 


On Tue, Jul 15, 2014 at 2:31 PM, Jim Lloyd <[hidden email]> wrote:
I don't think that is the problem. I can send test emails from Jenkins using the "Test configuration by sending test e-mail" setting under the global setting for E-mail Notification. And I can also send emails from the machine without authentication using the mailx command:

mailx -s "Testing 1,2,3" -S smtp=smtp://smtp.ourcompany.com:25 < test.txt

Where the smtp.ourcompany.com address is the same address configured in jenkins.

Finally, we have had emails work in the past. The problems have all come after upgrading Jenkins and various plugins in order to be able to use Git, which was not supported on the ancient version of Jenkins that we were previously using. Even after the upgrade, we were able to have some mails delivered, albeit there were other problems. For more info, see the thread I started on June 13th:

https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4



On Tue, Jul 15, 2014 at 2:12 PM, Richard Bywater <[hidden email]> wrote:
I would start by asking the group who administers the SMTP server you are talking to. Given that the Invalid Address error is being returned by the server, perhaps there is some policy in place on the SMTP server that prevents you sending to that address?

Richard.


On Wed, Jul 16, 2014 at 5:29 AM, Jim Lloyd <[hidden email]> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: [hidden email]
Error sending to the following VALID addresses: [hidden email]
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c2c82f88-07a9-4a01-806c-41f2db1806ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVepYE9CNwRh0YinweC9zvVCBMJAPiNLEzn--C6gtdzz4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAEVfYmgsrGHVagA6px-pVJZMKqNFwzXrLsQ0_FOYiHmTfA1Ctg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdB0U-tPKZJasJDyg1U8Ju%2BjE%3Dk2L3pwY3FQpzdVJe3TQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAEVfYmjy%3Dc6p%3DBZh8XeX4YxsHAjjDtrmSDxSkfuEto8LiBYEdg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

slide
Do you have the ability to see the logs on the server? The message is coming from your server.

On Fri, Jan 11, 2019 at 1:33 AM Ujjawal Khare <[hidden email]> wrote:
Here is the debug logs:

Set build name.
New build name is 'xyz #18'
[Start-xyz-TestSuite] $ /var/jenkins_home/tools/ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation/local_allure/bin/allure generate -c -o /home/ukhare/move/Start-xyz-TestSuite/allure-report
Report successfully generated to /home/ukhare/move/Start-xyz-TestSuite/allure-report
Allure report was successfully generated.
Creating artifact for the build.
Artifact was added to the build.
Archiving artifacts
Checking for post-build
Performing post-build step
Checking if email needs to be generated
Email was triggered for: Always
Sending email for trigger: Always
messageContentType = text/html; charset=UTF-8
Adding recipients from project recipient list
Analyzing: ujjawal.khare
Looking for: ujjawal.khare
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: ujjawal.khare
	=> found type: 0
Analyzing: ujjawal.khare
Looking for: ujjawal.khare
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: ujjawal.khare
	=> found type: 0
Analyzing: ujjawal.khare
Looking for: ujjawal.khare
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: ujjawal.khare
	=> found type: 0
Adding recipients from trigger recipient list
Analyzing: [hidden email]
Looking for: [hidden email]
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: [hidden email]
	=> found type: 0
Analyzing: [hidden email]
Looking for: [hidden email]
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: [hidden email]
	=> found type: 0
Analyzing: [hidden email]
Looking for: [hidden email]
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: [hidden email]
	=> found type: 0
Successfully created MimeMessage
Sending email to: [hidden email]
Error sending to the following VALID addresses: [hidden email]
SendFailedException message: 501 5.1.7 Invalid address

Finished: SUCCESS


Regards,
Ujjawal
On Fri, Jan 11, 2019 at 9:25 AM Ujjawal Khare <[hidden email]> wrote:
Do you mean Extended email configuration inside  Manage Jenkins --> Configure System ?
Please see the attached configuration. Its already there but still doesn't work.

On Thu, Jan 10, 2019 at 9:55 PM Slide <[hidden email]> wrote:
You need to setup the server settings in the  Extended E-mail Notification section of the global configuration if you are using that configuration in your job.

On Thu, Jan 10, 2019 at 9:00 AM Ujjawal Khare <[hidden email]> wrote:
Here are attached configuration. When put on DEBUG it validates recipients email and prints :

Error sending to the following VALID addresses; [hidden email]

SendFailedException message: 501 5.1.7 Invalid Address

Note : 
1. sender and reciever emails are correct.
2. My organization smtp server doesn't require smtp authentication and ssl.
3. Test mail works fine and received.

On Thu, 10 Jan 2019, 18:53 Slide <[hidden email] wrote:
Can you give more information about what mail server you are using and so forth? Also, if you can enable debug mode in the global config area for email-ext (Extended Email Plugin) and post the log with secure information redacted, it might help.

On Thu, Jan 10, 2019 at 1:04 AM Ujjawal Khare <[hidden email]> wrote:
Can any one guide me how to fix this issue "SendFailedException message: 501 5.1.7 Invalid address" ?

Test email was success but fails with error when i execute the build.


Regards,
Ujjawal

On Friday, 4 January 2019 14:02:13 UTC+5:30, Ujjawal Khare wrote:
Hello,

Me too facing same issue. Test mail works fine but when run build, i get "Error sending mail to following valid...".

@Jim: When  you say you used local server did you mean you configured any email client ?

Can you please guide me in this direction ?


Regards,
Ujjawal

On Tuesday, 18 September 2018 17:54:10 UTC+5:30, [hidden email] wrote:
Jim,

Did you find anything other than changing smtp value. I am facing same issue and got only one smtp. All my test emails are working but its throwing error once build done in jenkins. 

On Wednesday, July 16, 2014 at 5:08:15 AM UTC+5:30, Jim Lloyd wrote:
I have managed to find a combination that seems to work. I stopped using the outlook based smtp server and simply used the default server running on the localhost, and one email was successfully delivered. Note that we have been using the outlook smtp server continuously for months, and all sent multiple test emails through it today, yet that was the only thing I changed in order to get a successful email. I'll do some more testing and reply back if I learn anything more specific about the underlying problem. 


On Tue, Jul 15, 2014 at 3:23 PM, Slide <[hidden email]> wrote:
Ok, let's start over with this. The server is sending back a response that says that [hidden email] is invalid, but JavaMail thinks the address is valid. This can happen when either the sender or recipient is invalid, can you try the -Dmail.debug=true option that I mentioned? Also, can you post your global config.xml file (after you scrub it for company information). 


On Tue, Jul 15, 2014 at 2:31 PM, Jim Lloyd <[hidden email]> wrote:
I don't think that is the problem. I can send test emails from Jenkins using the "Test configuration by sending test e-mail" setting under the global setting for E-mail Notification. And I can also send emails from the machine without authentication using the mailx command:

mailx -s "Testing 1,2,3" -S smtp=smtp://smtp.ourcompany.com:25 < test.txt

Where the smtp.ourcompany.com address is the same address configured in jenkins.

Finally, we have had emails work in the past. The problems have all come after upgrading Jenkins and various plugins in order to be able to use Git, which was not supported on the ancient version of Jenkins that we were previously using. Even after the upgrade, we were able to have some mails delivered, albeit there were other problems. For more info, see the thread I started on June 13th:

https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4



On Tue, Jul 15, 2014 at 2:12 PM, Richard Bywater <[hidden email]> wrote:
I would start by asking the group who administers the SMTP server you are talking to. Given that the Invalid Address error is being returned by the server, perhaps there is some policy in place on the SMTP server that prevents you sending to that address?

Richard.


On Wed, Jul 16, 2014 at 5:29 AM, Jim Lloyd <[hidden email]> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: [hidden email]
Error sending to the following VALID addresses: [hidden email]
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c2c82f88-07a9-4a01-806c-41f2db1806ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVepYE9CNwRh0YinweC9zvVCBMJAPiNLEzn--C6gtdzz4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAEVfYmgsrGHVagA6px-pVJZMKqNFwzXrLsQ0_FOYiHmTfA1Ctg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdB0U-tPKZJasJDyg1U8Ju%2BjE%3Dk2L3pwY3FQpzdVJe3TQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAEVfYmjy%3Dc6p%3DBZh8XeX4YxsHAjjDtrmSDxSkfuEto8LiBYEdg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcn48QicwP7dAd5hLMTNuZJ4FGV6c%2BwuGGThSsK6gkboA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error sending to the following VALID addresses; SendFailedException message: 501 5.1.7 Invalid Address

Ujjawal Khare
Yes I can login to the server but what is the path of log file ? Please tell me and i will check.

Regards,
Ujjawal

On Fri, 11 Jan 2019, 19:32 Slide <[hidden email] wrote:
Do you have the ability to see the logs on the server? The message is coming from your server.

On Fri, Jan 11, 2019 at 1:33 AM Ujjawal Khare <[hidden email]> wrote:
Here is the debug logs:

Set build name.
New build name is 'xyz #18'
[Start-xyz-TestSuite] $ /var/jenkins_home/tools/ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation/local_allure/bin/allure generate -c -o /home/ukhare/move/Start-xyz-TestSuite/allure-report
Report successfully generated to /home/ukhare/move/Start-xyz-TestSuite/allure-report
Allure report was successfully generated.
Creating artifact for the build.
Artifact was added to the build.
Archiving artifacts
Checking for post-build
Performing post-build step
Checking if email needs to be generated
Email was triggered for: Always
Sending email for trigger: Always
messageContentType = text/html; charset=UTF-8
Adding recipients from project recipient list
Analyzing: ujjawal.khare
Looking for: ujjawal.khare
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: ujjawal.khare
	=> found type: 0
Analyzing: ujjawal.khare
Looking for: ujjawal.khare
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: ujjawal.khare
	=> found type: 0
Analyzing: ujjawal.khare
Looking for: ujjawal.khare
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: ujjawal.khare
	=> found type: 0
Adding recipients from trigger recipient list
Analyzing: [hidden email]
Looking for: [hidden email]
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: [hidden email]
	=> found type: 0
Analyzing: [hidden email]
Looking for: [hidden email]
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: [hidden email]
	=> found type: 0
Analyzing: [hidden email]
Looking for: [hidden email]
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: [hidden email]
	=> found type: 0
Successfully created MimeMessage
Sending email to: [hidden email]
Error sending to the following VALID addresses: [hidden email]
SendFailedException message: 501 5.1.7 Invalid address

Finished: SUCCESS


Regards,
Ujjawal
On Fri, Jan 11, 2019 at 9:25 AM Ujjawal Khare <[hidden email]> wrote:
Do you mean Extended email configuration inside  Manage Jenkins --> Configure System ?
Please see the attached configuration. Its already there but still doesn't work.

On Thu, Jan 10, 2019 at 9:55 PM Slide <[hidden email]> wrote:
You need to setup the server settings in the  Extended E-mail Notification section of the global configuration if you are using that configuration in your job.

On Thu, Jan 10, 2019 at 9:00 AM Ujjawal Khare <[hidden email]> wrote:
Here are attached configuration. When put on DEBUG it validates recipients email and prints :

Error sending to the following VALID addresses; [hidden email]

SendFailedException message: 501 5.1.7 Invalid Address

Note : 
1. sender and reciever emails are correct.
2. My organization smtp server doesn't require smtp authentication and ssl.
3. Test mail works fine and received.

On Thu, 10 Jan 2019, 18:53 Slide <[hidden email] wrote:
Can you give more information about what mail server you are using and so forth? Also, if you can enable debug mode in the global config area for email-ext (Extended Email Plugin) and post the log with secure information redacted, it might help.

On Thu, Jan 10, 2019 at 1:04 AM Ujjawal Khare <[hidden email]> wrote:
Can any one guide me how to fix this issue "SendFailedException message: 501 5.1.7 Invalid address" ?

Test email was success but fails with error when i execute the build.


Regards,
Ujjawal

On Friday, 4 January 2019 14:02:13 UTC+5:30, Ujjawal Khare wrote:
Hello,

Me too facing same issue. Test mail works fine but when run build, i get "Error sending mail to following valid...".

@Jim: When  you say you used local server did you mean you configured any email client ?

Can you please guide me in this direction ?


Regards,
Ujjawal

On Tuesday, 18 September 2018 17:54:10 UTC+5:30, [hidden email] wrote:
Jim,

Did you find anything other than changing smtp value. I am facing same issue and got only one smtp. All my test emails are working but its throwing error once build done in jenkins. 

On Wednesday, July 16, 2014 at 5:08:15 AM UTC+5:30, Jim Lloyd wrote:
I have managed to find a combination that seems to work. I stopped using the outlook based smtp server and simply used the default server running on the localhost, and one email was successfully delivered. Note that we have been using the outlook smtp server continuously for months, and all sent multiple test emails through it today, yet that was the only thing I changed in order to get a successful email. I'll do some more testing and reply back if I learn anything more specific about the underlying problem. 


On Tue, Jul 15, 2014 at 3:23 PM, Slide <[hidden email]> wrote:
Ok, let's start over with this. The server is sending back a response that says that [hidden email] is invalid, but JavaMail thinks the address is valid. This can happen when either the sender or recipient is invalid, can you try the -Dmail.debug=true option that I mentioned? Also, can you post your global config.xml file (after you scrub it for company information). 


On Tue, Jul 15, 2014 at 2:31 PM, Jim Lloyd <[hidden email]> wrote:
I don't think that is the problem. I can send test emails from Jenkins using the "Test configuration by sending test e-mail" setting under the global setting for E-mail Notification. And I can also send emails from the machine without authentication using the mailx command:

mailx -s "Testing 1,2,3" -S smtp=smtp://smtp.ourcompany.com:25 < test.txt

Where the smtp.ourcompany.com address is the same address configured in jenkins.

Finally, we have had emails work in the past. The problems have all come after upgrading Jenkins and various plugins in order to be able to use Git, which was not supported on the ancient version of Jenkins that we were previously using. Even after the upgrade, we were able to have some mails delivered, albeit there were other problems. For more info, see the thread I started on June 13th:

https://groups.google.com/forum/#!topic/jenkinsci-users/eZQsgfCSYM4



On Tue, Jul 15, 2014 at 2:12 PM, Richard Bywater <[hidden email]> wrote:
I would start by asking the group who administers the SMTP server you are talking to. Given that the Invalid Address error is being returned by the server, perhaps there is some policy in place on the SMTP server that prevents you sending to that address?

Richard.


On Wed, Jul 16, 2014 at 5:29 AM, Jim Lloyd <[hidden email]> wrote:
We have a Jenkins installation that has undergone several changes in the last couple months as we transition from using Perforce to using Git as our SCM. We've had numerous problems with email-ext during the transition, but we may be getting close to a solution.

We're currently using the most recent LTS build (v1.554.3) and latest email-ext (v2.38.1). The error that is preventing Build Result email now is rather strange:

Adding recipients from project recipient list
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: [hidden email]
Error sending to the following VALID addresses: [hidden email]
SendFailedException message: 501 5.1.7 Invalid address

The listed recipient email address is definitely valid. I suppose the error might be indicating that the sender email address is invalid, but it's not obvious to me how to follow up on that hypothesis. Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Website: http://earl-of-code.com

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/uTCRSeOVME4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c2c82f88-07a9-4a01-806c-41f2db1806ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVepYE9CNwRh0YinweC9zvVCBMJAPiNLEzn--C6gtdzz4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAEVfYmgsrGHVagA6px-pVJZMKqNFwzXrLsQ0_FOYiHmTfA1Ctg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdB0U-tPKZJasJDyg1U8Ju%2BjE%3Dk2L3pwY3FQpzdVJe3TQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAEVfYmjy%3Dc6p%3DBZh8XeX4YxsHAjjDtrmSDxSkfuEto8LiBYEdg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcn48QicwP7dAd5hLMTNuZJ4FGV6c%2BwuGGThSsK6gkboA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAEVfYmjFC%3DsNBLnG%3DqboQEDLY%3DsQUegaRoOEZz%3DmExvLG9XwmA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
12