SPF registries

  • Hello,


    I have i-MSCP 1.0.3.0 installed and I found a bug in SPF records.


    By default, the syntax is SPF generation:


    Code
    1. ./db_e.tpl:{MX}{DMN_NAME}. IN TXT "v=spf1 a mx {TXT_DMN_IP_TYPE}:{DMN_IP} {TXT_SERVER_IP_TYPE}:{BASE_SERVER_IP} ~all"./db_master_e.tpl:{DMN_NAME}. IN TXT "v=spf1 a mx ip4:{DMN_IP} ip4:{BASE_SERVER_IP} ~all"


    {TXT_DMN_IP_TYPE} and {TXT_SERVER_IP_TYPE} fields store "ipv4" or "ipv6", as applicable. The problem is that in SPF records, the format used to designate IPv4 and IPv6 is "ip4" and "ip6", so SPF records that are created are incorrect:


    Code
    1. Record Syntax is invalid: v=spf1 a mx ipv4:x.x.x.x ipv4:y.y.y.y ~all: Syntax Error near: ipv4:x.x.x.x Syntax Error near: ipv4:y.y.y.y


    (Link removed - NO ADS HERE)


    Regards.

    Edited once, last by Nuxwin ().

  • Hello ;


    Fixed in last master. See https://github.com/i-MSCP/imsc…9530a3708caa02ce500eab59f if you want be able to report in stable version.


    Thanks you for using i-MSCP.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206