Skip to content

jonade/mtasts-functionapp-bicep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Deploy an Azure Function App to host a MTA-STS Policy file

Host a static MTA-STS policy file at https://mta-sts.contoso.com/.well-known/mta-sts.txt to ensure that emails to the domain are sent securely.

The app will be created to host a policy which is in testing mode first. Later this should be changed to enforce mode to ensure that protections start being applied to incoming emails.

Map of Function App resources

Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force
Connect-AzAccount
New-AzResourceGroup -Name "MTASTSRG" -Location "westeurope"
New-AzResourceGroupDeployment -ResourceGroupName "MTASTSRG" -TemplateFile ./main.bicep

# Or pass it a custom prefix name:
New-AzResourceGroupDeployment -ResourceGroupName "MTASTSRG" -TemplateFile ./main.bicep -resourceNamePrefix "ContosoMtaSts"

# Or use a different MX record within the mta-sts.txt policy instead of the default *.mail.protection.outlook.com
New-AzResourceGroupDeployment -ResourceGroupName "MTASTSRG" -TemplateFile ./main.bicep -mxRecord "mail.contoso.com"

or

Deploy to Azure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages