Forum Discussion
How to deny/allow some user can use smtp office365 ?
- Jun 28, 2019Hi Tien Ngo Thanh,
SMTP is usually used with POP3 configuration - so the easiest answer to this is to disable POP3 and IMAP4 protocols on the users mailboxes in the Exchange Online Admin Centre or via Powershell
https://docs.microsoft.com/en-gb/exchange/troubleshoot/configure-mailboxes/pop3-imap-owa-activesync-office-365
Hope that helps to answer your question!
Best, Chris
ChrisHoardMVP SO if I need allow one user can use smtp then only need allow POP3 and IMAP ?
Hope that clarifies!
Best, Chris
- Tien Ngo ThanhJul 01, 2019Iron Contributor
ChrisHoardMVP How long effect after disbale pop and imap . Because I just try disbaled one user but this command below as still sent email
Send-MailMessage –From test@test.com –To test1@test.com –Subject “Test Email” –Body “Test SMTP Relay Service” -SmtpServer smtp.office365.com -Credential $cred -UseSsl -Port 587
Best regards,
Thanks
- Jul 01, 2019
Try this on the mailbox which is causing the issue.
https://www.michev.info/Blog/Post/2075/controlling-smtp-authentication-for-office-365-mailboxes
Set-CASMailbox mailboxname -SmtpClientAuthenticationDisabled $true
Let me know how it goes
Best, Chris- Tien Ngo ThanhJul 01, 2019Iron Contributor
ChrisHoardMVP We use hybrid office 365 , what happen if disable smtp ? current email we user web , outlook , mobile .
please suggest help me and if disbale this only effect these user use powershell then ok .
how to disbale smtp as default when add new mailbox office365 ?
Best Regards
Tien