Restoring ISPconfig3

Discussion in 'Installation/Configuration' started by Mike007, Apr 16, 2018.

  1. Mike007

    Mike007 New Member

    I have lost my disk configuration due to a RAID controller failure.
    Previous system was CentOS 5.11 and ISPconfig 3.0.5.4p9 - I installed a newest one on the CentOS 6.9. The reason is that there is no longer enabled repository for CentOS v. 5.11. Or maybe it doesn't matter - than I could install Debian 9.4 instead.

    Fortunatelly I have the rsync copy of these folders: /var/www | /var/vmail | /usr/local/ispconfig | /var/lib/mysql/ and /etc. Can I just I copy (except /etc) content of these folders to a new server ?
    Or how to do it and install mySQL databases ?

    I installed a new ISPconfig server but the very newest version - do the both ISPconfig versions should be exactly the same ? If I am not quite sure - which file inside /usr/local/ispconfig contain ISPconfig version number ?
     
    Last edited: Apr 17, 2018
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. Mike007

    Mike007 New Member

    I copied all above folders except /etc and folder /var/log/ispconfig/httpd was required also. I copied files /etc/passwd and /etc/group also.
    Server httpd is runnig OK, Ispconfig web interface is OK, ftp is OK, clients could login but email server is not working :( Web mail login works (roundcube) and clients can see past emails, but sending and receiving emails is not working.
    I got some errors:
    Code:
    Apr 18 09:05:51 dns postfix/proxymap[24259]: warning: request for unapproved table: "mysql:/etc/postfix/mysql-virtual_sender_login_maps.cf"
    Apr 18 09:05:51 dns postfix/proxymap[24259]: warning: to approve this table for read-only access, list proxy:mysql:/etc/postfix/mysql-virtual_sender_login_maps.cf in main.cf:proxy_read_maps
    Apr 18 09:05:51 dns postfix/smtpd[24258]: fatal: proxymap service is not configured for table "mysql:/etc/postfix/mysql-virtual_sender_login_maps.cf"
    Apr 18 09:05:52 dns postfix/master[5047]: warning: process /usr/libexec/postfix/smtpd pid 24258 exit status 1
    Apr 18 09:05:52 dns postfix/master[5047]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
    
    Old server was CentOS 5.11, new server is CentOS 6.5.
    I notice the difference between Perfect setup CentOS 5.10 and 6.5.
    CentOS 5.10 installs dovecot and dovecot-sieve
    CentOS 6.5 installs dovecot and dovecot-mysql
    Should I remove dovecot-mysql and install dovecot-sieve instead ?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    No.

    What you can do is that you run an ISPConfig updates with reconfigure services = yes.
     
  5. Mike007

    Mike007 New Member

    I did:
    Reconfigure Permissions in master database? (yes,no) [no]: yes
    Reconfigure Services? (yes,no) [yes]:
    and next: service postfix restart
    Result is the same:
    Code:
    Apr 18 10:22:52 dns postfix/postfix-script[1243]: stopping the Postfix mail system
    Apr 18 10:22:52 dns postfix/master[862]: terminating on signal 15
    Apr 18 10:22:52 dns postfix/postfix-script[1328]: starting the Postfix mail system
    Apr 18 10:22:52 dns postfix/master[1329]: daemon started -- version 2.6.6, configuration /etc/postfix
    Apr 18 10:22:53 dns postfix/proxymap[1334]: warning: request for unapproved table: "mysql:/etc/postfix/mysql-virtual_sender_login_maps.cf"
    Apr 18 10:22:53 dns postfix/proxymap[1334]: warning: to approve this table for read-only access, list proxy:mysql:/etc/postfix/mysql-virtual_sender_login_maps.cf in main.cf:proxy_read_maps
    Apr 18 10:22:53 dns postfix/smtpd[1333]: fatal: proxymap service is not configured for table "mysql:/etc/postfix/mysql-virtual_sender_login_maps.cf"
    
     
  6. Mike007

    Mike007 New Member

    I reinstalled postfix and amavis (as it is depending). Current log is:
    Code:
    Apr 18 10:54:40 dns postfix/postfix-script[5197]: stopping the Postfix mail system
    Apr 18 10:54:40 dns postfix/master[4638]: terminating on signal 15
    Apr 18 10:54:40 dns postfix/postfix-script[5269]: starting the Postfix mail system
    Apr 18 10:54:41 dns postfix/master[5270]: daemon started -- version 2.6.6, configuration /etc/postfix
    Apr 18 10:54:55 dns dovecot: imap-login: Disconnected (no auth attempts): rip=31.0.38.219, lip=213.192.68.43, TLS handshaking: SSL_accept() failed: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate unknown: SSL alert number 46
    Apr 18 10:54:56 dns dovecot: imap-login: Disconnected (no auth attempts): rip=31.0.38.219, lip=213.192.68.43, TLS handshaking: SSL_accept() failed: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate unknown: SSL alert number 46
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Now you seem to have an ssl cert problem, check if it exists and that it is not empty and it might be that you wiped out the mailserver config with the reinstallation.
     
  8. Mike007

    Mike007 New Member

    I reinstalled Dovecot also without succsess.
    this part of log corresponding with webmail (roundcube) located on the same machine:
    Code:
    dovecot: imap-login: Disconnected (no auth attempts): rip=31.0.38.219, lip=213.192.68.43, TLS handshaking: SSL_accept() failed: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate unknown: SSL alert number 46
    
    While clients wants to connect from outside using their mail programs (eg. Thunderbird) the log is like this:
    dovecot: imap-login: Disconnected (auth failed, 1 attempts)
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

  10. Mike007

    Mike007 New Member

    This problem appears only while webmail wants to connect (roundcube, located on the same machine. I
     
  11. Mike007

    Mike007 New Member

    I'ff fix SSL cert later, but now most important is this:
    dovecot: imap-login: Disconnected (auth failed, 1 attempts): user=...
     
  12. Mike007

    Mike007 New Member

    It works now - "myhostname" was missing in main.cf because of reinstalling postfix.
     

Share This Page