dovecot issue

Discussion in 'ISPConfig 3 Priority Support' started by jpcyrenne, May 10, 2014.

  1. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    Good Day,

    I installed the latest ISPConfig on a CentOS 6.5 in an OpenVZ VPS.

    Once I finished, SuirelMail would give me an error. I checked and dovecot (IMAP) wansn't running and I couldn't start it? I noticed there was a simlink on /etc/dovecot/dovecot.conf~ to ../dovecot.conf (in red not existing). I copied a dovecot.conf to ../ an now I get a 'ERROR : Unknown user or password incorrect.' in SquirelMail. Seems I have an identification issue?

    How could I regenerate a good dovicot.conf file?

    Thank you in advance for your help,

    JP Cyrenne

    PS: Odly enough I have Quota issues (no / in fstab) and could not compile suPHP. I'll deal with this later.
     
  2. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    I ran the docecot script with no success.

    # /usr/share/squirrelmail/config/conf.pl


    This was also recommended in the past (didn't help this time):

    ln -s /etc/dovecot/dovecot-sql.conf /etc/dovecot-sql.conf
    ln -s /etc/dovecot/dovecot.conf /etc/dovecot.conf
    /etc/init.d/dovecot restart
    /etc/init.d/postfix restart


    JP
     
    Last edited: May 10, 2014
  3. srijan

    srijan New Member HowtoForge Supporter

    Hi

    Make back of your file /etc/dovecot/dovecot.conf

    Delete old symlinks & replace the old dovecot.conf with this raw dovecot.conf
    Further create the symlinks as follows

     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    ls -la /etc/dovecot*
     
  5. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    till,
    Before I replace:

    $ ls -la /etc/dovecot*
    -rw-r--r-- 1 root root 3455 May 8 17:56 /etc/dovecot.conf
    lrwxrwxrwx 1 root root 29 May 7 21:58 /etc/dovecot-sql.conf -> /etc/dovecot/dovecot-sql.conf

    /etc/dovecot:
    total 36
    drwxr-xr-x 3 root root 4096 May 10 12:46 .
    drwxr-xr-x 94 root root 12288 May 10 15:07 ..
    drwxr-xr-x 2 root root 4096 May 7 20:37 conf.d
    lrwxrwxrwx 1 root root 15 May 10 12:46 dovecot.conf -> ../dovecot.conf
    -rw-r--r-- 1 root root 3455 May 7 21:39 dovecot.conf~
    -rw-r--r-- 1 root root 945 May 7 21:39 dovecot.conf_orig
    -rw------- 1 root root 5813 May 7 21:39 dovecot-sql.conf
     
  6. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    After Srijan's recommendation. No success, same error (after I restart postfix and dovecot).

    $ ls -la /etc/dovecot*
    lrwxrwxrwx 1 root root 25 May 12 15:37 /etc/dovecot.conf -> /etc/dovecot/dovecot.conf
    -rw-r--r-- 1 root root 3455 May 8 17:56 /etc/dovecot.conf.jpc
    lrwxrwxrwx 1 root root 29 May 7 21:58 /etc/dovecot-sql.conf -> /etc/dovecot/dovecot-sql.conf

    /etc/dovecot:
    total 40
    drwxr-xr-x 3 root root 4096 May 12 15:37 .
    drwxr-xr-x 94 root root 12288 May 12 15:37 ..
    drwxr-xr-x 2 root root 4096 May 7 20:37 conf.d
    -rw-r--r-- 1 root root 3448 May 12 15:37 dovecot.conf
    -rw-r--r-- 1 root root 3455 May 7 21:39 dovecot.conf~
    -rw-r--r-- 1 root root 945 May 7 21:39 dovecot.conf_orig
    -rw------- 1 root root 5813 May 7 21:39 dovecot-sql.conf
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    The advice from srijan replaced the dovecot.conf file from ispconfig. To fix that, please rerun the ispconfig update script and choose to reconfigure services.
     
  8. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    Not sure how to reconfigure servives?

    $ ispconfig_update.sh

    ...

    Select update method (stable,svn) [stable]:

    There are no updates available for ISPConfig 3.0.5.4p1
     
  9. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    Ran this again (in case) with no success:

    /usr/share/squirrelmail/config/conf.pl

    Command >> <-- D
    Command >> <-- dovecot
    Command >> Enter
    Command >> Q

    Made sure :
    vi /etc/squirrelmail/config_local.php

    //$default_folder_prefix = ;
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    run:

    Code:
    cd /tmp
    wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz
    tar xvfz ISPConfig-3-stable.tar.gz
    cd ispconfig3_install/install
    php -q update.php
     
  11. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    B-I-N-G-O !

    That did it. Thank you very much for the support once again.

    JP Cyrenne
     

Share This Page