Adding an email with a dot to Project Recipient List will generate an invalid email error message and not send the email.

      Specifically I have a recipient list like the following:
      "a@z.com, a.b@z.com, c@z.com"

      The error I see in the log is:
      Error sending to the following INVALID addresses: a.b@z.com

      Unfortunately this kills my ability to use the plug-in as I can't specify the appropriate email address (unlike other users, I am not sending to gmail which seems to deal with missing dots).

          [JENKINS-31032] Email address with a dot treated as "Invalid"

          Alex Earl added a comment -

          I've used it all the time with addresses that have a . in them, so I don't think the issue is with that.

          Alex Earl added a comment - I've used it all the time with addresses that have a . in them, so I don't think the issue is with that.

          Hi Alex,

          Interesting that it's working ok for you. Would there be any dependencies on a newer version of jenkins, or perhaps some other plug-in that I need to update?

          Also, is it possible that the error is coming back due to a failure to send on the email server itself? I was assuming that the error was the result of the email-ext plug-in trying to parse email addresses... but perhaps not?

          Last thought - I'm using a Success trigger with "Recipient List" as the target. Not sure if that might be a difference between my tests and yours...

          Anyhow if you have any ideas on how to further diagnose/debug, I'm game to try!

          Preston Jennings added a comment - Hi Alex, Interesting that it's working ok for you. Would there be any dependencies on a newer version of jenkins, or perhaps some other plug-in that I need to update? Also, is it possible that the error is coming back due to a failure to send on the email server itself? I was assuming that the error was the result of the email-ext plug-in trying to parse email addresses... but perhaps not? Last thought - I'm using a Success trigger with "Recipient List" as the target. Not sure if that might be a difference between my tests and yours... Anyhow if you have any ideas on how to further diagnose/debug, I'm game to try!

          Alex Earl added a comment - - edited

          Yes, you could definitely get this error if there is an error from the mail server, in fact that is the only time you would get this error. You can try enabling debug mode in the global config, it should have some additional information from the server.

          Alex Earl added a comment - - edited Yes, you could definitely get this error if there is an error from the mail server, in fact that is the only time you would get this error. You can try enabling debug mode in the global config, it should have some additional information from the server.

          Ok thanks - I got the log below. I'm going to follow up with our IT guys as it looks like it's something to with our mail server. Thanks for the help and glad I now know about the DEBUG toggle.

          For the record, I would suggest wording the error message so that it's more clear that the error appears to coming from the mail system, as opposed to something within the plug-in. At least that would have moved me in the right direction. Or even a message that says "turn on email-ext debug logging in global config to further diagnose". Thanks!

          00:00:12.887 javax.mail.SendFailedException: Invalid Addresses;
          00:00:12.887 nested exception is:
          00:00:12.887 com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay
          00:00:12.887
          00:00:12.887 at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1835)
          00:00:12.887 at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1098)
          00:00:12.887 at javax.mail.Transport.send0(Transport.java:195)

          Preston Jennings added a comment - Ok thanks - I got the log below. I'm going to follow up with our IT guys as it looks like it's something to with our mail server. Thanks for the help and glad I now know about the DEBUG toggle. For the record, I would suggest wording the error message so that it's more clear that the error appears to coming from the mail system, as opposed to something within the plug-in. At least that would have moved me in the right direction. Or even a message that says "turn on email-ext debug logging in global config to further diagnose". Thanks! 00:00:12.887 javax.mail.SendFailedException: Invalid Addresses; 00:00:12.887 nested exception is: 00:00:12.887 com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay 00:00:12.887 00:00:12.887 at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1835) 00:00:12.887 at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1098) 00:00:12.887 at javax.mail.Transport.send0(Transport.java:195)

            slide_o_mix Alex Earl
            prestonj Preston Jennings
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: