I have not configured remote mailbox only the outgoing smtp, so I configure remote mailbox? And if it doesn't work, do I do the link?
What is the correct configuration to send emails with office 365 accounts?
Well don't configure Remote Mailbox tab if you aren't planning on using it. I was just wondering if you've already configured OAuth2 for that as you can just reuse the same auth info instead of configure OAuth2 in 2 separate places.
At this point I'd recommend following the instructions I linked in the above post.
Cheers.
I continue with the same problems, I already followed the steps to solve these errors but they still appear.
- Edited
I followed the steps, I only load the fields where I saved being disabled, however it generates the record but it continues to show the same error when I re-enable and save.
- Edited
Then maybe you didn’t configure the app correctly in O365. Make sure you followed the documentation exactly as described.
If all else fails look at the mail logs on your webserver to see where it’s failing. Unfortunately I’m unable to replicate this so I can’t be of much help without more information/logs.
Cheers.
What is the correct documentation to configure in Office 365?
- Edited
This link:
Like make absolutely sure you enabled the 2 checkboxes, used the right Client Secret Value, added the correct API permissions, provided admin consent to the permissions, etc.
Cheers.
Indeed, all the configuration is correct according to the document that he gave me.
- Edited
Then I'm at a loss. Everything seems correct here... Maybe try disabling Authenticated SMTP and re-enabling it for the email (in O365 Admin Center)? We have seen in rare cases before that we had to do this with IMAP for some users but never SMTP; but you never know.
Cheers.
- Edited
If I don't have this in the php.ini added, it gives me an error when sending or answering a ticket, I don't know how this system works that doesn't work for me in both configurations.
- Edited
PHPMail/Sendmail is used as a fallback (last resort) when SMTP fails. So this shouldn't be necessary once you get SMTP working.
Maybe try disabling Authenticated SMTP and re-enabling it for the email (in O365 Admin Center)?
Are you using localhost or a domain name with HTTPS configured? If HTTPS, are you using a certificate from a trusted CA or a certificate from a local CA (self-signed)?
Cheers.
I use local host only, all the installation is on a local server
- Edited
Okay, that should be fine then. Did you try this:
Maybe try disabling Authenticated SMTP and re-enabling it for the email (in O365 Admin Center)?
Cheers.
- Best Answerset by KevinTheJedi
Hello, I managed to solve it, everything was fine, I just needed to enable a personalized policy in the company's firewall so that the equipment would go out through port 25 and 587 and that's it, it let me save the SMTP configuration.
AlfonsoPC Hi AlfonsoPC, I'm in the same situation as you, but I can't figure out how to fix it. Could you tell me what policy you customized in the firewall? Thanks!