Compare commits

..

2 Commits

Author SHA1 Message Date
Andreas Knuth 0bffc8856f CNAME imap hinzugefügt 2025-03-22 11:56:47 +01:00
Andreas Knuth 04d07414c9 chmod 2025-03-22 11:45:42 +01:00
4 changed files with 5 additions and 0 deletions

0
dovecot/awsiam.sh Normal file → Executable file
View File

0
dovecot/awss3.sh Normal file → Executable file
View File

0
dovecot/awsses.sh Normal file → Executable file
View File

View File

@ -2,6 +2,7 @@
# Cloudflare API-Konfiguration
# Setze deine API-Schlüssel und Zone-ID als Umgebungsvariablen oder ersetze sie direkt
# CF_ZONE_ID="1b7756cee93ed8ba8c05bdc3cb0a5da8" # Die Zone-ID deiner Domain bei Cloudflare
# DOMAIN_NAME="andreasknuth.de" # Deine Domain
AWS_REGION="us-east-2" # AWS-Region
@ -144,6 +145,10 @@ echo "MX-Einträge anlegen bei Cloudflare..."
create_dns_record "MX" "${DOMAIN_NAME}" "inbound-smtp.${AWS_REGION}.amazonaws.com" "false" 3600 10
create_dns_record "MX" "mail.${DOMAIN_NAME}" "feedback-smtp.${AWS_REGION}.amazonses.com" "false" 3600 10
# CNAME für mail.{Domain} anlegen
echo "CNAME für mail.${DOMAIN_NAME} anlegen bei Cloudflare..."
create_dns_record "CNAME" "imap.${DOMAIN_NAME}" "${DOMAIN_NAME}" "false" 1
# SPF-Eintrag anlegen
echo "SPF-Eintrag anlegen bei Cloudflare..."
create_dns_record "TXT" "mail.${DOMAIN_NAME}" "v=spf1 include:amazonses.com ~all" "false" 3600