Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SpamAssasin sa-learn

Discussion in 'Discussões em Português' started by Luciano Donato, Jan 18, 2017.

  1. Luciano Donato

    Luciano Donato Well-Known Member

    Joined:
    Oct 18, 2015
    Messages:
    49
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Cachoeiro de Itapemirim, ES, Brasil
    cPanel Access Level:
    Root Administrator
    Olá,

    Estou na luta com o spam, tentei usar o seguinte comando:

    sa-learn --spam --mbox -C /home/donato/mail/example.inf.br/luciano/.Junk/

    Porém acontece o seguinte erro:
    plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/ResourceLimits.pm in @INC (@INC contains: /usr/local/share/perl5 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at (eval 608) line 1.

    Minha versão do WHM/Cpanel:
    • CENTOS 6.8 x86_64 virtuozzo – vps
    • WHM 60.0 (build 34)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 Luciano Donato, Jan 18, 2017
    Last edited by a moderator: Jan 18, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,791
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Ensure you are using the sa-learn binary included with cPanel in your command:

    Code:
    /usr/local/cpanel/3rdparty/bin/sa-learn
    Let us know if the error message continues.

    Thank you.

    Translation:

    Olá,

    Certifique-se de que está a utilizar o binário sa-learn incluído no cPanel no seu comando:

    Code:
    /usr/local/cpanel/3rdparty/bin/sa-learn
    Informe-nos se a mensagem de erro continuar.

    Obrigado.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Luciano Donato

    Luciano Donato Well-Known Member

    Joined:
    Oct 18, 2015
    Messages:
    49
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Cachoeiro de Itapemirim, ES, Brasil
    cPanel Access Level:
    Root Administrator
    O erro sumiu, porém ficou o cursor piscando, mais de 1 hora, a pasta em questão tem apenas 100 e-mail.
    Observação, minha configuração usa maildir, por isso dei o seguinte comando:

    /usr/local/cpanel/3rdparty/bin/sa-learn --spam --mbox -C /home/donato/mail/donato.inf.br/luciano/.Junk/cur/

    Seria isso mesmo?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Luciano Donato

    Luciano Donato Well-Known Member

    Joined:
    Oct 18, 2015
    Messages:
    49
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Cachoeiro de Itapemirim, ES, Brasil
    cPanel Access Level:
    Root Administrator
    Consegui!!! Agora é ir treinando para verificar se melhora a situação do spam.

    Segue o comando que utilizei:

    Treinando os Spam
    /usr/local/cpanel/3rdparty/bin/sa-learn --no-sync --spam /home/usuario/mail/dominio.com.br/.Junk/cur/

    Treinando com mensagens validas
    /usr/local/cpanel/3rdparty/bin/sa-learn --no-sync --ham /home/usuario/mail/dominio.com.br/.Archives

    Após fazer os dois usei o seguinte comando:
    /usr/local/cpanel/3rdparty/bin/sa-learn --sync

    Creio que seja só isso.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,791
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm happy to see the command completed successfully after using the updated path. Let us know if you encounter any additional issues.

    Thank you.

    Translation:

    Olá,

    Estou feliz em ver o comando concluído com êxito após a utilização do caminho atualizado. Informe-nos se encontrar algum problema adicional.

    Obrigado.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Luciano Donato

    Luciano Donato Well-Known Member

    Joined:
    Oct 18, 2015
    Messages:
    49
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Cachoeiro de Itapemirim, ES, Brasil
    cPanel Access Level:
    Root Administrator
    Estou a quase dois meses, marcando mensagens como Spam, e algumas, como HAM, porém ainda cerca de 40% ainda não marcadas, como saber se os comando acima estão funcionando?
    Como melhorar o anti-spam?

    Observação, dei o comando:

    root@vps [~]# /usr/local/cpanel/3rdparty/bin/sa-learn --dump magic
    0.000 0 3 0 non-token data: bayes db version
    0.000 0 2089 0 non-token data: nspam
    0.000 0 969 0 non-token data: nham
    0.000 0 176755 0 non-token data: ntokens
    0.000 0 1483383745 0 non-token data: oldest atime
    0.000 0 1489585735 0 non-token data: newest atime
    0.000 0 1489586172 0 non-token data: last journal sync atime
    0.000 0 1489565427 0 non-token data: last expiry atime
    0.000 0 5529600 0 non-token data: last expire atime delta
    0.000 0 11924 0 non-token data: last expire reduction count
    root@vps [~]#
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,791
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You may want to consider additional options to prevent SPAM, such as Greylisting, if the SpamAssassin rules are not effective:

    Greylisting - Documentation - cPanel Documentation

    You may also find third-party options like this helpful:

    Anti-spam DNSBL by BOates

    Thank you.

    Translation:

    Olá,

    Você pode considerar opções adicionais para evitar SPAM, como Greylisting, se as regras do SpamAssassin não forem eficazes:

    Greylisting - Documentation - cPanel Documentation

    Você também pode encontrar opções de terceiros como esta útil:

    Anti-spam DNSBL by BOates

    Obrigado.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Luciano Donato

    Luciano Donato Well-Known Member

    Joined:
    Oct 18, 2015
    Messages:
    49
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Cachoeiro de Itapemirim, ES, Brasil
    cPanel Access Level:
    Root Administrator
    Implementei o Anti-spam DNSBL by BOates, ele está bloqueando mais alguns spams.
    Agora tenho outra dúvida, como eu bloqueio os e-mail que vem com anexo com as extenções "*.jar"?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,791
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @Luciano Donato,

    You can find instructions on how to block those attachments on the following thread:

    Attachments: Filter messages with dangerous attachments

    Thanks!

    Translation:

    Olá @Luciano Donato,

    Você pode encontrar instruções sobre como bloquear esses anexos no seguinte segmento:

    Attachments: Filter messages with dangerous attachments

    Obrigado!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice