<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Exchange Online &#8211; Miroslav Šraga</title>
	<atom:link href="https://www.sraga.cz/tag/exchange-online/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sraga.cz</link>
	<description>Sdílím své zkušenosti s Microsoft 365 a Azure</description>
	<lastBuildDate>Sun, 25 Jan 2026 13:03:12 +0000</lastBuildDate>
	<language>cs</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Azure Communication Services od A po Z</title>
		<link>https://www.sraga.cz/azure-communication-services-od-a-po-z/</link>
					<comments>https://www.sraga.cz/azure-communication-services-od-a-po-z/#respond</comments>
		
		<dc:creator><![CDATA[Miroslav Šraga]]></dc:creator>
		<pubDate>Sun, 25 Jan 2026 13:03:12 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Azure AD / Entra ID]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<category><![CDATA[Správa IT]]></category>
		<category><![CDATA[Azure Communication Services]]></category>
		<category><![CDATA[Basic Authentication]]></category>
		<category><![CDATA[Entra ID]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange Online]]></category>
		<category><![CDATA[PowerShell]]></category>
		<guid isPermaLink="false">https://www.sraga.cz/?p=1465</guid>

					<description><![CDATA[Azure Communication Services (ACS) je cloudová platforma, která umožňuje integrovat e‑mail, SMS, chat, hlas i video do vlastních aplikací přes jednoduchá API a SDK. Využívá zabezpečení a identitu Microsoft Entra ID (OAuth 2.0), nabízí škálování, telemetrii a řízení nákladů, takže se hodí pro zasílání základních notifikací až po komplexní komunikační kanály. Pro zasílání e‑mailů je ... <a title="Azure Communication Services od A po Z" class="read-more" href="https://www.sraga.cz/azure-communication-services-od-a-po-z/" aria-label="Číst více o Azure Communication Services od A po Z">Číst dál</a>]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="1465" class="elementor elementor-1465" data-elementor-post-type="post">
				<div class="elementor-element elementor-element-bbdcef0 e-flex e-con-boxed e-con e-parent" data-id="bbdcef0" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-2c44e8c elementor-widget elementor-widget-text-editor" data-id="2c44e8c" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Azure Communication Services (ACS) je <strong>cloudová</strong> platforma, která umožňuje <strong>integrovat e‑mail, SMS, chat, hlas i video do vlastních aplikací</strong> přes jednoduchá API a SDK.</p><p>Využívá zabezpečení a identitu Microsoft Entra ID (<strong>OAuth</strong> 2.0), nabízí škálování, telemetrii a řízení nákladů, takže se hodí pro zasílání základních notifikací až po komplexní komunikační kanály.</p><p>Pro zasílání e‑mailů je zde komponenta <strong>Azure Communication Services Email</strong>, která umožňuje programově <strong>odesílat</strong> například transakční <strong>zprávy</strong>, <strong>maily</strong> z <strong>multifunkčních</strong> zařízení, z internetových <strong>formulářů</strong>, <strong>skriptů</strong>, <strong>Logic Apps</strong>, Microsoft <strong>Sentinel</strong> a podobně.</p><p>Díky tomu může sloužit jako <strong><a href="https://www.sraga.cz/exchange-online-microsoft-vypne-basic-autentizaci-pro-client-submission-smtp-auth/" target="_blank" rel="noopener">náhrada za končící SMTP Basic Authentication</a></strong>. Klíč je v tom, že namísto běžných přihlašovacích údajů se v zařízení či aplikaci použije moderní ověřování přes Entra ID a zprávy se odesílají přes Communication Srvices Email standardním SMTP protokolem na portu 25 nebo 587.</p><p>Výsledkem je spolehlivější doručování, lepší audit a governance a výrazně bezpečnější model než přímé posílání přes SMTP s Basic autentizací ale při zachování naprosto totožné funkcionality.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-6d7587d elementor-toc--minimized-on-tablet elementor-widget elementor-widget-table-of-contents" data-id="6d7587d" data-element_type="widget" data-settings="{&quot;exclude_headings_by_selector&quot;:[],&quot;no_headings_message&quot;:&quot;No headings were found on this page.&quot;,&quot;headings_by_tags&quot;:[&quot;h2&quot;,&quot;h3&quot;,&quot;h4&quot;,&quot;h5&quot;,&quot;h6&quot;],&quot;marker_view&quot;:&quot;numbers&quot;,&quot;minimize_box&quot;:&quot;yes&quot;,&quot;minimized_on&quot;:&quot;tablet&quot;,&quot;hierarchical_view&quot;:&quot;yes&quot;,&quot;min_height&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}" data-widget_type="table-of-contents.default">
				<div class="elementor-widget-container">
									<div class="elementor-toc__header">
						<h4 class="elementor-toc__header-title">
				Obsah			</h4>
										<div class="elementor-toc__toggle-button elementor-toc__toggle-button--expand" role="button" tabindex="0" aria-controls="elementor-toc__6d7587d" aria-expanded="true" aria-label="Open table of contents"><svg aria-hidden="true" class="e-font-icon-svg e-fas-chevron-down" viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path d="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"></path></svg></div>
				<div class="elementor-toc__toggle-button elementor-toc__toggle-button--collapse" role="button" tabindex="0" aria-controls="elementor-toc__6d7587d" aria-expanded="true" aria-label="Close table of contents"><svg aria-hidden="true" class="e-font-icon-svg e-fas-chevron-up" viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path d="M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"></path></svg></div>
					</div>
				<div id="elementor-toc__6d7587d" class="elementor-toc__body">
			<div class="elementor-toc__spinner-container">
				<svg class="elementor-toc__spinner eicon-animation-spin e-font-icon-svg e-eicon-loading" aria-hidden="true" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg"><path d="M500 975V858C696 858 858 696 858 500S696 142 500 142 142 304 142 500H25C25 237 238 25 500 25S975 237 975 500 763 975 500 975Z"></path></svg>			</div>
		</div>
						</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-d8ce7e1 e-flex e-con-boxed e-con e-parent" data-id="d8ce7e1" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-9212d06 elementor-widget elementor-widget-heading" data-id="9212d06" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Azure Communication Services - Email Comminication - celý postup</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-6be27a8 elementor-widget elementor-widget-video" data-id="6be27a8" data-element_type="widget" data-settings="{&quot;youtube_url&quot;:&quot;https:\/\/youtu.be\/snOQQRrmeEw&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}" data-widget_type="video.default">
				<div class="elementor-widget-container">
							<div class="elementor-wrapper elementor-open-inline">
			<div class="elementor-video"></div>		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-8488f8d elementor-widget elementor-widget-text-editor" data-id="8488f8d" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Tento návod je mixem níže uvedených video-návodu, které jsem vydal již dříve. Videa jsem spojil tak, aby dávala ucelený postup od A až po Z.</p><p><strong><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f3ac.png" alt="🎬" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Obsah:</strong></p><p>00:00 &#8211; Úvod &#8211; Představení Azure Communication Services<br />02:50 &#8211; Základní limity služby<br />03:40 &#8211; Ceny (Azure Calculator)<br />06:39 &#8211; Důležité úkony, postup nasazení<br />09:05 &#8211; Vytvoření prostředku Azure Communication Service<br />11:00 &#8211; Vytvoření prostředku Email Communication Services<br />13:25 &#8211; Domain provisioning<br />&#8211; Free Azure subdomain<br />&#8211; Custom domain<br />17:45 &#8211; Propojení Azure Communication Service a Email Communication Services<br />19:00 &#8211; TEST: Odeslání e-mailu z Email Communication Services (Azure portál) &#8211; Free Azure subdomain<br />21:35 &#8211; Keys &amp; Connection strings &#8211; pro použití v Logic Apps a prostředí Azure<br />22:15 &#8211; Přidání vlastní domény do Email Communication Services (DNS: SPF, DKIM)<br />29:05 &#8211; TEST: Odeslání e-mailu z Email Communication Services (Azure portál) &#8211; vlastní doména / custom domain<br />30:10 &#8211; SMTP RELAY: Řízení přístupu IAM, Entra ID &#8211; Registrovaná aplikace &#8211; Communication and Email service Owner<br />&#8211; Udělení oprávnění<br />&#8211; Vytvoření Client secret pro Registrovanou aplikaci<br />&#8211; Vytvoření SMTP Username (uživatelské jméno pro SMTP)<br />37:24 &#8211; TEST: Odeslání emailu pomocí PowerShell scriptu přes Email Communication Services &#8211; ověření SMTP jméno + heslo (přes Registrovanou aplikaci a Client Secret / OAuth)<br />39:37 &#8211; TEST: Odeslání emailu pomocí PHP scriptu přes Email Communication Services &#8211; ověření SMTP jméno + heslo (přes Registrovanou aplikaci a Client Secret / OAuth)<br />40:45 &#8211; Nastavení vlastní identifikace odesílatele (MailFrom) namísto DoNotReply<br />46:15 &#8211; TEST &#8211; Odeslání e-mailu pomocí PowerShell skriptu s vlastní identifikací odesílatele (MailFrom)<br />46:20 &#8211; TEST &#8211; Odeslání e-mailu pomocí PHP skriptu s vlastní identifikací odesílatele (MailFrom)<br />50:08 &#8211; Azure Logic App &#8211; napojení na Communication Services, odeslání e-mailu<br />55:50 &#8211; Microsoft Sentinel &#8211; napojení na Communication Services, odeslání e-mailu<br />1:09:35 &#8211; Závěrečné shrnutí</p>								</div>
				</div>
				<div class="elementor-element elementor-element-984259f elementor-widget elementor-widget-heading" data-id="984259f" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Azure Communication Services - odesílání e-mailu bez identity uživatele (Sentinel, Logic App)</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-ce85202 elementor-widget elementor-widget-video" data-id="ce85202" data-element_type="widget" data-settings="{&quot;youtube_url&quot;:&quot;https:\/\/youtu.be\/iOPTcYNzg3w&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}" data-widget_type="video.default">
				<div class="elementor-widget-container">
							<div class="elementor-wrapper elementor-open-inline">
			<div class="elementor-video"></div>		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-6d2e6f8 elementor-widget elementor-widget-text-editor" data-id="6d2e6f8" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>V tomto videu se dozvíte, jakým způsobem <strong>odeslat e-mail ze služby Microsoft Sentinel</strong> nebo z jakékoliv <strong>Logic App</strong>, aniž by bylo potřeba použít identitu uživatele &#8211; tedy bez nutnosti použití identity uživatele s licencí Exchange Online. K odeslání e-mailů tedy nebudeme používat napojení na účet uživatele, ale použijeme službu Azure Communication Services a konkrétně komponentu Email Communication Service.</p><p><strong><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f3ac.png" alt="🎬" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Obsah:</strong><br />00:00 &#8211; Úvod<br />01:33 &#8211; Základní limity služby<br />02:30 &#8211; Ceny<br />05:33 &#8211; Vytvoření prostředku Azure Communication Service<br />07:35 &#8211; Vytvoření prostředku Email Communication Services<br />&#8211; Free Azure subdomain<br />&#8211; Custom domain<br />14:30 &#8211; Propojení Azure Communication Service a Email Communication Services<br />18:04 &#8211; Odeslání e-mailu z Logic App<br />24:40 &#8211; Nastavení vlastní domény (Custom domain)<br />32:17 &#8211; Azure Sentinel &#8211; jak odeslat e-mail s upozorněním na nový incident pomocí Email Communication Services<br />46:50 &#8211; Dodatečné informace:<br />&#8211; User Engagement Tracking<br />&#8211; MailFrom Addresses (vlastní adresy odesílatele)</p>								</div>
				</div>
				<div class="elementor-element elementor-element-ba07b65 elementor-widget elementor-widget-heading" data-id="ba07b65" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Odesílání emailů přes SMTP relay pomocí Microsoft Azure Communication Services</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-941694e elementor-widget elementor-widget-video" data-id="941694e" data-element_type="widget" data-settings="{&quot;youtube_url&quot;:&quot;https:\/\/youtu.be\/9BYnSXbL71c&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}" data-widget_type="video.default">
				<div class="elementor-widget-container">
							<div class="elementor-wrapper elementor-open-inline">
			<div class="elementor-video"></div>		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-d6b500b elementor-widget elementor-widget-text-editor" data-id="d6b500b" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>ACS Email může sloužit jako <strong>náhrada za končící SMTP Basic Authentication</strong>. Klíč je v tom, že namísto běžných přihlašovacích údajů se v zařízení či aplikaci použije <strong>moderní ověřování přes Entra ID</strong> a zprávy se odesílají přes <strong>Communication Services Email</strong> standardním SMTP protokolem na portu 25 nebo 587.</p><p>Výsledkem je spolehlivější doručování, lepší audit a governance a výrazně bezpečnější model než přímé posílání přes SMTP s Basic autentizací ale při zachování naprosto totožné funkcionality.</p><p><strong><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f3ac.png" alt="🎬" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Obsah:</strong><br />00:00 &#8211; Úvod<br />01:50 &#8211; Důležité úkony<br />04:45 &#8211; Konfigurace Azure Communication Services &amp;&amp; Email Communication Services<br />06:45 &#8211; Entra ID &#8211; Registrovaná aplikace<br />09:05 &#8211; Udělení oprávnění<br />09:45 &#8211; Vytvoření Client secret pro Registrovanou aplikaci<br />12:30 &#8211; Vytvoření SMTP Username (uživatelské jméno pro SMTP)<br />13:50 &#8211; TEST &#8211; Odeslání e-mailu pomocí PowerShell skriptu<br />15:47 &#8211; TEST &#8211; Odeslání e-mailu pomocí PHP skriptu<br />16:57 &#8211; Nastavenní vlastní identifikace odesílatele (MailFrom) namísto DoNotReply<br />21:53 &#8211; TEST &#8211; Odeslání e-mailu pomocí PowerShell skriptu s vlastní identifikací odesílatele (MailFrom)<br />22:32 &#8211; TEST &#8211; Odeslání e-mailu pomocí PHP skriptu s vlastní identifikací odesílatele (MailFrom)<br />23:35 &#8211; Tipy na závěr, doporučení, ošetření chyb<br />25:25 &#8211; Zjištění aktuálních kvót<br />26:24 &#8211; Shrnutí, závěr</p><p><strong><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4a1.png" alt="💡" class="wp-smiley" style="height: 1em; max-height: 1em;" />Postup:</strong><br />Microsoft Azure (Subscription)<br />Azure Communication Service (ACS)<br />Email Communication Service (ECS)<br />Internet Domain<br />Domain verification<br />Domain connection to ECS<br />Entra ID Registred App + Generated secret<br />SMTP Accounts<br />Mail From addresses<br />Test</p>								</div>
				</div>
				<div class="elementor-element elementor-element-7abb089 elementor-widget elementor-widget-heading" data-id="7abb089" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">AZURE CLI: Přidání vlastního mailFrom</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-ae140b0 elementor-widget elementor-widget-code-block-for-elementor" data-id="ae140b0" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'># az communication email domain sender-username create --domain-name domena.cz --email-service-name 365lab-1-cs-ecs --resource-group &quot;security-rg&quot; --sender-username &quot;UserName&quot; --username &quot;UserName&quot; --display-name &quot;DisplayName&quot;

az communication email domain sender-username create --domain-name domena.cz --email-service-name 365lab-1-cs-ecs --resource-group &quot;security-rg&quot; --sender-username printer --username printer --display-name Printer</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-55a739a elementor-widget elementor-widget-heading" data-id="55a739a" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">SCRIPT: Odeslání e-mailu pomocí PowerShell a ACS Email</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-5c8ff64 elementor-widget elementor-widget-code-block-for-elementor" data-id="5c8ff64" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'># SmtpSend.ps1
# PowerShell script to send an email via SMTP
# www.sraga.cz

# Define SMTP server settings and email parameters
$SmtpServer = &quot;smtp.azurecomm.net&quot; # Azure Communication Services Email server
$SmtpPort = 587
$SmtpUser = &quot;userName@domena.cz&quot;
$SmtpPass = &quot;clientSecretValue&quot; # Entra ID Registreed Application
$SmtpFrom = &quot;mailFromAddress@domena.cz&quot;
$SmtpTo = &quot;test@domena.cz&quot;
$SmtpSubject = &quot;Test email from PowerShell&quot;
$SmtpBody = &quot;This is a test email sent from PowerShell script.&quot;

# Create secure credentials
$SmtpSecurePwd = ConvertTo-SecureString $SmtpPass -AsPlainText -Force
$SmtpCreds = New-Object System.Management.Automation.PSCredential ($SmtpUser, $SmtpSecurePwd)

# Send the email
Send-MailMessage -From $SmtpFrom -To $SmtpTo -Subject $SmtpSubject -Body $SmtpBody -SmtpServer $SmtpServer -Port $SmtpPort -Credential $SmtpCreds -UseSsl</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-99e1041 elementor-widget elementor-widget-heading" data-id="99e1041" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">SCRIPT: Odeslání e-mailu pomocí PHP a ACS E-mail</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-b7dd87b elementor-widget elementor-widget-code-block-for-elementor" data-id="b7dd87b" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-php'>&lt;?php
/**
 * Minimal SMTP sender (STARTTLS + AUTH LOGIN) without Composer.
 * Tested with Azure Communication Service SMTP: smtp.azurecomm.net:587
 * Author: www.sraga.cz
 */


// ---------------- Example usage ----------------
try {
    smtp_send([
        &#039;host&#039;      =&gt; &#039;smtp.azurecomm.net&#039;,
        &#039;port&#039;      =&gt; 587,
        &#039;username&#039;  =&gt; &#039;userName@domena.cz&#039;,
        &#039;password&#039;  =&gt; &#039;clientSecretValue&#039;,                 // &larr; store securely (env/secret)
        &#039;from&#039;      =&gt; &#039;mailFromAddress@domena.cz&#039;,
        &#039;from_name&#039; =&gt; &#039;mailFromAddress@domena.cz&#039;,
        &#039;to&#039;        =&gt; &#039;test@domena.cz&#039;,
        &#039;subject&#039;   =&gt; &#039;Test email from PHP&#039;,
        &#039;body&#039;      =&gt; &quot;This is a test email sent from a pure-PHP SMTP client.&quot;,
        &#039;debug&#039;     =&gt; true,                 // set true to see SMTP I/O to STDERR
    ]);
    echo &quot;Email sent OK\n&quot;;
} catch (Throwable $e) {
    // Print a clear error if something goes wrong
    fwrite(STDERR, &quot;SMTP error: &quot; . $e-&gt;getMessage() . &quot;\n&quot;);
    exit(1);
}


// ---------------- Functions ----------------

function smtp_send(array $cfg): void
{
    $host        = $cfg[&#039;host&#039;];          // e.g. smtp.azurecomm.net
    $port        = $cfg[&#039;port&#039;] ?? 587;   // 587 for STARTTLS
    $username    = $cfg[&#039;username&#039;];      // SMTP user (e.g. web@domain.cz)
    $password    = $cfg[&#039;password&#039;];      // SMTP password
    $from        = $cfg[&#039;from&#039;];          // RFC5322 From: email address
    $fromName    = $cfg[&#039;from_name&#039;] ?? &#039;&#039;;   // Display name (optional)
    $to          = $cfg[&#039;to&#039;];            // recipient email
    $subject     = $cfg[&#039;subject&#039;];       // subject (UTF-8 ok)
    $body        = $cfg[&#039;body&#039;];          // plain text body
    $timeout     = $cfg[&#039;timeout&#039;] ?? 30;
    $debug       = $cfg[&#039;debug&#039;] ?? false;

    $peerName = $cfg[&#039;peer_name&#039;] ?? $host; // SNI name for TLS

    $context = stream_context_create([
        &#039;ssl&#039; =&gt; [
            &#039;crypto_method&#039;        =&gt; STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT,
            &#039;verify_peer&#039;          =&gt; true,
            &#039;verify_peer_name&#039;     =&gt; true,
            &#039;peer_name&#039;            =&gt; $peerName,
            // If your OS trust store is standard, no need to set cafile/capath.
            // &#039;cafile&#039;            =&gt; &#039;/etc/ssl/certs/ca-certificates.crt&#039;,
            &#039;SNI_enabled&#039;          =&gt; true,
            &#039;disable_compression&#039;  =&gt; true,
        ],
    ]);

    $fp = stream_socket_client(
        &quot;tcp://$host:$port&quot;,
        $errno,
        $errstr,
        $timeout,
        STREAM_CLIENT_CONNECT,
        $context
    );

    if (!$fp) {
        throw new RuntimeException(&quot;Connect failed: $errno $errstr&quot;);
    }
    stream_set_timeout($fp, $timeout);

    // --- Helpers -------------------------------------------------------------
    $read = function() use ($fp, $debug): array {
        $lines = [];
        while (($line = fgets($fp, 2048)) !== false) {
            $lines[] = rtrim($line, &quot;\r\n&quot;);
            if ($debug) { fwrite(STDERR, &quot;S: $line&quot;); }
            // Multi-line replies have format &quot;123-...&quot; and end on &quot;123 ...&quot; (space)
            if (preg_match(&#039;/^\d{3} /&#039;, $line)) break;
        }
        if (empty($lines)) throw new RuntimeException(&quot;No response from server&quot;);
        $code = (int)substr($lines[count($lines)-1], 0, 3);
        return [$code, $lines];
    };

    $send = function(string $cmd) use ($fp, $debug) {
        if ($debug) { fwrite(STDERR, &quot;C: $cmd\n&quot;); }
        fwrite($fp, $cmd . &quot;\r\n&quot;);
    };

    $expect = function(int $want) use ($read) {
        [$code, $lines] = $read();
        if ($code !== $want) {
            $msg = implode(&quot;\n&quot;, $lines);
            throw new RuntimeException(&quot;Expected $want, got $code\n$msg&quot;);
        }
        return $lines;
    };

    // --- SMTP dialogue -------------------------------------------------------
    $expect(220);                                // 220 greeting
    $ehloName = gethostname() ?: &#039;localhost&#039;;
    $send(&quot;EHLO $ehloName&quot;);
    $expect(250);

    // STARTTLS
    $send(&quot;STARTTLS&quot;);
    $expect(220);                                // Ready to start TLS
    if (!stream_socket_enable_crypto($fp, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT)) {
        throw new RuntimeException(&quot;TLS handshake failed&quot;);
    }

    // Re‑EHLO after STARTTLS
    $send(&quot;EHLO $ehloName&quot;);
    $expect(250);

    // AUTH LOGIN
    $send(&quot;AUTH LOGIN&quot;);
    $expect(334);                                // &quot;VXNlcm5hbWU6&quot; (Username:)
    $send(base64_encode($username));
    $expect(334);                                // &quot;UGFzc3dvcmQ6&quot; (Password:)
    $send(base64_encode($password));
    $expect(235);                                // Auth OK

    // MAIL/RCPT
    $send(&quot;MAIL FROM:&lt;$from&gt;&quot;);
    $expect(250);
    $send(&quot;RCPT TO:&lt;$to&gt;&quot;);
    $expect(250);

    // DATA &ndash; headers + body with dot‑stuffing
    $send(&quot;DATA&quot;);
    $expect(354);

    // Headers
    $headers = [];
    $fromHeader = $fromName !== &#039;&#039;
        ? sprintf(&#039;From: %s &lt;%s&gt;&#039;, encodeDisplayName($fromName), $from)
        : sprintf(&#039;From: &lt;%s&gt;&#039;, $from);
    $headers[] = $fromHeader;
    $headers[] = &quot;To: &lt;$to&gt;&quot;;
    $headers[] = &quot;Subject: &quot; . encodeSubject($subject);
    $headers[] = &quot;Date: &quot; . date(&#039;r&#039;);
    $headers[] = &quot;Message-ID: &lt;&quot; . bin2hex(random_bytes(16)) . &#039;@&#039; . (parse_url(&quot;https://$peerName&quot;, PHP_URL_HOST) ?: &#039;localhost&#039;) . &quot;&gt;&quot;;
    $headers[] = &quot;MIME-Version: 1.0&quot;;
    $headers[] = &quot;Content-Type: text/plain; charset=UTF-8&quot;;
    $headers[] = &quot;Content-Transfer-Encoding: 8bit&quot;;
    $headers[] = &quot;X-Mailer: PHP-SMTP/1.0&quot;;

    $data  = implode(&quot;\r\n&quot;, $headers) . &quot;\r\n\r\n&quot; . $body;

    // Dot‑stuffing per RFC5321 &sect;4.5.2
    $data = preg_replace(&#039;/\r\n\./&#039;, &quot;\r\n..&quot;, $data);
    // Ensure ends with CRLF.CRLF
    if (!str_ends_with($data, &quot;\r\n&quot;)) $data .= &quot;\r\n&quot;;

    fwrite($fp, $data . &quot;.\r\n&quot;);
    $expect(250);                                // accepted

    // QUIT
    $send(&quot;QUIT&quot;);
    $read();                                     // 221
    fclose($fp);
}

/** Encode UTF‑8 display name safely for headers */
function encodeDisplayName(string $name): string {
    // Quote if contains specials; also provide RFC2047 when needed
    if (preg_match(&#039;/[^\x20-\x7E]/&#039;, $name)) {
        return &#039;=?UTF-8?B?&#039; . base64_encode($name) . &#039;?=&#039;;
    }
    if (preg_match(&#039;/[&quot;,]/&#039;, $name)) {
        return &#039;&quot;&#039; . addcslashes($name, &#039;\\&quot;&#039;) . &#039;&quot;&#039;;
    }
    return $name;
}

/** RFC2047 encode UTF‑8 Subject if needed */
function encodeSubject(string $subject): string {
    return preg_match(&#039;/[^\x20-\x7E]/&#039;, $subject)
        ? &#039;=?UTF-8?B?&#039; . base64_encode($subject) . &#039;?=&#039;
        : $subject;
}</code></pre>				</div>
				</div>
					</div>
				</div>
				</div>
		]]></content:encoded>
					
					<wfw:commentRss>https://www.sraga.cz/azure-communication-services-od-a-po-z/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Exchange Online In-Place Archiv nearchivuje</title>
		<link>https://www.sraga.cz/exchange-online-in-place-archiv-nearchivuje/</link>
					<comments>https://www.sraga.cz/exchange-online-in-place-archiv-nearchivuje/#respond</comments>
		
		<dc:creator><![CDATA[Miroslav Šraga]]></dc:creator>
		<pubDate>Fri, 14 Nov 2025 15:18:16 +0000</pubDate>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Archiv]]></category>
		<category><![CDATA[Exchange Online]]></category>
		<category><![CDATA[In-Place Archive]]></category>
		<category><![CDATA[Managed Folder Assistant]]></category>
		<guid isPermaLink="false">https://www.sraga.cz/?p=1145</guid>

					<description><![CDATA[V posledních dnech jsem narazil na několik na sobě nezávislých problémů, které se týkaly archivace e-mailů v Exchange Online. Když budu konkrétnější, tak jsem řešil, proč Archiv úplně nearchivuje. V tomto článku se tedy zaměřím na věci kolem In-Place Archive. Obsah &#160; Na hraně kapacit &#8211; kdy potřebujete archiv? Nejprve si pojďme říci něco o ... <a title="Exchange Online In-Place Archiv nearchivuje" class="read-more" href="https://www.sraga.cz/exchange-online-in-place-archiv-nearchivuje/" aria-label="Číst více o Exchange Online In-Place Archiv nearchivuje">Číst dál</a>]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="1145" class="elementor elementor-1145" data-elementor-post-type="post">
				<div class="elementor-element elementor-element-9c1fef7 e-flex e-con-boxed e-con e-parent" data-id="9c1fef7" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-6948295 elementor-widget elementor-widget-text-editor" data-id="6948295" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>V posledních dnech jsem narazil na několik na sobě nezávislých problémů, které se týkaly archivace e-mailů v Exchange Online. Když budu konkrétnější, tak jsem řešil, proč Archiv úplně nearchivuje. V tomto článku se tedy zaměřím na věci kolem In-Place Archive.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-32c9c0f elementor-toc--minimized-on-tablet elementor-widget elementor-widget-table-of-contents" data-id="32c9c0f" data-element_type="widget" data-settings="{&quot;exclude_headings_by_selector&quot;:[],&quot;headings_by_tags&quot;:[&quot;h2&quot;,&quot;h3&quot;,&quot;h4&quot;,&quot;h5&quot;,&quot;h6&quot;],&quot;marker_view&quot;:&quot;numbers&quot;,&quot;no_headings_message&quot;:&quot;No headings were found on this page.&quot;,&quot;minimize_box&quot;:&quot;yes&quot;,&quot;minimized_on&quot;:&quot;tablet&quot;,&quot;hierarchical_view&quot;:&quot;yes&quot;,&quot;min_height&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}" data-widget_type="table-of-contents.default">
				<div class="elementor-widget-container">
									<div class="elementor-toc__header">
						<h4 class="elementor-toc__header-title">
				Obsah			</h4>
										<div class="elementor-toc__toggle-button elementor-toc__toggle-button--expand" role="button" tabindex="0" aria-controls="elementor-toc__32c9c0f" aria-expanded="true" aria-label="Open table of contents"><svg aria-hidden="true" class="e-font-icon-svg e-fas-chevron-down" viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path d="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"></path></svg></div>
				<div class="elementor-toc__toggle-button elementor-toc__toggle-button--collapse" role="button" tabindex="0" aria-controls="elementor-toc__32c9c0f" aria-expanded="true" aria-label="Close table of contents"><svg aria-hidden="true" class="e-font-icon-svg e-fas-chevron-up" viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path d="M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"></path></svg></div>
					</div>
				<div id="elementor-toc__32c9c0f" class="elementor-toc__body">
			<div class="elementor-toc__spinner-container">
				<svg class="elementor-toc__spinner eicon-animation-spin e-font-icon-svg e-eicon-loading" aria-hidden="true" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg"><path d="M500 975V858C696 858 858 696 858 500S696 142 500 142 142 304 142 500H25C25 237 238 25 500 25S975 237 975 500 763 975 500 975Z"></path></svg>			</div>
		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-3a9a454 elementor-widget elementor-widget-heading" data-id="3a9a454" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Na hraně kapacit - kdy potřebujete archiv?</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-4a2ad10 elementor-widget elementor-widget-text-editor" data-id="4a2ad10" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Nejprve si pojďme říci něco o kapacitách v rámci předplatného, které Exchange Online.</p><p><strong>Exchange Online</strong> nabízí dvě hlavní varianty licencí – Plan 1 a Plan 2. Obě poskytují profesionální e-mailové služby, ale liší se zejména ve velikosti schránky, možnostmi archivace a pokročilých funkcích.</p><p><strong>Základní velikost primární schránky</strong></p><ul><li><strong>Exchange Online Plan 1</strong><ul><li>Velikost primární schránky: <strong>50 GB</strong></li><li>Po dosažení limitu nelze přijímat nové zprávy, dokud se neuvolní místo nebo neaktivuje archiv.</li></ul></li><li><strong>Exchange Online Plan 2</strong><ul><li>Velikost primární schránky: <strong>100 GB</strong></li><li>Vhodné pro uživatele s vysokým objemem e-mailů nebo dlouhodobou archivací.</li></ul></li></ul><p><strong>Archivace e-mailů = In-Place Archive</strong></p><p>Archivace je klíčová pro dlouhodobé uchování e-mailů bez nutnosti jejich mazání, když je vyčerpána kapacita primární schránky.</p><ul><li><strong>Plan 1</strong><ul><li>Archiv <strong>je dostupný</strong>, ale musí se <strong>ručně aktivovat</strong> (není zapnutý defaultně).</li><li>Velikost archivu: 50 GB (bez auto-expanding).</li></ul></li><li><strong>Plan 2</strong><ul><li>Archiv je <strong>součástí licence</strong>.</li><li>Velikost archivu: <strong>neomezená</strong> díky funkci <strong>Auto-Expanding Archive</strong> (po dosažení 100 GB se automaticky přidává další prostor).</li><li>Podmínky: Auto-expanding je dostupný pouze pro cloudové archivy, ne pro on-prem.</li></ul></li></ul><p><strong>Přehledová tabulka:</strong></p><table style="border-collapse: collapse; width: 566px; height: 360px;" border="0" cellspacing="0" cellpadding="0"><tbody><tr style="height: 15.0pt;"><td style="height: 15.0pt; width: 48pt;" width="64" height="20"><strong>Funkce</strong></td><td style="width: 48pt;" width="64"><strong>Plan 1</strong></td><td style="width: 48pt;" width="64"><strong>Plan 2</strong></td></tr><tr style="height: 15.0pt;"><td style="height: 15.0pt;" height="20">Primární schránka</td><td>50 GB</td><td>100 GB</td></tr><tr style="height: 15.0pt;"><td style="height: 15.0pt;" height="20">Archivace</td><td>Volitelný doplněk</td><td>Součást licence</td></tr><tr style="height: 15.0pt;"><td style="height: 15.0pt;" height="20">Velikost archivu</td><td>50 GB</td><td>Neomezená (Auto-Expanding)</td></tr><tr style="height: 15.0pt;"><td style="height: 15.0pt;" height="20">MRM politiky</td><td>Ano</td><td>Ano</td></tr><tr style="height: 15.0pt;"><td style="height: 15.0pt;" height="20">Litigation Hold</td><td>Ne</td><td>Ano</td></tr><tr style="height: 15.0pt;"><td style="height: 15.0pt;" height="20">In-Place Hold</td><td>Ne</td><td>Ano</td></tr></tbody></table>								</div>
				</div>
				<div class="elementor-element elementor-element-9e8d2e5 elementor-widget elementor-widget-heading" data-id="9e8d2e5" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Jak aktivovat archiv</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-807da20 elementor-widget elementor-widget-text-editor" data-id="807da20" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Exchange Online Archiv lze aktivovat dvěma způsoby (mimo jiné).</p>								</div>
				</div>
				<div class="elementor-element elementor-element-b43c7e8 elementor-widget elementor-widget-heading" data-id="b43c7e8" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h5 class="elementor-heading-title elementor-size-default">Aktivace pomocí Exchange Admin Centra (EAC)</h5>				</div>
				</div>
				<div class="elementor-element elementor-element-abbc823 elementor-widget elementor-widget-text-editor" data-id="abbc823" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<ol><li>Přihlaste se do EAC (<a href="https://admin.exchange.microsoft.com" target="_blank" rel="noopener">https://admin.exchange.microsoft.com</a>)</li><li>Recipient → Mailboxes</li><li>Vyberte schránku, pro kterou chcete aktivovat archiv</li><li>V pravé části se zobrazí detail schránky &#8211; klikněte na záložku &#8222;Others/Ostatní&#8220;</li><li>Archiv aktivujte pomocí &#8222;Manage mailbox archive&#8220;</li></ol>								</div>
				</div>
				<div class="elementor-element elementor-element-b6b1740 elementor-widget elementor-widget-image" data-id="b6b1740" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2025/11/Exchange-admin-center-—-Others-Mailbox-Archive.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="Exchange admin center — Others - Mailbox Archive" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTE2MiwidXJsIjoiaHR0cHM6XC9cL3d3dy5zcmFnYS5jelwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyNVwvMTFcL0V4Y2hhbmdlLWFkbWluLWNlbnRlci1cdTIwMTQtT3RoZXJzLU1haWxib3gtQXJjaGl2ZS5wbmcifQ%3D%3D">
							<img fetchpriority="high" decoding="async" width="768" height="465" src="https://www.sraga.cz/wp-content/uploads/2025/11/Exchange-admin-center-—-Others-Mailbox-Archive-768x465.png" class="attachment-medium_large size-medium_large wp-image-1162" alt="Exchange admin center — Others - Mailbox Archive" srcset="https://www.sraga.cz/wp-content/uploads/2025/11/Exchange-admin-center-—-Others-Mailbox-Archive-768x465.png 768w, https://www.sraga.cz/wp-content/uploads/2025/11/Exchange-admin-center-—-Others-Mailbox-Archive-300x181.png 300w, https://www.sraga.cz/wp-content/uploads/2025/11/Exchange-admin-center-—-Others-Mailbox-Archive-1024x619.png 1024w, https://www.sraga.cz/wp-content/uploads/2025/11/Exchange-admin-center-—-Others-Mailbox-Archive.png 1210w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-1bb12cb elementor-widget elementor-widget-heading" data-id="1bb12cb" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h5 class="elementor-heading-title elementor-size-default">Aktivace pomocí Exchange Online Powershell</h5>				</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-736878a e-flex e-con-boxed e-con e-parent" data-id="736878a" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-02d1304 elementor-widget elementor-widget-code-block-for-elementor" data-id="02d1304" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'># Připojen&iacute; k Exchange Online Powershell
Connect-ExchangeOnline

# Aktivace Archivu
Enable-Mailbox jan.novak@365lab.cz -Identity -Archive

# Deaktivace Archivu
Disable-Mailbox jan.novak@365lab.cz -Identity -Archive</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-9b4af58 elementor-widget elementor-widget-heading" data-id="9b4af58" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Jak archivace funguje</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-6b0898c elementor-widget elementor-widget-text-editor" data-id="6b0898c" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Exchange Server a <strong>Exchange Online</strong> obsahují několik asistentů (úlohy na pozadí), které provádějí automatizované zpracování dat poštovní schránky. Nás bude zajímat Managed Folder Assistant (MFA).</p>								</div>
				</div>
				<div class="elementor-element elementor-element-26d7e3e elementor-alert-info elementor-widget elementor-widget-alert" data-id="26d7e3e" data-element_type="widget" data-widget_type="alert.default">
				<div class="elementor-widget-container">
							<div class="elementor-alert" role="alert">

						<span class="elementor-alert-title">Pozor</span>
			
						<span class="elementor-alert-description">V tomto článku a v souvislosti s archivací se používá zkratka MFA. Nejedná se v tomto přípdadě o více-faktorové ověření, ale o Managed Folder Assistant.</span>
			
			
		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-51659ef elementor-widget elementor-widget-text-editor" data-id="51659ef" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><strong>Managed Folder Assistant</strong> (<span style="text-decoration: underline;">MFA</span>) je systémový proces v Exchange Serveru a Exchange Online, který <strong>automaticky aplikuje retenční politiky</strong> na položky v poštovních schránkách. Je klíčový pro správu <strong>životního cyklu e-mailů</strong>, včetně jejich <strong>přesunu do archivní schránky</strong>.</p><h5><strong>Co MFA dělá</strong></h5><ul><li>Vyhodnocuje retenční politiky (Exchange MRM i Microsoft 365) a aplikuje je na položky.</li><li>Označuje zprávy metadaty, která určují datum vypršení retenční lhůty.</li><li>Provádí akce definované v retenčních značkách:<ul><li><strong>Smazání</strong> (trvale nebo s možností obnovy)</li><li><strong>Přesun</strong> do archivu (<strong>In-Place Archive</strong>).</li></ul></li></ul><h5><strong>Práce s archivací</strong></h5><ul><li>Pokud je v politice definována značka (retention tag) „<strong>Move to Archive</strong>“, MFA po dosažení stáří položky, přesune zprávu z primární schránky do archivu.</li><li>Archivace pomáhá udržet primární schránku přehlednou a zároveň uchovat starší e-maily pro vyhledávání.</li><li>MFA zajišťuje, že položky označené pro archivaci se <strong>přesunou automaticky, bez zásahu uživatele</strong>.</li></ul><p> </p><p> </p>								</div>
				</div>
				<div class="elementor-element elementor-element-83803c1 elementor-alert-warning elementor-widget elementor-widget-alert" data-id="83803c1" data-element_type="widget" data-widget_type="alert.default">
				<div class="elementor-widget-container">
							<div class="elementor-alert" role="alert">

						<span class="elementor-alert-title">Jak MFA pracuje:</span>
			
						<span class="elementor-alert-description">MFA Běží na základě work cycle modelu – v Exchange Online obvykle zpracuje každou schránku alespoň jednou týdně.</span>
			
			
		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-5f4d1e6 elementor-widget elementor-widget-text-editor" data-id="5f4d1e6" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h5><strong>Podmínky pro zpracování</strong></h5><ul><li><strong>Schránka musí mít přiřazenou retenční politiku</strong>.</li><li>Musí obsahovat <strong>alespoň 10 MB dat</strong> (indikace aktivního používání).</li><li>MFA kombinuje značky z Exchange MRM politik a Microsoft 365 retenčních politik (v cloudu).</li></ul>								</div>
				</div>
				<div class="elementor-element elementor-element-a656844 elementor-widget elementor-widget-heading" data-id="a656844" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Řešení problémů s archivací</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-d1c25e3 elementor-widget elementor-widget-text-editor" data-id="d1c25e3" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Aby byla automatická archivace funkční, musí mít schránka přidělenou tzv. retenční politiku. Tato politika  musí obsahovat akci (tag) &#8222;MoveToArchive&#8220;</p>								</div>
				</div>
				<div class="elementor-element elementor-element-1b46dbe elementor-widget elementor-widget-image" data-id="1b46dbe" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2025/11/MRM-Retention-tags-_-Microsoft-Purview.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="MRM Retention tags _ Microsoft Purview" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTE4NSwidXJsIjoiaHR0cHM6XC9cL3d3dy5zcmFnYS5jelwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyNVwvMTFcL01STS1SZXRlbnRpb24tdGFncy1fLU1pY3Jvc29mdC1QdXJ2aWV3LnBuZyJ9">
							<img decoding="async" width="768" height="379" src="https://www.sraga.cz/wp-content/uploads/2025/11/MRM-Retention-tags-_-Microsoft-Purview-768x379.png" class="attachment-medium_large size-medium_large wp-image-1185" alt="MRM Retention tags Microsoft Purview" srcset="https://www.sraga.cz/wp-content/uploads/2025/11/MRM-Retention-tags-_-Microsoft-Purview-768x379.png 768w, https://www.sraga.cz/wp-content/uploads/2025/11/MRM-Retention-tags-_-Microsoft-Purview-300x148.png 300w, https://www.sraga.cz/wp-content/uploads/2025/11/MRM-Retention-tags-_-Microsoft-Purview-1024x505.png 1024w, https://www.sraga.cz/wp-content/uploads/2025/11/MRM-Retention-tags-_-Microsoft-Purview.png 1424w" sizes="(max-width: 768px) 100vw, 768px">								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-83a6cd2 elementor-widget elementor-widget-image" data-id="83a6cd2" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2025/11/MRM-Retention-policies-_-Microsoft-Purview.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="MRM Retention policies _ Microsoft Purview" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTE4NCwidXJsIjoiaHR0cHM6XC9cL3d3dy5zcmFnYS5jelwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyNVwvMTFcL01STS1SZXRlbnRpb24tcG9saWNpZXMtXy1NaWNyb3NvZnQtUHVydmlldy5wbmcifQ%3D%3D">
							<img decoding="async" width="768" height="418" src="https://www.sraga.cz/wp-content/uploads/2025/11/MRM-Retention-policies-_-Microsoft-Purview-768x418.png" class="attachment-medium_large size-medium_large wp-image-1184" alt="MRM Retention policies Microsoft Purview" srcset="https://www.sraga.cz/wp-content/uploads/2025/11/MRM-Retention-policies-_-Microsoft-Purview-768x418.png 768w, https://www.sraga.cz/wp-content/uploads/2025/11/MRM-Retention-policies-_-Microsoft-Purview-300x163.png 300w, https://www.sraga.cz/wp-content/uploads/2025/11/MRM-Retention-policies-_-Microsoft-Purview-1024x557.png 1024w, https://www.sraga.cz/wp-content/uploads/2025/11/MRM-Retention-policies-_-Microsoft-Purview.png 1152w" sizes="(max-width: 768px) 100vw, 768px">								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-713d48b elementor-widget elementor-widget-text-editor" data-id="713d48b" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>V případě, že zprávy nejsou přesovány do archivu tak jako první je potřeba zkontrolovat, zda-li má schránka přidělenou retenční politiku. Výchozí retenční politika je &#8222;<strong>Default MRM Policy</strong>&#8220; a výchozí hodnota je 730 dní. To znamená, že zprávy, které jsou starší než 2 roky by měly být automaticky přesouvány do Online Archivu.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-5b1ec2b elementor-widget elementor-widget-code-block-for-elementor" data-id="5b1ec2b" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'># Zji&scaron;těn&iacute; přidělen&eacute; retenřn&iacute; politiky pro danou schr&aacute;nu
Get-Mailbox -Identity &quot;jan.novak@365lab.cz&quot; | FL RetentionPolicy

# V&yacute;stup:
RetentionPolicy : Default MRM Policy</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-e9fcc34 elementor-widget elementor-widget-text-editor" data-id="e9fcc34" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>V rámci přidělené retenční politiky je potřeba se podívat zda obsahuje tag &#8222;MoveToArchive&#8220;</p>								</div>
				</div>
				<div class="elementor-element elementor-element-5dee402 elementor-widget elementor-widget-code-block-for-elementor" data-id="5dee402" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'># Seznam v&scaron;ech retenčn&iacute;ch politik
Get-RetentionPolicy

# Je potřeba zkontrolovat RetentionPolicyTagLinks
Get-RetentionPolicy -Identity &quot;Default MRM Policy&quot; | FL *

# Zobraz&iacute; seznam v&scaron;ech tagů v r&aacute;mci retention policy
$policy = Get-RetentionPolicy -Identity &quot;Default MRM Policy&quot;
$policy.RetentionPolicyTagLinks

# viz v&yacute;&scaron;e, ale jin&yacute; pohled na data
$tags = (Get-RetentionPolicy -Identity &quot;Default MRM Policy&quot;).RetentionTags
$tags | ForEach-Object { Get-RetentionPolicyTag -Identity $_ | FL Name,Type,RetentionAction,AgeLimitForRetention,RetentionEnabled }</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-9fe5d4b elementor-widget elementor-widget-image" data-id="9fe5d4b" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2025/11/exchange-archive-retention-policy-powershell-1.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="exchange-archive-retention-policy-powershell-1" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTE4OSwidXJsIjoiaHR0cHM6XC9cL3d3dy5zcmFnYS5jelwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyNVwvMTFcL2V4Y2hhbmdlLWFyY2hpdmUtcmV0ZW50aW9uLXBvbGljeS1wb3dlcnNoZWxsLTEucG5nIn0%3D">
							<img loading="lazy" decoding="async" width="768" height="592" src="https://www.sraga.cz/wp-content/uploads/2025/11/exchange-archive-retention-policy-powershell-1-768x592.png" class="attachment-medium_large size-medium_large wp-image-1189" alt="exchange archive retention policy powershell 1" srcset="https://www.sraga.cz/wp-content/uploads/2025/11/exchange-archive-retention-policy-powershell-1-768x592.png 768w, https://www.sraga.cz/wp-content/uploads/2025/11/exchange-archive-retention-policy-powershell-1-300x231.png 300w, https://www.sraga.cz/wp-content/uploads/2025/11/exchange-archive-retention-policy-powershell-1.png 1016w" sizes="(max-width: 768px) 100vw, 768px">								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-4a086b4 elementor-widget elementor-widget-text-editor" data-id="4a086b4" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Obráceně lze ještě ověřit, ve kterých retenčních politikách je retention tag &#8222;MoveToArchive&#8220;</p>								</div>
				</div>
				<div class="elementor-element elementor-element-ac8a1c1 elementor-widget elementor-widget-code-block-for-elementor" data-id="ac8a1c1" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'>Get-RetentionPolicyTag | Where-Object {$_.Type -eq &quot;All&quot; -and $_.RetentionAction -eq &quot;MoveToArchive&quot;} | FL Name,AgeLimitForRetention,RetentionEnabled

# V&yacute;stup
Name                 : Default 2 year move to archive
AgeLimitForRetention : 730.00:00:00
RetentionEnabled     : True</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-67070da elementor-widget elementor-widget-text-editor" data-id="67070da" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Pokud jsou retenční politiky nastaveny správně, je potřeba zkontrolovat, zda-li se In-Place Archiv správně vytvořil.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-5878c10 elementor-widget elementor-widget-code-block-for-elementor" data-id="5878c10" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'># Informace o Archive mailboxu
Get-MailboxStatistics -Identity &quot;jan.novak@365lab.cz&quot; -Archive
Get-MailboxStatistics -Identity &quot;jan.novak@365lab.cz&quot; -Archive | FL DisplayName,TotalItemSize,ItemCount,LastLogonTime,Database,ServerName</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-e092837 elementor-widget elementor-widget-image" data-id="e092837" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2025/11/exchange-archive-retention-policy-powershell-2.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="exchange-archive-retention-policy-powershell-2" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTE5NiwidXJsIjoiaHR0cHM6XC9cL3d3dy5zcmFnYS5jelwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyNVwvMTFcL2V4Y2hhbmdlLWFyY2hpdmUtcmV0ZW50aW9uLXBvbGljeS1wb3dlcnNoZWxsLTIucG5nIn0%3D">
							<img loading="lazy" decoding="async" width="768" height="93" src="https://www.sraga.cz/wp-content/uploads/2025/11/exchange-archive-retention-policy-powershell-2-768x93.png" class="attachment-medium_large size-medium_large wp-image-1196" alt="exchange-archive-retention-policy-powershell-2" srcset="https://www.sraga.cz/wp-content/uploads/2025/11/exchange-archive-retention-policy-powershell-2-768x93.png 768w, https://www.sraga.cz/wp-content/uploads/2025/11/exchange-archive-retention-policy-powershell-2-300x36.png 300w, https://www.sraga.cz/wp-content/uploads/2025/11/exchange-archive-retention-policy-powershell-2-1024x123.png 1024w, https://www.sraga.cz/wp-content/uploads/2025/11/exchange-archive-retention-policy-powershell-2.png 1443w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-513727d elementor-widget elementor-widget-text-editor" data-id="513727d" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Pokud je vše správně:</p><ul><li>DisplayName &#8211; odpovídá tomu, co je vidě v EAC a obsahuje In-Place (nebo vlastní název, která jste zvolili)</li><li>TotalItemSize &#8211; velikost schránky archivu</li><li>ItemCount &#8211; počet objektů v archivu je větší jak 0</li><li>Database a ServerName musí obsahovat data navázaná na Exchange Online</li></ul>								</div>
				</div>
				<div class="elementor-element elementor-element-fb1dd6f elementor-widget elementor-widget-code-block-for-elementor" data-id="fb1dd6f" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'># Vrac&iacute; z&aacute;kladni informace o archivu
Get-Mailbox -Identity &quot;jan.novak@365lab.cz&quot; | FL ArchiveDatabase,ArchiveStatus,ArchiveState

# V&yacute;stup
ArchiveDatabase : EURP189DG124-db376
ArchiveStatus   : Active
ArchiveState    : Local</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-d989150 elementor-widget elementor-widget-text-editor" data-id="d989150" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Pokud je vše správně:</p><ul><li>ArchiveDatabase &#8211; musí odpovídat údajům Exchange Online, typicky <strong>EUR</strong>*****</li><li>ArchiveStatus<ul><li><strong>Active</strong> &#8211; archiv je aktivní</li><li>None &#8211; archiv není aktivní</li></ul></li><li>ArchiveState<ul><li><strong>Local</strong> &#8211; lokální v Exchange Online</li><li>HostedPending &#8211; Hybrid deployment &#8211; stav před tím, než proběhne directory synchronisation</li><li>HostedProvisioned &#8211; Hybrid deployment &#8211; stav po té, co proběhla synchronizace</li><li>None &#8211; archiv není aktivní</li></ul></li></ul><p>Pokud i zde je všechno v pořádku, může být problém ještě v tom, že na schránce je aktivní hold (RetentionHold, LitigationHold).</p>								</div>
				</div>
				<div class="elementor-element elementor-element-50ab696 elementor-widget elementor-widget-code-block-for-elementor" data-id="50ab696" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'># Kontrola, zda je na schr&aacute;nce aktivn&iacute; Hold
Get-Mailbox -Identity &quot;jan.novak@365lab.cz&quot; | FL RetentionHoldEnabled,LitigationHoldEnabled

RetentionHoldEnabled  : True
LitigationHoldEnabled : False</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-5250b85 elementor-widget elementor-widget-text-editor" data-id="5250b85" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Ve výše uvedeném příkladu je vidět, že <strong>RetentionHoldEnabled</strong> je nastaveno na hodnotu <strong>True</strong>. To je špatně, protože, aby mohl správně fungovat Managed Folder Assistant, nesmí být na schránce aktivní hold.</p><p>Toto je záměr Microsoftu: Blokování uchovávání dat (<strong>Hold</strong>) <strong>pozastaví všechny akce MRM</strong> (včetně akce MoveToArchive), aby položky nebyly během zvláštních okolností (např. dovolená, právní důvody) odstraněny ani přesunuty.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-57b1b1e elementor-widget elementor-widget-code-block-for-elementor" data-id="57b1b1e" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'># Vypnut&iacute;  Retention Hold
Set-Mailbox -Identity &quot;jan.novak@365lab.cz&quot; -RetentionHoldEnabled:$false

# Vypnut&iacute;  Litigation Hold
Set-Mailbox -Identity &quot;jan.novak@365lab.cz&quot; -LitigationHoldEnabled:$false</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-1d7e978 elementor-widget elementor-widget-code-block-for-elementor" data-id="1d7e978" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'># Kontrola, zda je na schr&aacute;nce aktivn&iacute; Hold
Get-Mailbox -Identity &quot;jan.novak@365lab.cz&quot; | FL RetentionHoldEnabled,LitigationHoldEnabled

# V&yacute;stup - zde je v&scaron;e v poř&aacute;dku
RetentionHoldEnabled  : False
LitigationHoldEnabled : False</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-83aed41 elementor-widget elementor-widget-heading" data-id="83aed41" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Urychlení zpracování MRM</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-cc76a89 elementor-widget elementor-widget-text-editor" data-id="cc76a89" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Po té, co je tedy vypnutý hold, je možné vynutit zpracování MFA pomocí powerhsell příkazu:</p>								</div>
				</div>
				<div class="elementor-element elementor-element-cea75d9 elementor-widget elementor-widget-code-block-for-elementor" data-id="cea75d9" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'># Urychlen&iacute; procesu MFA (managed Folder Assistant)
Start-ManagedFolderAssistant -Identity &quot;jan.novak@365lab.cz&quot;

# Kontrola, zda data do archivu přib&yacute;vaj&iacute;
Get-MailboxStatistics -Identity &quot;jan.novak@365lab.cz&quot; -Archive | FL DisplayName,TotalItemSize,ItemCount,LastLogonTime,Database,ServerName</code></pre>				</div>
				</div>
					</div>
				</div>
				</div>
		]]></content:encoded>
					
					<wfw:commentRss>https://www.sraga.cz/exchange-online-in-place-archiv-nearchivuje/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Outlook &#8211; primary account cannot be removed</title>
		<link>https://www.sraga.cz/outlook-primary-account-cannot-be-removed/</link>
					<comments>https://www.sraga.cz/outlook-primary-account-cannot-be-removed/#respond</comments>
		
		<dc:creator><![CDATA[Miroslav Šraga]]></dc:creator>
		<pubDate>Fri, 28 Feb 2025 17:51:25 +0000</pubDate>
				<category><![CDATA[Správa IT]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange Online]]></category>
		<category><![CDATA[Outlook Desktop]]></category>
		<guid isPermaLink="false">https://www.sraga.cz/?p=1067</guid>

					<description><![CDATA[Zase mě jednou brali všichni čerti. Tentokrát kvůli nemožnosti odebrat výchozí účet MS Exchange z Outlooku Desktop. Když přejdete z jedné služby Microsoft Exchange do druhé, například z interního serveru Exchange na Office365 (Microsoft 365), a chcete zachovat aktuální profil (což běžně nedoporučuji, ale jsou případy, kdy je to potřeba), nemůžete ze svého profilu odebrat ... <a title="Outlook &#8211; primary account cannot be removed" class="read-more" href="https://www.sraga.cz/outlook-primary-account-cannot-be-removed/" aria-label="Číst více o Outlook &#8211; primary account cannot be removed">Číst dál</a>]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="1067" class="elementor elementor-1067" data-elementor-post-type="post">
				<div class="elementor-element elementor-element-52caa0b e-flex e-con-boxed e-con e-parent" data-id="52caa0b" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-825117f elementor-widget elementor-widget-text-editor" data-id="825117f" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Zase mě jednou brali všichni čerti. Tentokrát kvůli <strong>nemožnosti odebrat výchozí účet MS Exchange</strong> z <a href="https://www.sraga.cz/tag/outlook/" target="_blank" rel="noopener">Outlooku Desktop</a>. Když přejdete z jedné služby Microsoft Exchange do druhé, například z interního serveru Exchange na Office365 (Microsoft 365), a chcete <strong>zachovat aktuální profil</strong> <em>(což běžně nedoporučuji, ale jsou případy, kdy je to potřeba)</em>, nemůžete ze svého profilu odebrat původní účet Exchange. Stejně tak, když máte v profilu dva Exchange (i Online) účty a ten první potřebujete odebrat, tak se vám to nepovede a Zobrazí se vám velmi příjemná systémová hláška:</p>								</div>
				</div>
				<div class="elementor-element elementor-element-6cd2929 elementor-blockquote--skin-border elementor-widget elementor-widget-blockquote" data-id="6cd2929" data-element_type="widget" data-widget_type="blockquote.default">
				<div class="elementor-widget-container">
							<blockquote class="elementor-blockquote">
			<p class="elementor-blockquote__content">
				The primary account cannot be removed unless it is the only account in the profile. You must remove all other Exchange accounts before removing the primary account account.			</p>
							<div class="e-q-footer">
											<cite class="elementor-blockquote__author">Microsoft Outlook</cite>
														</div>
					</blockquote>
						</div>
				</div>
				<div class="elementor-element elementor-element-fcd9cfb elementor-toc--minimized-on-tablet elementor-widget elementor-widget-table-of-contents" data-id="fcd9cfb" data-element_type="widget" data-settings="{&quot;exclude_headings_by_selector&quot;:[],&quot;headings_by_tags&quot;:[&quot;h2&quot;,&quot;h3&quot;,&quot;h4&quot;,&quot;h5&quot;,&quot;h6&quot;],&quot;marker_view&quot;:&quot;numbers&quot;,&quot;no_headings_message&quot;:&quot;No headings were found on this page.&quot;,&quot;minimize_box&quot;:&quot;yes&quot;,&quot;minimized_on&quot;:&quot;tablet&quot;,&quot;hierarchical_view&quot;:&quot;yes&quot;,&quot;min_height&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}" data-widget_type="table-of-contents.default">
				<div class="elementor-widget-container">
									<div class="elementor-toc__header">
						<h4 class="elementor-toc__header-title">
				Obsah			</h4>
										<div class="elementor-toc__toggle-button elementor-toc__toggle-button--expand" role="button" tabindex="0" aria-controls="elementor-toc__fcd9cfb" aria-expanded="true" aria-label="Open table of contents"><svg aria-hidden="true" class="e-font-icon-svg e-fas-chevron-down" viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path d="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"></path></svg></div>
				<div class="elementor-toc__toggle-button elementor-toc__toggle-button--collapse" role="button" tabindex="0" aria-controls="elementor-toc__fcd9cfb" aria-expanded="true" aria-label="Close table of contents"><svg aria-hidden="true" class="e-font-icon-svg e-fas-chevron-up" viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path d="M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"></path></svg></div>
					</div>
				<div id="elementor-toc__fcd9cfb" class="elementor-toc__body">
			<div class="elementor-toc__spinner-container">
				<svg class="elementor-toc__spinner eicon-animation-spin e-font-icon-svg e-eicon-loading" aria-hidden="true" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg"><path d="M500 975V858C696 858 858 696 858 500S696 142 500 142 142 304 142 500H25C25 237 238 25 500 25S975 237 975 500 763 975 500 975Z"></path></svg>			</div>
		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-155e947 elementor-widget elementor-widget-heading" data-id="155e947" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Výchozí (primární) účet Exchange</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-ffaa2ce elementor-widget elementor-widget-text-editor" data-id="ffaa2ce" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Primární účet Exchange je <strong>prvním účtem přidaným do profilu</strong>. <strong>Primární účet nelze z profilu odebrat</strong>, dokud nejsou z profilu <strong>odstraněny všechny ostatní účty Exchange</strong> (když je primární účet odebrán, další přidaný účet Exchange je považován za primární).</p><p>Všechny ostatní účty Exchange přidané do profilu jsou považovány za sekundární účty.</p><p>Doporučenou metodou změny primárního účtu je znovu vytvořit profil uživatele a nejprve přidat příslušný účet. Existují však dvě další možnosti: upravit registr a poté odebrat primární účet Exchange z vašeho profilu nebo přidat do profilu soubor PST, nastavit jej jako výchozí a poté odebrat účty Exchange.</p><p>Obojí je za mě řešení postavené &#8222;na hlavu&#8220;.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-acf03e3 elementor-widget elementor-widget-heading" data-id="acf03e3" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Odstranění výchozího účtu Exchange</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-21210d9 elementor-widget elementor-widget-text-editor" data-id="21210d9" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Pokud potřebujete <strong>odstranit primární účet</strong> ze svého profilu, máte tři možnosti.</p><ol><li>Vytvořit nový profil (doporučeno)</li><li>Odebrat všechny účty Exchange ze svého profilu a poté přidat nový účet zpět</li><li>Odebrat klíč z registru, abyste mohli odstranit primární účet z registru.</li></ol><p>I když vytvoření nového profilu může být rychlejší (a je to doporučená metoda), existují i jiné metody, které můžete použít ke změně primárního účtu a <strong>zachování profilu při zachování nastavení specifických pro profil</strong>.</p><p>Přejděte na <strong>Ovládací panely</strong> &gt; <strong>Pošta</strong> a odeberte všechny účty Exchange z profilu, přičemž primární účet odeberte jako poslední. Budete muset do profilu přidat pst a nastavit jej jako výchozí datový soubor a poté restartovat aplikaci Outlook.</p><p>Zavřete Outlook a vraťte se do <strong>Ovládací panely</strong> &gt; <strong>Pošta</strong> <strong>(Microsoft Outlook)</strong> a přidejte nový účet. (Podle mých zkušeností zde nemusí být nový účet zobrazen, dokud nerestartujete Outlook.)</p><p><strong>Restartujte</strong> aplikaci Outlook. Přejděte do nastavení účtu a nastavte *.<strong>ost</strong> jako <strong>výchozí</strong>. Chcete-li odebrat soubor *.pst z profilu, budete muset aplikaci Outlook restartovat ještě jednou.</p><p>Tato metoda je vhodná asi jen v případě, kdy máte jen pár účtů Exchange. Pokud máte hodně účtů Exchange nebo poštovní schránky, které máte v profilu, jsou velké, můžete <strong>upravit registr</strong>, abyste odstranili příznak „primární“ a poté mohli účet smazat.</p><p>Úprava registru je obecně lepší možností, když hrozí, že  synchronizace poštovních schránek bude trvat dlouho (třeba jste jste na datovém připojení) nebo pokud máte ve svém profilu větší množství účtů Exchange.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-484ff31 elementor-widget elementor-widget-heading" data-id="484ff31" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Odebrání primárnho účtu pomocí úpravy registrů</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-f092d26 elementor-widget elementor-widget-text-editor" data-id="f092d26" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Odebrat příznak primárního účtu můžete také pomocí úpravy registrů. <strong>Tato metoda není oficiálně podporována Microsoftem.</strong> Pokud se cokoliv nepovede, budete si muset vytvořit nový profil, obnovit exportovaný klíč profilu nebo použít Obnovení systému k návratu k předchozímu bodu obnovení.</p><p>Zavřete aplikaci Outlook a otevřete editor registru.</p><p>Stisknutím klávesy <strong>Windows + R</strong> otevřete příkaz <strong>Spustit</strong>, do pole zadejte příkaz <strong>regedit</strong> a stiskněte klávesu <strong>Enter</strong>.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-b3db36e elementor-alert-warning elementor-widget elementor-widget-alert" data-id="b3db36e" data-element_type="widget" data-widget_type="alert.default">
				<div class="elementor-widget-container">
							<div class="elementor-alert" role="alert">

						<span class="elementor-alert-title">Upozornění</span>
			
						<span class="elementor-alert-description">Před úpravou exportujte klíče registru, abyste mohli svůj profil obnovit, pokud uděláte chybu.</span>
			
			
		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-7e065d4 elementor-widget elementor-widget-text-editor" data-id="7e065d4" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>V editoru registrů najděte tento klíč</p>								</div>
				</div>
				<div class="elementor-element elementor-element-e39a01f elementor-widget elementor-widget-heading" data-id="e39a01f" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h5 class="elementor-heading-title elementor-size-default">Outlook 2010</h5>				</div>
				</div>
				<div class="elementor-element elementor-element-ab85954 elementor-widget elementor-widget-code-block-for-elementor" data-id="ab85954" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'>HKEY_CURRENT_USER\Software\Microsoft\Windows NT\Current Version\Windows Messaging SubSystem\Profile\&lt;nazev-profilu&gt;</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-77d2884 elementor-widget elementor-widget-heading" data-id="77d2884" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h5 class="elementor-heading-title elementor-size-default">Outlook 2013</h5>				</div>
				</div>
				<div class="elementor-element elementor-element-99aa198 elementor-widget elementor-widget-code-block-for-elementor" data-id="99aa198" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'>HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Profiles\&lt;nazev-profilu&gt;</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-5fc9b45 elementor-widget elementor-widget-heading" data-id="5fc9b45" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h5 class="elementor-heading-title elementor-size-default">Outlook 2016 a novější</h5>				</div>
				</div>
				<div class="elementor-element elementor-element-844cf20 elementor-widget elementor-widget-code-block-for-elementor" data-id="844cf20" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'>HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Profiles\&lt;nazev-profilu&gt;</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-5dd2107 elementor-widget elementor-widget-text-editor" data-id="5dd2107" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Doporučuji nejrve celý klíč profilu exportovat (záloha) a poté vyhledejte a odeberte jeden (nebo oba, nebo tři) klíče registru související s primárním účtem &#8211; viz dále.</p><p>V klíčích vybraného profilu je potřeba hledat hodnotu s názvem <strong>001f6641</strong> (případně <strong>001f662b</strong>). Hodnotu s tímto názvem používá každý účet. Pro každý účet najdete nejméně dva klíče obsahující tuto hodnotu a <strong>musíte odstranit druhý klíč</strong>, který patří k primárnímu účtu (můžete smazat oba klíče, já mažu vždy oba). Po smazání klíče/klíčů je následně možné odstranit primární účet.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-544d456 elementor-alert-info elementor-widget elementor-widget-alert" data-id="544d456" data-element_type="widget" data-widget_type="alert.default">
				<div class="elementor-widget-container">
							<div class="elementor-alert" role="alert">

						<span class="elementor-alert-title">Upozornění</span>
			
						<span class="elementor-alert-description">Je potřeba smazat celý klíč registru, nejen hodnotu. Laicky řešeno - mažete celou složku vlevo - v editoru registrů.</span>
			
			
		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-a841ae5 elementor-widget elementor-widget-text-editor" data-id="a841ae5" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Na níže uvedeném příkladu je vidět, že hledáme účet <strong>messaging.microsoft@365lab.cz</strong>, který byl použit na testování.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-10da113 elementor-widget elementor-widget-image" data-id="10da113" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2025/02/regedit-primary-mailbox1.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="regedit-primary-mailbox1" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTA4MiwidXJsIjoiaHR0cHM6XC9cL3d3dy5zcmFnYS5jelwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyNVwvMDJcL3JlZ2VkaXQtcHJpbWFyeS1tYWlsYm94MS5wbmcifQ%3D%3D">
							<img loading="lazy" decoding="async" width="768" height="415" src="https://www.sraga.cz/wp-content/uploads/2025/02/regedit-primary-mailbox1-768x415.png" class="attachment-medium_large size-medium_large wp-image-1082" alt="Regedit - Outlook primary mailbox" srcset="https://www.sraga.cz/wp-content/uploads/2025/02/regedit-primary-mailbox1-768x415.png 768w, https://www.sraga.cz/wp-content/uploads/2025/02/regedit-primary-mailbox1-300x162.png 300w, https://www.sraga.cz/wp-content/uploads/2025/02/regedit-primary-mailbox1-1024x553.png 1024w, https://www.sraga.cz/wp-content/uploads/2025/02/regedit-primary-mailbox1-1536x829.png 1536w, https://www.sraga.cz/wp-content/uploads/2025/02/regedit-primary-mailbox1.png 1906w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-1b10157 elementor-widget elementor-widget-image" data-id="1b10157" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2025/02/regedit-primary-mailbox2.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="regedit-primary-mailbox2" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTA4MywidXJsIjoiaHR0cHM6XC9cL3d3dy5zcmFnYS5jelwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyNVwvMDJcL3JlZ2VkaXQtcHJpbWFyeS1tYWlsYm94Mi5wbmcifQ%3D%3D">
							<img loading="lazy" decoding="async" width="768" height="486" src="https://www.sraga.cz/wp-content/uploads/2025/02/regedit-primary-mailbox2-768x486.png" class="attachment-medium_large size-medium_large wp-image-1083" alt="Regedit - Outlook primary mailbox" srcset="https://www.sraga.cz/wp-content/uploads/2025/02/regedit-primary-mailbox2-768x486.png 768w, https://www.sraga.cz/wp-content/uploads/2025/02/regedit-primary-mailbox2-300x190.png 300w, https://www.sraga.cz/wp-content/uploads/2025/02/regedit-primary-mailbox2-1024x648.png 1024w, https://www.sraga.cz/wp-content/uploads/2025/02/regedit-primary-mailbox2-1536x971.png 1536w, https://www.sraga.cz/wp-content/uploads/2025/02/regedit-primary-mailbox2.png 1624w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-aaa21fb elementor-widget elementor-widget-text-editor" data-id="aaa21fb" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Po nalezení a odstranění dvou nebo tří klíčů registru přejděte na <strong>Ovládací panely</strong> &gt; <strong>Pošta (Microsoft Outlook)</strong>. Zatím Outlook Desktop nezapínejte.</p><p>Přejděte na &#8222;<strong>E-mailové účty&#8230;</strong>&#8220; a nastavte požadovaný účet jako výchozí, pokud je přítomen původní účet, tak jej odeberte.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-25634e8 elementor-widget elementor-widget-image" data-id="25634e8" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2025/02/control-panel-mail.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="control-panel-mail" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTA4MSwidXJsIjoiaHR0cHM6XC9cL3d3dy5zcmFnYS5jelwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyNVwvMDJcL2NvbnRyb2wtcGFuZWwtbWFpbC5wbmcifQ%3D%3D">
							<img loading="lazy" decoding="async" width="768" height="413" src="https://www.sraga.cz/wp-content/uploads/2025/02/control-panel-mail-768x413.png" class="attachment-medium_large size-medium_large wp-image-1081" alt="Control panel - Mail" srcset="https://www.sraga.cz/wp-content/uploads/2025/02/control-panel-mail-768x413.png 768w, https://www.sraga.cz/wp-content/uploads/2025/02/control-panel-mail-300x161.png 300w, https://www.sraga.cz/wp-content/uploads/2025/02/control-panel-mail-1024x551.png 1024w, https://www.sraga.cz/wp-content/uploads/2025/02/control-panel-mail.png 1386w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-2c53602 elementor-widget elementor-widget-text-editor" data-id="2c53602" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Nyní můžete zapnout Outlook Desktop. Pokud se zobrazí chyba, máte 2 možnosti: 1) dohledat klíč, který jste přehlédli a nesmazali, 2) obnovit registr ze zálohy.</p>								</div>
				</div>
					</div>
				</div>
				</div>
		]]></content:encoded>
					
					<wfw:commentRss>https://www.sraga.cz/outlook-primary-account-cannot-be-removed/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Jak povolit specifický typ souboru v Exchange Online (novém Outlooku)</title>
		<link>https://www.sraga.cz/jak-povolit-specificky-typ-souboru-v-exchange-online-novem-outlooku/</link>
					<comments>https://www.sraga.cz/jak-povolit-specificky-typ-souboru-v-exchange-online-novem-outlooku/#respond</comments>
		
		<dc:creator><![CDATA[Miroslav Šraga]]></dc:creator>
		<pubDate>Thu, 08 Feb 2024 11:42:51 +0000</pubDate>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange Online]]></category>
		<category><![CDATA[Nový Outlook]]></category>
		<category><![CDATA[PowerShell]]></category>
		<guid isPermaLink="false">https://www.sraga.cz/?p=177</guid>

					<description><![CDATA[Setkal jsem se s problémem, že v novém Outlooku a stejně tak v OWA (Outlook Web Access) nelze otevřít specifický typ souboru. V tomto případě byl blokovaný soubor s příponou XML. Vzhledem k tomu, že spousta firem přijímá výpisy z banky právě e-mailem formou přílohy XML, je toto pro uživatele značnou komplikací. Obsah &#160; Řešení, ... <a title="Jak povolit specifický typ souboru v Exchange Online (novém Outlooku)" class="read-more" href="https://www.sraga.cz/jak-povolit-specificky-typ-souboru-v-exchange-online-novem-outlooku/" aria-label="Číst více o Jak povolit specifický typ souboru v Exchange Online (novém Outlooku)">Číst dál</a>]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="177" class="elementor elementor-177" data-elementor-post-type="post">
				<div class="elementor-element elementor-element-9b55833 e-flex e-con-boxed e-con e-parent" data-id="9b55833" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-cf79061 elementor-widget elementor-widget-text-editor" data-id="cf79061" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Setkal jsem se s problémem, že v novém Outlooku a stejně tak v OWA (Outlook Web Access) nelze otevřít specifický typ souboru. V tomto případě byl blokovaný soubor s příponou XML. Vzhledem k tomu, že spousta firem přijímá výpisy z banky právě e-mailem formou přílohy XML, je toto pro uživatele značnou komplikací.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-7b38b1f elementor-widget elementor-widget-image" data-id="7b38b1f" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="exchange-filetype" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTgyLCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wMlwvZXhjaGFuZ2UtZmlsZXR5cGUucG5nIn0%3D">
							<img loading="lazy" decoding="async" width="768" height="459" src="https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype-768x459.png" class="attachment-medium_large size-medium_large wp-image-182" alt="Exchange Online, Outlook - blokovaný typ souboru" srcset="https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype-768x459.png 768w, https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype-300x179.png 300w, https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype.png 822w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-519be6e elementor-toc--minimized-on-tablet elementor-widget elementor-widget-table-of-contents" data-id="519be6e" data-element_type="widget" data-settings="{&quot;exclude_headings_by_selector&quot;:[],&quot;headings_by_tags&quot;:[&quot;h2&quot;,&quot;h3&quot;,&quot;h4&quot;,&quot;h5&quot;,&quot;h6&quot;],&quot;marker_view&quot;:&quot;numbers&quot;,&quot;no_headings_message&quot;:&quot;No headings were found on this page.&quot;,&quot;minimize_box&quot;:&quot;yes&quot;,&quot;minimized_on&quot;:&quot;tablet&quot;,&quot;hierarchical_view&quot;:&quot;yes&quot;,&quot;min_height&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}" data-widget_type="table-of-contents.default">
				<div class="elementor-widget-container">
									<div class="elementor-toc__header">
						<h4 class="elementor-toc__header-title">
				Obsah			</h4>
										<div class="elementor-toc__toggle-button elementor-toc__toggle-button--expand" role="button" tabindex="0" aria-controls="elementor-toc__519be6e" aria-expanded="true" aria-label="Open table of contents"><svg aria-hidden="true" class="e-font-icon-svg e-fas-chevron-down" viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path d="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"></path></svg></div>
				<div class="elementor-toc__toggle-button elementor-toc__toggle-button--collapse" role="button" tabindex="0" aria-controls="elementor-toc__519be6e" aria-expanded="true" aria-label="Close table of contents"><svg aria-hidden="true" class="e-font-icon-svg e-fas-chevron-up" viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path d="M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"></path></svg></div>
					</div>
				<div id="elementor-toc__519be6e" class="elementor-toc__body">
			<div class="elementor-toc__spinner-container">
				<svg class="elementor-toc__spinner eicon-animation-spin e-font-icon-svg e-eicon-loading" aria-hidden="true" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg"><path d="M500 975V858C696 858 858 696 858 500S696 142 500 142 142 304 142 500H25C25 237 238 25 500 25S975 237 975 500 763 975 500 975Z"></path></svg>			</div>
		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-245bb34 elementor-widget elementor-widget-heading" data-id="245bb34" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Řešení, které doporučuje Microsoft</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-ad2c8e9 elementor-widget elementor-widget-text-editor" data-id="ad2c8e9" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Microsoft má <a href="https://support.microsoft.com/en-us/topic/outlook-blocked-access-to-the-following-potentially-unsafe-attachments-c5c4a480-041e-2466-667f-e98d389ff822" target="_blank" rel="noopener">doporučení</a>, použít soubor v jiném formátu, nebo přílohu komprimovat. S tímto se samozřejmě spokojit nechceme, takže na to půjdeme jinak.</p><p>Co budeme potřebovat? Exchange Online PowerShell modul (ExchangeOnlineManagement)</p>								</div>
				</div>
				<div class="elementor-element elementor-element-caf882f elementor-alert-danger elementor-widget elementor-widget-alert" data-id="caf882f" data-element_type="widget" data-widget_type="alert.default">
				<div class="elementor-widget-container">
							<div class="elementor-alert" role="alert">

						<span class="elementor-alert-title">Upozornění</span>
			
						<span class="elementor-alert-description">Níže uvedená nastavení jsou platná pro celý tenatnt. Typy souborů povolujte pouze za předpokldadu, že víte, jaká rizika s tímto mohou být spojena.</span>
			
			
		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-c933d0e elementor-widget elementor-widget-heading" data-id="c933d0e" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Zjištění, zda je soubor typu .xml blokován</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-2d4ec9f elementor-widget elementor-widget-code-block-for-elementor" data-id="2d4ec9f" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'>Get-OwaMailboxPolicy | Select-Object -ExpandProperty BlockedFileTypes
</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-5a227de elementor-widget elementor-widget-image" data-id="5a227de" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="768" height="433" src="https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype_0-768x433.png" class="attachment-medium_large size-medium_large wp-image-183" alt="Exchange Online, Outlook - blokovaný typ souboru" srcset="https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype_0-768x433.png 768w, https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype_0-300x169.png 300w, https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype_0-1024x577.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype_0.png 1115w" sizes="(max-width: 768px) 100vw, 768px" />															</div>
				</div>
				<div class="elementor-element elementor-element-1fbf3a8 elementor-widget elementor-widget-image" data-id="1fbf3a8" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="768" height="433" src="https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype_1-768x433.png" class="attachment-medium_large size-medium_large wp-image-179" alt="Exchange Online, Outlook - blokovaný typ souboru" srcset="https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype_1-768x433.png 768w, https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype_1-300x169.png 300w, https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype_1-1024x577.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype_1.png 1115w" sizes="(max-width: 768px) 100vw, 768px" />															</div>
				</div>
				<div class="elementor-element elementor-element-596bc7c elementor-widget elementor-widget-heading" data-id="596bc7c" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Zjištění, zda je MIME type pro XML blokován (text/xml)</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-fa37556 elementor-widget elementor-widget-code-block-for-elementor" data-id="fa37556" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'>Get-OwaMailboxPolicy | Select-Object -ExpandProperty BlockedMimeTypes
</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-5ff5f09 elementor-widget elementor-widget-image" data-id="5ff5f09" data-element_type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype_3.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="exchange-filetype_3" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTgwLCJ1cmwiOiJodHRwczpcL1wvd3d3LnNyYWdhLmN6XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wMlwvZXhjaGFuZ2UtZmlsZXR5cGVfMy5wbmcifQ%3D%3D">
							<img loading="lazy" decoding="async" width="768" height="433" src="https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype_3-768x433.png" class="attachment-medium_large size-medium_large wp-image-180" alt="Exchange Online, Outlook - blokovaný typ souboru" srcset="https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype_3-768x433.png 768w, https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype_3-300x169.png 300w, https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype_3-1024x577.png 1024w, https://www.sraga.cz/wp-content/uploads/2024/02/exchange-filetype_3.png 1115w" sizes="(max-width: 768px) 100vw, 768px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-721340c elementor-widget elementor-widget-heading" data-id="721340c" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Povolení souboru s příponou .xml</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-b11ec72 elementor-widget elementor-widget-code-block-for-elementor" data-id="b11ec72" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'>Get-OwaMailboxPolicy | Set-OwaMailboxPolicy -BlockedFileTypes @{Remove = &quot;.xml&quot;}
Get-OwaMailboxPolicy | Set-OwaMailboxPolicy -AllowedFileTypes @{Add = &quot;.xml&quot;}</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-bb010d8 elementor-widget elementor-widget-heading" data-id="bb010d8" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Povolení MIME type "text/xml" a "application/xml"</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-b7e045f elementor-widget elementor-widget-code-block-for-elementor" data-id="b7e045f" data-element_type="widget" data-widget_type="code-block-for-elementor.default">
				<div class="elementor-widget-container">
					<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-powershell'>Get-OwaMailboxPolicy | Set-OwaMailboxPolicy -BlockedMimeTypes @{Remove = &quot;text/xml&quot;, &quot;application/xml&quot;}
Get-OwaMailboxPolicy | Set-OwaMailboxPolicy &ndash;AllowedMimeTypes @{Add = &quot;text/xml&quot;, &quot;application/xml&quot;}</code></pre>				</div>
				</div>
				<div class="elementor-element elementor-element-95780c9 elementor-alert-info elementor-widget elementor-widget-alert" data-id="95780c9" data-element_type="widget" data-widget_type="alert.default">
				<div class="elementor-widget-container">
							<div class="elementor-alert" role="alert">

						<span class="elementor-alert-title">Upozornění</span>
			
						<span class="elementor-alert-description">provedené změny se neprojeví hned. Je potřeba několik minut počkat, případně se uživatel odhlásí a znovu přihlásí.</span>
			
			
		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-804a458 elementor-widget elementor-widget-heading" data-id="804a458" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Videonávod</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-d57334d elementor-widget elementor-widget-video" data-id="d57334d" data-element_type="widget" data-settings="{&quot;youtube_url&quot;:&quot;https:\/\/youtu.be\/aBIsd9Dx1xk&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}" data-widget_type="video.default">
				<div class="elementor-widget-container">
							<div class="elementor-wrapper elementor-open-inline">
			<div class="elementor-video"></div>		</div>
						</div>
				</div>
				<div class="elementor-element elementor-element-5f09df6 elementor-widget elementor-widget-heading" data-id="5f09df6" data-element_type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Užitečné odkazy</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-dc3f7b0 elementor-icon-list--layout-traditional elementor-list-item-link-full_width elementor-widget elementor-widget-icon-list" data-id="dc3f7b0" data-element_type="widget" data-widget_type="icon-list.default">
				<div class="elementor-widget-container">
							<ul class="elementor-icon-list-items">
							<li class="elementor-icon-list-item">
											<a href="https://learn.microsoft.com/en-us/exchange/troubleshoot/outlook-on-the-web-issues/cannot-open-attachments#cause" target="_blank" rel="noopener">

												<span class="elementor-icon-list-icon">
							<svg aria-hidden="true" class="e-font-icon-svg e-fas-dot-circle" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"></path></svg>						</span>
										<span class="elementor-icon-list-text">Microsoft 365 users can't open or view attachments in Outlook on the web</span>
											</a>
									</li>
								<li class="elementor-icon-list-item">
											<a href="https://support.microsoft.com/en-us/office/blocked-attachments-in-outlook-434752e1-02d3-4e90-9124-8b81e49a8519?ui=en-us&#038;rs=en-us&#038;ad=usi" target="_blank" rel="noopener">

												<span class="elementor-icon-list-icon">
							<svg aria-hidden="true" class="e-font-icon-svg e-fas-dot-circle" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"></path></svg>						</span>
										<span class="elementor-icon-list-text"> Blocked attachments in Outlook</span>
											</a>
									</li>
								<li class="elementor-icon-list-item">
											<a href="https://support.microsoft.com/en-us/topic/outlook-blocked-access-to-the-following-potentially-unsafe-attachments-c5c4a480-041e-2466-667f-e98d389ff822" target="_blank" rel="noopener">

												<span class="elementor-icon-list-icon">
							<svg aria-hidden="true" class="e-font-icon-svg e-fas-dot-circle" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"></path></svg>						</span>
										<span class="elementor-icon-list-text">Outlook blocked access to the following potentially unsafe attachments</span>
											</a>
									</li>
						</ul>
						</div>
				</div>
					</div>
				</div>
		<div class="elementor-element elementor-element-dc4c950 e-flex e-con-boxed e-con e-parent" data-id="dc4c950" data-element_type="container">
					<div class="e-con-inner">
					</div>
				</div>
				</div>
		]]></content:encoded>
					
					<wfw:commentRss>https://www.sraga.cz/jak-povolit-specificky-typ-souboru-v-exchange-online-novem-outlooku/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
