Skip to content

Corrigindo o configurador automático SPF no CPanel

O arquivo SPF.pm vem com um bug, ele omite o “.” no momento de adicionar o domínio na zona dns. Siga os passos abaixo paa corrigir:

# nano /usr/local/cpanel /Cpanel/SPF.pm
Localizar o trecho: 

            ‘match’ => ‘v=spf’,
            ‘removematch’ => ( ( $overwrite || !$spf_match ) ? ‘v=spf’ : $spf_match ),
            ‘domain’ => $domain,
            ‘record’ => $domain,
            ‘value’  => ‘v=spf1 a mx’ . $safekeys . ( $is_complete ? ‘-all’ : ‘?all’ )
          };

Incremente com o “.” após o “domains,” – conforme abaixo:

            ‘match’ => ‘v=spf’,
            ‘removematch’ => ( ( $overwrite || !$spf_match ) ? ‘v=spf’ : $spf_match ),
            ‘domain’ => $domain.”.”,
            ‘record’ => $domain.”.”,
            ‘value’  => ‘v=spf1 a mx’ . $safekeys . ( $is_complete ? ‘-all’ : ‘?all’ )
          };

Salve o arquivo.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.