Jun 28 2019 08:36 AM
hi
please suggest help me way to deny/allow some user can use smtp office365.
Best Regards,
Thanks
Jun 28 2019 08:46 AM
SolutionJun 28 2019 09:25 AM
@Christopher Hoard SO if I need allow one user can use smtp then only need allow POP3 and IMAP ?
Jun 28 2019 09:45 AM
Jun 30 2019 06:54 PM - edited Jun 30 2019 06:58 PM
@Christopher Hoard 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 01:56 AM - edited Jul 01 2019 04:09 AM
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
Jul 01 2019 02:06 AM - edited Jul 01 2019 02:07 AM
@Christopher Hoard 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
Jul 01 2019 02:11 AM
Jul 01 2019 03:03 AM
hi
I just try disbale smtp then user now can not send smtp
Thanks your support
Best regards,
Tien
Jul 01 2019 03:06 AM
Jul 01 2019 04:01 AM
Hi
I needed disable smtp and now i got it from your support . but please note is when disbale POP and IMAP then smtp still allow not disbale that need runnning your commnad guide to disable it if need
thanks your support again
more information
This parameter is available only in the cloud-based service.
The SmtpClientAuthenticationDisabled parameter specifies whether to disable authenticated SMTP (SMTP AUTH) for the mailbox. Examples of clients and services that require authenticated SMTP to send email messages include:
POP3 and IMAP4 clients.
Devices with scan to email capability.
Workflow applications that send email notifications.
Online services that send messages using internal email addresses in the organization.
Valid values for this parameter are:
$true: Authenticated SMTP is disabled for the mailbox.
$false: Authenticated SMTP is enaled for the mailbox.
blank ($null): This is the default value. The authenticated SMTP setting for the mailbox is controlled by the corresponding SmtpClientAuthenticationDisabled parameter on the Set-TransportConfig cmdlet for the whole organization. By default, authenticated SMTP is enabled for the organization ($false), which means authenticated SMTP is also enabled for the mailbox
Best Regards
Tien
Jun 28 2019 08:46 AM
Solution