Hello everyone, sorry for the inconvenience, I try to change itop and well, always one problem after another
The problem is that by configuring to do the PHP test, I get the following error.
Error: 'Connection could not be established with host smtp.office365.com :stream_socket_client(): php_network_getaddresses: getaddrinfo for smtp.office365.com failed: Temporary failure in name resolution'
What should I do? I do not know how to solve this problem, in all the solutions that I have found I have seen the same configuration and it does not work for me, the email that I have placed in smtp.host is the one that my company has enabled in Microsoft 365, the email should have a special configuration? Something I should have configured in parallel with the itop file editor configuration?
Thank you for answering!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have to add a dns address so that my VM would have internet and after having internet I did a test and it gives me this error:
Error: 'Failed to authenticate on SMTP server with username "asistenciadig@artiacai.com" using 2 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535 5.7.3 Authentication unsuccessful
[MN2PR10CA0016.namprd10.prod.outlook.com 2023-07-12T10:12:45.128Z 08DB81D9F5C9DD2B] ". Authenticator XOAUTH2 returned Expected response code 235 but got code "535", with message "535 5.7.3 Authentication unsuccessful
This does seem to indicate an issue with your authentication. Try reconfiguring it step by step, according to what's specified in the iTop documentation.
If still not working, share (censored) screenshots of the settings
Last edit: Jeffrey Bostoen 2023-07-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks I'm seeing it but I almost don't understand, from what I see I have to do Oauth? There is no other way to be able to have the mail enabled only using the other way?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You're relying on Microsoft O365's SMTP; which is becoming more strict and I think it does require OAuth 2.0 at this point as well. So I'd start there.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I see, well, I don't know how else other than smtp O365, I've been told that I could do it with swift but I haven't found documentation that explains how I should implement it, there's no other way I can configure iTop for emails.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, I have read it several times, only that in the company they want to avoid authenticating by azure, here we have azure, that's why I was looking for another way to send and receive emails and alerts in a way that does not require OAuth, I have been looking and I can't find that something else to do, as a last resort I will propose OAuth again, I do not understand why it gives me so many errors, as a host I am adding an email that the company enabled me and I do not know if that also has drawbacks, is there any possibility to write by private message and show the uncensored settings to see if any of that is wrong? Thank you.
Last edit: Jose Cedeño 2023-07-14
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't think so, I don't have another SMTP server, any ideas? I guess the only option will be OAuth, one question, do you know anything about email with swift? Thank you so much!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have solved the problem, I found an alternative SMTP server for free, as this service that I am implementing has an extremely low flow of emails so, there will be no problem with the limited number of emails that this service that I have found gives me, so this might not be a very practical solution but at least it works!
Thank you so much, have a good day.
👍
1
🎉
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;smtp.office365.com. IN A
;; ANSWER SECTION:
smtp.office365.com. 211 IN CNAME outlook.office365.com.
outlook.office365.com. 36 IN CNAME ooc-g2.tm-4.office.com.
ooc-g2.tm-4.office.com. 58 IN CNAME outlook.ms-acdc.office.com.
outlook.ms-acdc.office.com. 1 IN CNAME MNZ-efz.ms-acdc.office.com.
MNZ-efz.ms-acdc.office.com. 4 IN A 52.96.88.82
MNZ-efz.ms-acdc.office.com. 4 IN A 52.96.32.178
MNZ-efz.ms-acdc.office.com. 4 IN A 52.96.109.194
MNZ-efz.ms-acdc.office.com. 4 IN A 52.96.111.114
I have the same issue here. It says : Error: Failed to authenticate on SMTP server with username "xxxxxxx@xxxxxx.com" using 2 possible authenticators
I have iTop version 3.0.0-beta2-7720 du 2021-07-06 07:38:25
Modèle de données: 3.0.0-beta2
MySQL: 10.3.38-MariaDB-0ubuntu0.20.04.1
PHP: 7.4.3-4ubuntu2.19
It stops working last week without changing anythig.
Have any clue ?
Thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone, sorry for the inconvenience, I try to change itop and well, always one problem after another
The problem is that by configuring to do the PHP test, I get the following error.
Error: 'Connection could not be established with host smtp.office365.com :stream_socket_client(): php_network_getaddresses: getaddrinfo for smtp.office365.com failed: Temporary failure in name resolution'
My settings.
'email_default_sender_address' => '',
'email_default_sender_label' => '',
'email_transport' => 'SMTP',
'email_transport_smtp.encryption' => 'tls',
'email_transport_smtp.host' => 'smtp.office365.com',
'email_transport_smtp.password' => 'xxxxxxxxxxxx',
'email_transport_smtp.port' => '587','
'email_transport_smtp.username' => 'xxxxx@xxxxx',
I do not understand what is happening, if someone could help me I would be grateful.
Temporary failure in name resolution is a message which is usually DNS-related. For some reason, your server could not resolve smtp.office365.com
What should I do? I do not know how to solve this problem, in all the solutions that I have found I have seen the same configuration and it does not work for me, the email that I have placed in smtp.host is the one that my company has enabled in Microsoft 365, the email should have a special configuration? Something I should have configured in parallel with the itop file editor configuration?
Thank you for answering!
Check on the webserver on which iTop is running if you can properly resolve smtp.office365.com using a DNS server.
You mean... nslookup smtp.office365.com?
If you're on Windows, yes.
Or dig smtp.office365.com on most Linux servers.
I have to add a dns address so that my VM would have internet and after having internet I did a test and it gives me this error:
Error: 'Failed to authenticate on SMTP server with username "asistenciadig@artiacai.com" using 2 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535 5.7.3 Authentication unsuccessful
[MN2PR10CA0016.namprd10.prod.outlook.com 2023-07-12T10:12:45.128Z 08DB81D9F5C9DD2B] ". Authenticator XOAUTH2 returned Expected response code 235 but got code "535", with message "535 5.7.3 Authentication unsuccessful
[MN2PR10CA0016.namprd10.prod.outlook.com 2023-07-12T10:12:55.440Z 08DB81D9F5C9DD2B] ".'
This does seem to indicate an issue with your authentication. Try reconfiguring it step by step, according to what's specified in the iTop documentation.
If still not working, share (censored) screenshots of the settings
Last edit: Jeffrey Bostoen 2023-07-12
Ok, here I leave the configuration.
In iTop: did you generate an OAuth 2.0 token, and add the SMTP label?
No, I haven't created any Oauth 2.0 token, either, and the SMTP tag was written by myself in the configuration part of the screenshot I sent you.
You might want to read this: https://www.itophub.io/wiki/page?id=2_7_0%3Aadmin%3Aoauth
In the screenshots, pay attention to the "Scope" => "SMTP" tag.
Last edit: Jeffrey Bostoen 2023-07-12
Thanks I'm seeing it but I almost don't understand, from what I see I have to do Oauth? There is no other way to be able to have the mail enabled only using the other way?
You're relying on Microsoft O365's SMTP; which is becoming more strict and I think it does require OAuth 2.0 at this point as well. So I'd start there.
I see, well, I don't know how else other than smtp O365, I've been told that I could do it with swift but I haven't found documentation that explains how I should implement it, there's no other way I can configure iTop for emails.
Have you checked https://www.itophub.io/wiki/page?id=2_7_0:admin:oauth ?
Yes, I have read it several times, only that in the company they want to avoid authenticating by azure, here we have azure, that's why I was looking for another way to send and receive emails and alerts in a way that does not require OAuth, I have been looking and I can't find that something else to do, as a last resort I will propose OAuth again, I do not understand why it gives me so many errors, as a host I am adding an email that the company enabled me and I do not know if that also has drawbacks, is there any possibility to write by private message and show the uncensored settings to see if any of that is wrong? Thank you.
Last edit: Jose Cedeño 2023-07-14
If you have another SMTP server (not Microsoft O365), you might not need to configure OAuth 2.0. That's also an option.
I don't think so, I don't have another SMTP server, any ideas? I guess the only option will be OAuth, one question, do you know anything about email with swift? Thank you so much!
Hello Jeffrey,
I have solved the problem, I found an alternative SMTP server for free, as this service that I am implementing has an extremely low flow of emails so, there will be no problem with the limited number of emails that this service that I have found gives me, so this might not be a very practical solution but at least it works!
Thank you so much, have a good day.
I'm still trying to solve the problem but can't complete the iTop email test utility.
Any other idea?
Thank you so much.
I have Ubuntu and i did dig smtp.office365, check this.
; <<>> DiG 9.18.12-0ubuntu0.22.04.2-Ubuntu <<>> smtp.office365.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10179
;; flags: qr rd ra; QUERY: 1, ANSWER: 8, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;smtp.office365.com. IN A
;; ANSWER SECTION:
smtp.office365.com. 211 IN CNAME outlook.office365.com.
outlook.office365.com. 36 IN CNAME ooc-g2.tm-4.office.com.
ooc-g2.tm-4.office.com. 58 IN CNAME outlook.ms-acdc.office.com.
outlook.ms-acdc.office.com. 1 IN CNAME MNZ-efz.ms-acdc.office.com.
MNZ-efz.ms-acdc.office.com. 4 IN A 52.96.88.82
MNZ-efz.ms-acdc.office.com. 4 IN A 52.96.32.178
MNZ-efz.ms-acdc.office.com. 4 IN A 52.96.109.194
MNZ-efz.ms-acdc.office.com. 4 IN A 52.96.111.114
;; Query time: 112 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Wed Jul 12 10:24:22 CEST 2023
;; MSG SIZE rcvd: 218
Hello,
I have the same issue here. It says : Error: Failed to authenticate on SMTP server with username "xxxxxxx@xxxxxx.com" using 2 possible authenticators
I have iTop version 3.0.0-beta2-7720 du 2021-07-06 07:38:25
Modèle de données: 3.0.0-beta2
MySQL: 10.3.38-MariaDB-0ubuntu0.20.04.1
PHP: 7.4.3-4ubuntu2.19
It stops working last week without changing anythig.
Have any clue ?
Thank you
I'd suggest upgrading to the latest versions of iTop 3.0 (or perhaps 3.1) and the latest versions of Mail to Ticket first.
What e-mail server are you using? Microsoft Office 365?