azure-devops-engineering-extensions icon indicating copy to clipboard operation
azure-devops-engineering-extensions copied to clipboard

facing error MailError: Error: getaddrinfo ENOTFOUND smtphost.***.corp.***.com in release build

Open Nehagang opened this issue 5 years ago • 4 comments

Trying to send mail with smtp service connection in release build and getting below error

Using HostName: smtphost.***.com and port: 587 2020-03-24T22:19:44.1030554Z MailError: Error: getaddrinfo ENOTFOUND

P.S. same connection works fine in Build.

Nehagang avatar Mar 27 '20 20:03 Nehagang

Most likely the agent in question cannot access "smtphost**" Was the release agent a Hosted agent?

saikrishnav avatar Mar 27 '20 21:03 saikrishnav

@saikrishnav @LeahSchwartz I have the same problem. I use an agent job, in a release pipeline. The smtp URL, the port, username and password are correct. Still, I get an error: MailError: Error: getaddrinfo ENOTFOUND

image

evdosych avatar Aug 11 '20 21:08 evdosych

@saikrishnav @LeahSchwartz I have the same problem. I use an agent job, in a release pipeline. The smtp URL, the port, username and password are correct. Still, I get an error: MailError: Error: getaddrinfo ENOTFOUND

image

Hi did you get answer to this? I am getting same error, how to resolve?

madhavi-vasapalli avatar Nov 23 '21 01:11 madhavi-vasapalli

Same problem in local testing. Would appreciate an update.

RobDBob avatar Mar 14 '22 12:03 RobDBob