Forum Discussion
MarcVHB
Feb 19, 2020Copper Contributor
Can't send SMTP mail after setting Default Security in Office 365
After I activated the 'Default Security' in Office 365, the multifunctionals can't scan-to-mail . I get error SmtpCmdResp: 535 5.7.3 Authentication unsuccessful [LO2P265CA0457.GBRP265.PROD.OUTLOOK...
- Dec 01, 2020
LusoAdmin Hey there. I'll put the solution here because as far as I can tell, everyone should also have that problem now. It took 1 week with the Microsoft support to finally find the solution. Just like I thought, because now the default security is enabled when you create a new tenant, even if you disable it, smtp somehow stays disabled and that overrides the settings in your admin panel.
All you have to do is enable it in Powershell. To connect with Powershell, first you have to execute this:
Connect-MsolService
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnlineThen you enter your admin credentials. After that, you can check the "smtp disabled" flag, it should be set to "true":
Get-TransportConfig | Format-List SmtpClientAuthenticationDisabled
To enable smtp and get things working again, you enter this command:
Set-TransportConfig -SmtpClientAuthenticationDisabled $false
Worked for all my tenants. I hope this helps you too!
MarcVHB
Nov 12, 2020Copper Contributor
Today I had the problem again with a new Office 365 tenant. He couldn't send smtp mails. It looks like MS is activating the Default Security for new tenant now. Lukely, after disabling the Default Security smtp sending was working.
ssimard
Nov 12, 2020Copper Contributor
MarcVHB My problem is that even after disabling Default Security it still doesn't work. I have like 10 of my tenants with that problem, and an other 10 which are working fine.
- LusoAdminDec 01, 2020Copper ContributorSame here, old tenant using a non TLS conector to relay email to internal and external email addresses , filtered by Fixed Public IP Address, as supported by Microsoft works perfectly, no Security Defaults or annoying MFA ACTIVE.
New tenant, came with Security Defaults active by default (thanks Microsoft), which I have disabled in Azure Portal, doesn't work with the same exact connector configuration! We use this for our multifunctional printers to scan documents.... Spend 1 hour yesterday with Microsoft on the phone, they check both tenants, checked pretty much what i have already checked and reach no conclusion.... They told me that tenant was dehydrated, they would do something on the background and that they would get back in touch today!
2 Days fighting this stupid problem when I have other important things to do!- ssimardDec 01, 2020Copper Contributor
LusoAdmin Hey there. I'll put the solution here because as far as I can tell, everyone should also have that problem now. It took 1 week with the Microsoft support to finally find the solution. Just like I thought, because now the default security is enabled when you create a new tenant, even if you disable it, smtp somehow stays disabled and that overrides the settings in your admin panel.
All you have to do is enable it in Powershell. To connect with Powershell, first you have to execute this:
Connect-MsolService
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnlineThen you enter your admin credentials. After that, you can check the "smtp disabled" flag, it should be set to "true":
Get-TransportConfig | Format-List SmtpClientAuthenticationDisabled
To enable smtp and get things working again, you enter this command:
Set-TransportConfig -SmtpClientAuthenticationDisabled $false
Worked for all my tenants. I hope this helps you too!
- PhilipD4GoodFeb 12, 2021Copper Contributor
ssimard Thank you for this info.
Does this work with Security Defaults on or did you also have to disable Security Defaults and leave it off for your tenants?