From 9295e1789c49f19988021eb57aa71d72ce46dc2a Mon Sep 17 00:00:00 2001 From: mwiegand Date: Thu, 18 Nov 2021 21:53:29 +0100 Subject: [PATCH] more srv autodiscover --- bundles/mailserver-autoconfig/metadata.py | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/bundles/mailserver-autoconfig/metadata.py b/bundles/mailserver-autoconfig/metadata.py index b943c74..793f156 100644 --- a/bundles/mailserver-autoconfig/metadata.py +++ b/bundles/mailserver-autoconfig/metadata.py @@ -65,12 +65,27 @@ def autoconfig(metadata): f'autoconfig.{domain}': { 'CNAME': {f"{metadata.get('mailserver/autoconfig_hostname')}."}, }, - f'_autodiscover._tcp.{domain}': { - 'SRV': {f"10 10 443 {metadata.get('mailserver/autoconfig_hostname')}."}, - }, f'autodiscover.{domain}': { 'CNAME': {f"{metadata.get('mailserver/autoconfig_hostname')}."}, }, + f'_autodiscover._tcp.{domain}': { + 'SRV': {f"0 1 443 {metadata.get('mailserver/autoconfig_hostname')}."}, + }, + f'_smtp._tcp.{domain}': { + 'SRV': {f"0 1 25 {metadata.get('mailserver/hostname')}."}, + }, + f'_smtps._tcp.{domain}': { + 'SRV': {f"0 1 465 {metadata.get('mailserver/hostname')}."}, + }, + f'_submission._tcp.{domain}': { + 'SRV': {f"0 1 587 {metadata.get('mailserver/hostname')}."}, + }, + f'_imap._tcp.{domain}': { + 'SRV': {f"0 1 143 {metadata.get('mailserver/hostname')}."}, + }, + f'_imaps._tcp.{domain}': { + 'SRV': {f"0 1 993 {metadata.get('mailserver/hostname')}."}, + }, }) return {