I am trying to send mails via Azure as lined out here.
I can successfully send mails manually via cURL and via python's sendmail.
The email-notify pipe (v.0.13.2) however fails, as it seems like the SMT server (smtp.azurecomm.net) does not support noop. The log with the debug mode enabled shows
reply: b'250 2.6.0 72a61f1a-199e-401d-b228-5dba15b0d9ee Queued mail for delivery\r\n'
reply: retcode (250); Msg: b'2.6.0 72a61f1a-199e-401d-b228-5dba15b0d9ee Queued mail for delivery'
data: (250, b'2.6.0 72a61f1a-199e-401d-b228-5dba15b0d9ee Queued mail for delivery')
send: 'noop\r\n'
reply: b'502 5.3.3 Command not implemented\r\n'
reply: retcode (502); Msg: b'5.3.3 Command not implemented'
send: 'quit\r\n'
✖ Failed to send email to <target>. : response (502, b'5.3.3 Command not implemented')
reply: b'221 2.0.0 Service closing transmission channel\r\n'
reply: retcode (221); Msg: b'2.0.0 Service closing transmission channel'
Any advice?
Hi Benedikt and welcome to the community!
I have reached out to the pipes team regarding this issue.
In the meantime, if you can successfully send emails using curl, you can use the curl command in your bitbucket-pipelines.yml file, in your pipeline step's script, instead of using the pipe. The Docker image that you use as a build container for this step will need to have curl preinstalled, or (if it doesn't) you could install curl by adding the necessary commands on your step's script.
Kind regards,
Theodora
Hi @Benedikt Nerb,
With regards to the pipe issue, it is best to create a support ticket for further investigation.
You can create a ticket via https://support.atlassian.com/contact/#/, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.
In the ticket description, please provide the URL of the failed build so that the engineer working on the ticket can help you faster. A support ticket you create is only visible to you, Atlassian staff, and any other participants you may add, so anything you post there won't be publicly visible.
If you experience any issues, please feel free to let me know, and I can create the support ticket on your behalf.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.