diff --git a/applications/email.nix b/applications/email.nix index e80c466..4018ec6 100644 --- a/applications/email.nix +++ b/applications/email.nix @@ -110,16 +110,19 @@ {record="mail._domainkey.ulcompsoc.ie."; r_type="TXT"; value=''"v=DKIM1; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDl8ptSASx37t5sfmU2d2Y6yi9AVrsNFBZDmJ2uaLa4NuvAjxGQCw4wx+1Jui/HOuKYLpntLsjN851wgPR+3i51g4OblqBDvcHn9NYgWRZfHj9AASANQjdsaAbkXuyKuO46hZqeWlpESAcD6a4Evam4fkm+kiZC0+rccb4cWgsuLwIDAQAB"'';} # DMARC {record="_dmarc.${cfg.domain}."; r_type="TXT"; value=''"v=DMARC1; p=none"'';} + + # reverse pointer + {record=cfg.host.ip; r_type="PTR"; value="${cfg.sub}.${cfg.domain}.";} # SRV records to help gmail on android etc find the correct mail.skynet.ie domain for config rather than just defaulting to skynet.ie # https://serverfault.com/questions/935192/how-to-setup-auto-configure-email-for-android-mail-app-on-your-server/1018406#1018406 # response should be: # _imap._tcp SRV 0 1 143 imap.example.com. - {record="_imaps._tcp"; r_type="SRV"; value="0 1 993 ${cfg.sub}.${cfg.domain}";} - {record="_imaps._tcp"; r_type="SRV"; value="10 1 143 ${cfg.sub}.${cfg.domain}";} - {record="_pop3._tcp"; r_type="SRV"; value="20 1 995 ${cfg.sub}.${cfg.domain}";} - {record="_submissions._tcp" ; r_type="SRV"; value="0 1 465 ${cfg.sub}.${cfg.domain}";} - {record="_submission._tcp" ; r_type="SRV"; value="10 1 587 ${cfg.sub}.${cfg.domain}";} + {record="_imaps._tcp"; r_type="SRV"; value="0 1 993 ${cfg.sub}.${cfg.domain}";} + {record="_imaps._tcp"; r_type="SRV"; value="10 1 143 ${cfg.sub}.${cfg.domain}";} + {record="_pop3s._tcp"; r_type="SRV"; value="20 1 995 ${cfg.sub}.${cfg.domain}";} + {record="_submissions._tcp" ; r_type="SRV"; value="0 1 465 ${cfg.sub}.${cfg.domain}";} + {record="_submission._tcp" ; r_type="SRV"; value="10 1 587 ${cfg.sub}.${cfg.domain}";} ];