IMAP issur with Postfix

Discussion in 'ISPConfig 3 Priority Support' started by jpcyrenne, Aug 31, 2014.

  1. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    Good Day,

    I installed the latest ISPConfig on CentOS6.5. After all is compteted I get this:

    Stopping Dovecot Imap: [FAILED]
    doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 7: ssl_cert: Can't open file /etc/postfix/smtpd.cert: No such file or directory
    Starting Dovecot Imap: [FAILED]

    [root@lorax install]# ls -l /etc/postfix/
    [...]
    -rw-r----- 1 root root 3272 Aug 31 16:27 smtpd.key
    [...]


    I tried to update, uninstall and reinstall with no success?

    It always seems to skip this when I run the script (after MySQL charset [utf8]: <-- ENTER)


    Generating a 2048 bit RSA private key
    ..........................................................+++
    ................................+++
    writing new private key to 'smtpd.key'
    -----
    You are about to be asked to enter information that will be incorporated
    into your certificate request.
    What you are about to enter is what is called a Distinguished Name or a DN.
    There are quite a few fields but you can leave some blank
    For some fields there will be a default value,
    If you enter '.', the field will be left blank.
    -----
    Country Name (2 letter code) [XX]: <-- ENTER
    State or Province Name (full name) []: <-- ENTER
    Locality Name (eg, city) [Default City]: <-- ENTER
    Organization Name (eg, company) [Default Company Ltd]: <-- ENTER
    Organizational Unit Name (eg, section) []: <-- ENTER
    Common Name (eg, your name or your server's hostname) []: <-- ENTER
    Email Address []: <-- ENTER
    [...]


    I moved the smtpd.key to smtpd.key.old, uninstalled and reinstalled once again:

    Generating a 4096 bit RSA private key
    ....................................................++
    ....................................++
    writing new private key to 'smtpd.key'
    -----

    same thing...


    Stopping Dovecot Imap: [FAILED]
    doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 7: ssl_cert: Can't open file /etc/postfix/smtpd.cert: No such file or directory
    Starting Dovecot Imap: [FAILED]



    Thank you,

    JP
     
  2. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    OK close...

    Might no be best practice, but I copied over a key and cert from another one of my serveurs and the service started.

    [root@lorax postfix]# service dovecot start
    Starting Dovecot Imap: [ OK ]

    I can't explain where it went wrong? But it's fixed and I'm OK with this...

    Seems OK. I'll create a domain and user to validate it's all OK with webmail....

    JP
     
  3. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    Confirmed. all good.

    I Created a user and could access him through webmail.

    Thanks,

    JP
     

Share This Page