Add syntax examples to the SPF edit page?

Discussion in 'Feature Requests' started by helmo, Dec 26, 2024 at 8:39 AM.

  1. helmo

    helmo Member HowtoForge Supporter

    For someone who is not all that familiar with SFP records and gets an example from some vendor to add to their DNS the current form can be a bit confusing.

    What if we include the literal elements and prefixes that they will see, such as '-all' and 'include:'.

    And yes they could also use the 'Edit as TXT record' button when they have a premade string... but that is probably the last thing they see, and often such example records need to be combined for multiple vendors.

    The screenshot shows a few tries in different places. I'm fairly happy with the 'SPF Mechanism' field. The others don't work as well since the text is already a bit long.

    Just thinking out loud here :)

    upload_2024-12-25_23-10-11.png

    diff --git interface/web/dns/lib/lang/en_dns_spf.lng interface/web/dns/lib/lang/en_dns_spf.lng
    index 674cbad33..4aae37171 100644
    --- interface/web/dns/lib/lang/en_dns_spf.lng
    +++ interface/web/dns/lib/lang/en_dns_spf.lng
    @@ -4,19 +4,19 @@
    $wb['data_txt'] = 'SPF-Record';
    $wb['name_txt'] = 'Hostname';
    $wb['spf_mechanism_txt'] = 'SPF Mechanism';
    -$wb['spf_mechanism_pass_txt'] = 'Pass - allow mail from other senders';
    -$wb['spf_mechanism_fail_txt'] = 'Fail - reject mail from other senders';
    -$wb['spf_mechanism_softfail_txt'] = 'SoftFail - allow mail from other senders but mark the email';
    -$wb['spf_mechanism_neutral_txt'] = 'Neutral - do nothing';
    -$wb['spf_mx_txt'] = 'Allow servers listed as MX to send email for this domain';
    -$wb['spf_a_txt'] = 'Allow current IP address of the domain to send email for this domain';
    -$wb['spf_ip_txt'] = 'Additional IP addresses in CIDR format that deliver or relay mail for this domain';
    -$wb['spf_ip_note_txt'] = '(Sepearate IPs with whitespaces)';
    +$wb['spf_mechanism_pass_txt'] = 'Pass - allow mail from other senders (+all) ';
    +$wb['spf_mechanism_fail_txt'] = 'Fail - reject mail from other senders (-all)';
    +$wb['spf_mechanism_softfail_txt'] = 'SoftFail - allow mail from other senders but mark the email (~all)';
    +$wb['spf_mechanism_neutral_txt'] = 'Neutral - do nothing (?all)';
    +$wb['spf_mx_txt'] = 'Allow servers listed as MX to send email for this domain (mx)';
    +$wb['spf_a_txt'] = 'Allow current IP address of the domain to send email for this domain (a)';
    +$wb['spf_ip_txt'] = 'Additional IP addresses in CIDR format that deliver or relay mail for this domain (adds ip4: or ip6:)';
    +$wb['spf_ip_note_txt'] = '(Sepearate IPs with whitespaces, adds: ip4: or ip6:)';
    $wb['spf_invalid_ip_txt'] = 'Invalid IP-address';
    -$wb['spf_hostname_txt'] = 'Any other server hostname that may deliver or relay mail for this domain';
    +$wb['spf_hostname_txt'] = 'Any other server hostname that may deliver or relay mail for this domain (adds a:)';
    $wb['spf_hostname_note_txt'] = '(Sepearate hostnames with whitespaces)';
    $wb['spf_invalid_hostname_txt'] = 'Invalid hostname';
    -$wb['spf_domain_txt'] = 'Any domains that may deliver or relay mail for this domain';
    +$wb['spf_domain_txt'] = 'Any domains that may deliver or relay mail for this domain (adds include:)';
    $wb['spf_domain_note_txt'] = '(Sepearate domains with whitespaces)';
    $wb['spf_invalid_domain_txt'] = 'Invalid domainname';
    $wb['ttl_txt'] = 'TTL';
     
    ahrasis likes this.

Share This Page