Skip to content

Commit 73b0247

Browse files
committed
[NEW] Implement MTA-STS and TLS-RPT support for email security visibility
1 parent 7dc410b commit 73b0247

File tree

7 files changed

+1341
-0
lines changed

7 files changed

+1341
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,10 @@ setup: ## locally setup app and users. presumes env vars are set
3030
echo "Creating directories and configs"
3131
./scripts/setup_system.sh
3232

33+
.PHONY: setup-mta-sts
34+
setup-mta-sts: ## setup MTA-STS and TLS-RPT. usage: make setup-mta-sts DOMAIN=example.com MX=mail.example.com [email protected]
35+
@if [ -z "$(DOMAIN)" ]; then echo "Error: DOMAIN is required. Usage: make setup-mta-sts DOMAIN=example.com MX=mail.example.com [email protected]"; exit 1; fi
36+
@if [ -z "$(MX)" ]; then echo "Error: MX is required. Usage: make setup-mta-sts DOMAIN=example.com MX=mail.example.com [email protected]"; exit 1; fi
37+
./scripts/setup_mta_sts.sh -d $(DOMAIN) -m "$(MX)" $(if $(EMAIL),-e $(EMAIL),)
3338
help: ## get help
3439
@grep -E '^[a-zA-Z_-]+:.*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

0 commit comments

Comments
 (0)