{"id":229,"date":"2025-10-22T11:58:54","date_gmt":"2025-10-22T14:58:54","guid":{"rendered":"https:\/\/thiagoldaniel.com.br\/?p=229"},"modified":"2025-10-22T11:58:54","modified_gmt":"2025-10-22T14:58:54","slug":"habilitar-smtp-em-uma-conta-office365","status":"publish","type":"post","link":"https:\/\/thiagoldaniel.com.br\/index.php\/2025\/10\/22\/habilitar-smtp-em-uma-conta-office365\/","title":{"rendered":"Habilitar SMTP em uma conta Office365."},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Usando PowerShell 7 (pwsh)<\/h2>\n\n\n\n<p>Primeiro, \u00e9 necess\u00e1rio se conectar ao servi\u00e7o ONLINE do EXCHANGE (Office365).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Instalar PowerShell 7 se precisar (Windows 10\/11)\nwinget install Microsoft.PowerShell\n\n# Abra o \"PowerShell 7\" (pwsh) e rode:\nInstall-Module ExchangeOnlineManagement -Scope CurrentUser -Force\nImport-Module ExchangeOnlineManagement\nConnect-ExchangeOnline -UserPrincipalName &lt;usuarioAdministrador>@&lt;dominio> -ShowBanner:$false<\/code><\/pre>\n\n\n\n<p>Depois de se conectar, executar a sequencia abaixo para habilitar o SMTP em uma conta.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Mailbox -Identity &lt;usuario@dominio> | Out-Null\nSet-CASMailbox -Identity &lt;usuario@dominio> -SmtpClientAuthenticationDisabled $false\nGet-CASMailbox -Identity &lt;usuario@dominio> | Select Identity,PrimarySmtpAddress,SmtpClientAuthenticationDisabled\n<\/code><\/pre>\n\n\n\n<p>Subistitua &lt;usuario@dominio> pela conta de usuario que deseja habilitar o SMTP.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Usando PowerShell 7 (pwsh) Primeiro, \u00e9 necess\u00e1rio se conectar ao servi\u00e7o ONLINE do EXCHANGE (Office365). Depois de se conectar, executar a sequencia abaixo para habilitar o SMTP em uma conta. Subistitua &lt;usuario@dominio> pela conta de usuario que deseja habilitar o SMTP.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,78,27],"tags":[82,80,81],"class_list":["post-229","post","type-post","status-publish","format-standard","hentry","category-active-directory","category-office365","category-windows-server","tag-email","tag-office365","tag-smtp"],"_links":{"self":[{"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/posts\/229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=229"}],"version-history":[{"count":1,"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/posts\/229\/revisions"}],"predecessor-version":[{"id":230,"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/posts\/229\/revisions\/230"}],"wp:attachment":[{"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}