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!

[Erro] Unable To Open Private Key File

Discussion in 'Discussões em Português' started by abobre, Jun 5, 2012.

  1. abobre

    abobre Member

    Joined:
    Jun 5, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    151
    Bom dia, tenho uma VPS em um DC que contratei e foi ativado o spf, dkim e RDNS, porem agora quando forço o envio do email pelo queue ou ssh me aparece a seguinte mensagem de erro:
    Obs: Estou utilizando a versão mais recente do cpanel

    Code:
    2012-05-23 16:41:04 1SXGdD-00043C-Qh unable to open private key file for reading: mmplanosdesaude.com.br
    
    Código completo

    Code:
    LOG: MAIN
      cwd=/usr/local/cpanel/whostmgr/docroot 4 args: /usr/sbin/exim -v -M 1SXGkX-0007qE-Rs
    delivering 1SXGkX-0007qE-Rs
    LOG: MAIN
      SMTP connection outbound 1337805778 1SXGkX-0007qE-Rs mmplanosdesaude.com.br emaildapessoa@terra.com.br
    Connecting to vip-us-br-mx.terra.com [208.84.244.133]:25 ... connected
      SMTP<< 220 1sb.tpn.terra.com ESMTP
      SMTP>> EHLO mkt.mmplanosdesaude.com.br
      SMTP<< 250-1sb.tpn.terra.com
             250-PIPELINING
             250-SIZE 52429384
             250-ETRN
             250-ENHANCEDSTATUSCODES
             250 8BITMIME
      SMTP>> MAIL FROM:<resposta@mmplanosdesaude.com.br> SIZE=12726
      SMTP>> RCPT TO:<emaildapessoa@terra.com.br>
      SMTP>> DATA
      SMTP<< 250 2.1.0 Ok
      SMTP<< 250 2.1.5 Ok
      SMTP<< 354 End data with <CR><LF>.<CR><LF>
      SMTP>> writing message and terminating "."
    LOG: MAIN PANIC
      unable to open private key file for reading: /var/cpanel/domain_keys/private/mmplanosdesaude.com.br
      SMTP<< 250 2.0.0 Ok: queued as 6BF67880000D6
      SMTP>> QUIT
    LOG: MAIN
      => emaildapessoa@terra.com.br R=dkim_lookuphost T=dkim_remote_smtp H=vip-us-br-mx.terra.com [208.84.244.133]
    LOG: MAIN
      Completed
    
    Isso ocorre em varios e-mails.

    Como reolver este problema?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You might check to be sure the file is owned by root:root and has permissions of 644.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. abobre

    abobre Member

    Joined:
    Jun 5, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    151
    Bom dia, segue a permissão do arquivo.

    Code:
    -rw-r--r-- 1 root wheel 692 Jun  4 09:12 /var/cpanel/domain_keys/private/mmplanosdesaude.com.br
    
    Esta correto desta forma ou devo alterar a permissão?
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Seems correct to me. Have you tried disabling then enabling email authentication on the account to see if that helps?
    cPanel > Mail > Email Authentication

    Not sure I'm much help on this one.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. abobre

    abobre Member

    Joined:
    Jun 5, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    151
    Bom dia, eu já desabilitei e habilitei, já desabilitei e deletei o arquivo ( mmplanosdesaude.com.br ) que fica dentro da pasta /var/cpanel/domain_keys/private/ e infelizmente não adiantou, todos os e-mails enviado me geram o erro:

    unable to open private key file for reading: /var/cpanel/domain_keys/private/mmplanosdesaude.com.br

    Será que isso seria um bug do cpanel ?
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Send a test email from that account to this address if possible: check-auth@verifier.port25.com

    Does the response email mention any sort of issues?

    Please feel free to open a ticket to cPanel Support from within WHM. Top right corner is a Support menu, on it a link to Contact Support.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. abobre

    abobre Member

    Joined:
    Jun 5, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    151
    Boa tarde,

    eu já tinha feito esse procedimento e ele não valida o dkim, segue o retorno do e-mail

    Code:
    
    ==========================================================
    Summary of Results
    ==========================================================
    SPF check:          pass
    DomainKeys check:   neutral
    DKIM check:         neutral
    Sender-ID check:    pass
    SpamAssassin check: ham
    
    ==========================================================
    Details:
    ==========================================================
    
    
     
  8. abobre

    abobre Member

    Joined:
    Jun 5, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    151
    Bom dia, eu já tinha feito esse procedimento, de qualquer forma eu fiz novamente e conforme e-mail de retorno o dkim não esta sendo validado.

    Segue os dados de retorno do e-mail.

    Code:
    
    
    ==========================================================
    Summary of Results
    ==========================================================
    SPF check:          pass
    DomainKeys check:   neutral
    DKIM check:         neutral
    Sender-ID check:    pass
    SpamAssassin check: ham
    
    ==========================================================
    Details:
    ==========================================================
    
    
    
     
  9. cPanelMarco

    cPanelMarco Member
    Staff Member

    Joined:
    Jan 8, 2010
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    51
    Olá,

    Esse problema pode ainda ser devido a permissões nos diretórios pai, dentro de /var/cpanel/domain_keys/:

    drwxr-x--- 2 root mail 4096 May 22 13:21 private/
    drwxr-xr-x 2 root wheel 4096 May 22 13:21 public/

    Há um bug relativo a essas permissões: caso #59257. Se este for o problema, você pode usar esses comandos para corrigir:
    cd /var/cpanel/domain_keys/
    chown root:mail private
    chown root:wheel public

    Esse bug foi corrigido na versão 11.32.3.15, que está atualmente em todos os níveis, exceto STABLE:
    Downloads - cPanel Inc.
    CPanelVersion1132 < AllDocumentation/ChangeLog < TWiki

    Se este não é seu problema, você poderia abrir um ticket com a gente?
    (canto superior direito do WHM, Support -> Contact cPanel)

    Obrigado!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. abobre

    abobre Member

    Joined:
    Jun 5, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    151
    Bom dia cPanelMarco,

    muito obrigado pela sua dica, sem ela eu estaria perdido.

    Executei os comandos que você me auxiliou e deu certo.

    Veja o log de recebo quando envio um e-mail para auth-results@verifier.port25.com

    Agora me tira uma duvida, porque o DomainKeys check não esta sendo validado ?
    E como faço para deixar ele configurado para validar?

    Grato
     
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