Set Maximum Certificate Size Limit for Signed Emails in Reply Scenarios.
Explanation
This policy setting controls the maximum limit for the size of the stored certificate in Exchange server when replying to a digitally signed email using Outlook.
If you enable this policy setting, you can configure the maximum limit for the size of the stored certificate, up to a maximum of 16384 kb. This helps to avoid issues where a reply to a digitally signed email may not be delivered or saved in the sent items due to large certificate sizes of the original sender.
By disabling this policy setting, the maximum limit will be the default set at 12921 kb, limiting the ability of administrators to adjust the maximum size of the stored certificate.
If you do not set the policy setting, it is treated as enabled and the default maximum limit for the size of the stored certificate is set at 12921 kb.
Registry
HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\options\mail- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: outlk16/L_SpecifyMaxCertLengthAllowedtoStamp
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\mail'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# In bytes
Set-ItemProperty -Path $k -Name 'maxcertlengthtostamp' -Value 12921 -Type DWord # between 0 and 16384Disable
# Disable: outlk16/L_SpecifyMaxCertLengthAllowedtoStamp
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": outlk16/L_SpecifyMaxCertLengthAllowedtoStamp
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\mail'
Remove-ItemProperty -Path $k -Name 'maxcertlengthtostamp' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| In bytes:L_SpecifyMaxCertLengthAllowedtoStampSpinID | Numeric boxdecimal | maxcertlengthtostamp | REG_DWORD | Min: 0 · Max: 16384 · Default (UI): 12921 |
Application
Microsoft 365 Apps / Office (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.