# Ativar ou desativar correio externo

### Descrição

Este runbook configura se remetentes externos têm permissão para enviar e-mails a um grupo do Microsoft 365. Ele usa o Exchange Online para ativar ou desativar a configuração RequireSenderAuthenticationEnabled. Também pode consultar o estado atual sem fazer alterações.

### Localização

Grupo → Email → Ativar Ou Desativar Email Externo

**Nome completo do Runbook**

rjgit-group\_mail\_enable-or-disable-external-mail

### Permissões

#### Permissões de aplicativo

* **Tipo**: Office 365 Exchange Online
  * Exchange.ManageAsApp

#### funções de RBAC

* administrador do Exchange

### Parâmetros

#### GroupId

ID do objeto do grupo do Microsoft 365.

| Propriedade  | Valor  |
| ------------ | ------ |
| Obrigatório  | true   |
| Valor padrão |        |
| Tipo         | String |

#### Ação

"Ativar Email Externo" (valor final: 0), "Desativar Email Externo" (valor final: 1) ou "Consultar apenas o estado atual" (valor final: 2) podem ser selecionados como ação a executar. Se definido como 0, o runbook permitirá que remetentes externos enviem e-mails ao grupo. Se definido como 1, bloqueará remetentes externos de enviarem e-mails ao grupo. Se definido como 2, retornará se o envio de email externo está atualmente ativado ou desativado para o grupo, sem fazer quaisquer alterações.

| Propriedade  | Valor |
| ------------ | ----- |
| Obrigatório  | false |
| Valor padrão | 0     |
| Tipo         | Int32 |

[Voltar para a visão geral da Referência de Runbook](/pt/automacao/runbooks/runbook-references.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.realmjoin.com/pt/automacao/runbooks/runbook-references/group/mail/enable-or-disable-external-mail.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
