Posts by dzchimp

    Recently I was concerned that my server had been breached, and changed the root password for mysql.Since then I've started receiving a bunch of these emails from i-mscp:


    Code
    1. Dear admin,An exception with the following message has been thrown in file/var/www/imscp/gui/library/iMSCP/Initializer.php (Line: 354):=================================================================Unable to establish the connection to the database. SQL returned:SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost'(using password: YES)Query was:=================================================================Debug backtrace:---------------File: /var/www/imscp/gui/library/iMSCP/Initializer.php (Line: 138)Method: iMSCP_Initializer::_initializeDatabase()File: /var/www/imscp/gui/library/iMSCP/Initializer.php (Line: 95)Method: iMSCP_Initializer::_processAll()File: /var/www/imscp/gui/library/environment.php (Line: 231)Method: iMSCP_Initializer::run()File: /var/www/imscp/gui/library/imscp-lib.php (Line: 148)Function: require_once()File: /var/www/imscp/gui/public/plugins.php (Line: 30)Function: require_once()


    I assume that's because i-mscp needs to login as sql root user? How should I proceed to reauthenticate i-mscp?


    For now just change ip id in database, set status to change and run request manager


    How can I do this manually? Right now I have a routing problem on my main IP and need to change it to the secondary IP, but cant find an option. Which configuration file or database parameter should I modify?

    Update on this: [email protected] was my domain, and it seems that the issue was with delivering to it. On changing that to a gmail address, mail was delivered correctly.


    The issue seems related to this: http://ubuntuforums.org/showthread.php?t=1570792


    Edit1:
    Unsetting the following in /etc/postfix/main.cf causes mail to be delivered properly via php.


    Code
    1. virtual_mailbox_domains =


    Maybe my scenario is a bit different because my mail is managed by gmail although the domain to which the alias belongs is hosted on this server.

    Hi Nuxwin, I still have this issue where if the MTA sendmail is not installed, the following function in php does not work:


    `@mail($email_to, $email_subject, $email_message, $headers);`


    No emails are sent by php. The only solution so far was installing sendmail. That of course removes postfix automatically. I'd like to get to the bottom of this.


    Latest logs after purging sendmail and installing i-mscp over the installation:


    Code
    1. #tac /var/log/mail.info | lessJun 19 11:40:48 hermes postfix/qmgr[3975]: 40F2E5126FF4: removedJun 19 11:40:48 hermes postfix/virtual[4187]: 40F2E5126FF4: to=<[email protected]>, orig_to=<[email protected]>, relay=virtual, delay=0, delays=0/0/0/0, dsn=5.1.1, status=bounced (unknown user: "[email protected]")Jun 19 11:40:48 hermes postfix/qmgr[3975]: 3D7205126FDD: removedJun 19 11:40:48 hermes postfix/bounce[4188]: 3D7205126FDD: sender non-delivery notification: 40F2E5126FF4Jun 19 11:40:48 hermes postfix/qmgr[3975]: 40F2E5126FF4: from=<>, size=2590, nrcpt=1 (queue active)Jun 19 11:40:48 hermes postfix/cleanup[4184]: 40F2E5126FF4: message-id=<[email protected]>Jun 19 11:40:48 hermes postfix/virtual[4187]: 3D7205126FDD: to=<[email protected]>, relay=virtual, delay=0.02, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "[email protected]")Jun 19 11:40:48 hermes postfix/qmgr[3975]: 3D7205126FDD: from=<[email protected]>, size=835, nrcpt=1 (queue active)Jun 19 11:40:48 hermes postfix/cleanup[4184]: 3D7205126FDD: message-id=<[email protected]>Jun 19 11:40:48 hermes postfix/pickup[3974]: 3D7205126FDD: uid=1001 from=<[email protected]>


    And ports:

    Code
    1. #netstat -lpnActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program nametcp 0 0 127.0.0.1:12525 0.0.0.0:* LISTEN 562/policyd-weighttcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 4014/apache2tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 3966/mastertcp 0 0 127.0.0.1:9876 0.0.0.0:* LISTEN 3860/imscp_daemontcp 0 0 198.23.228.223:53 0.0.0.0:* LISTEN 3995/namedtcp 0 0 127.0.0.2:53 0.0.0.0:* LISTEN 3995/namedtcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 3995/namedtcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 488/sshdtcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 3995/namedtcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 3966/mastertcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 4014/apache2tcp 0 0 127.0.0.1:10023 0.0.0.0:* LISTEN 3867/postgrey.pid -tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 3966/mastertcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 857/mysqldtcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 3966/mastertcp6 0 0 :::110 :::* LISTEN 2773/couriertcpdtcp6 0 0 :::143 :::* LISTEN 2779/couriertcpdtcp6 0 0 :::465 :::* LISTEN 3966/mastertcp6 0 0 :::21 :::* LISTEN 3977/proftpd: (accetcp6 0 0 :::22 :::* LISTEN 488/sshdtcp6 0 0 :::25 :::* LISTEN 3966/mastertcp6 0 0 :::993 :::* LISTEN 2803/couriertcpdtcp6 0 0 :::995 :::* LISTEN 2791/couriertcpdtcp6 0 0 :::587 :::* LISTEN 3966/masterudp 0 0 198.23.228.223:53 0.0.0.0:* 3995/namedudp 0 0 127.0.0.2:53 0.0.0.0:* 3995/namedudp 0 0 127.0.0.1:53 0.0.0.0:* 3995/named


    I have tried a manual telnet from the server and it works:

    Code
    1. #telnet alt4.gmail-smtp-in.l.google.com 25Trying 173.194.70.26...Connected to alt4.gmail-smtp-in.l.google.com.Escape character is '^]'.220 mx.google.com ESMTP y5si17268626eep.271 - gsmtphelo mydom.co.in250 mx.google.com at your servicemail from:<[email protected]>250 2.1.0 OK y5si17268626eep.271 - gsmtprcpt to:<[email protected]>250 2.1.5 OK y5si17268626eep.271 - gsmtpdata354 Go ahead y5si17268626eep.271 - gsmtpFrom: <[email protected]>Subject: This is a testTesting.250 2.0.0 OK 1371623122 y5si17268626eep.271 - gsmtp


    And if I install sendmail and try sending a mail with php, it works perfectly:

    Code
    1. Jun 19 12:12:00 hermes sendmail[6208]: r5J6fwkN006208: [email protected], [email protected] (1001/1001), delay=00:00:02, xdelay=00:00:01, mailer=relay, pri=30584, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (r5J6fxGH006209 Message accepted for delivery)
    2. Jun 19 12:12:00 hermes sm-mta[6209]: r5J6fxGH006209: from=<[email protected]>, size=909, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA-v4, relay=hermes.mydom.co.in.local [127.0.0.1]
    3. Jun 19 12:11:59 hermes sendmail[6208]: r5J6fwkN006208: [email protected], size=584, class=0, nrcpts=1, msgid=<[email protected]>, relay=vu2003@localhost
    4. Jun 19 12:11:58 hermes sendmail[6208]: r5J6fwkN006208: Authentication-Warning: hermes.mydom.co.in: vu2003 set sender to [email protected] using -f
    5. Jun 19 12:10:05 hermes sm-mta[6183]: starting daemon (8.14.3): SMTP+queueing@00:10:00
    6. Jun 19 12:10:05 hermes sm-mta[6181]: gethostbyaddr(127.0.0.2) failed: 1
    7. Jun 19 12:10:05 hermes sendmail[6138]: /etc/mail/aliases: 1 aliases, longest 4 bytes, 14 bytes total
    8. Jun 19 12:10:05 hermes sendmail[6138]: alias database /etc/mail/aliases rebuilt by root
    9. Jun 19 12:10:05 hermes sendmail[6138]: gethostbyaddr(127.0.0.2) failed: 1
    10. Jun 19 12:09:56 hermes postfix/master[4912]: terminating on signal 15

    Ah. Sorry. I didnt notice that thread. I'll patch my version.


    Code
    1. wget https://github.com/i-MSCP/imscp/commit/1ad65477fdb1bfdbe0770635ac5f3d5a168e8889.diff && patch -p1<1ad65477fdb1bfdbe0770635ac5f3d5a168e8889.diff


    It works! Thanks.

    I recently installed Debian 6 32 bit minimal on a VPS, updated and upgraded the packages. Then I changed the apt sources from squeeze to wheeze, upgraded and thus completed a successful upgrade from squeeze to wheeze.


    I now tried to install the latest imscp-1.1.0-rc2.3.tar.bz2 with the auto installer, and got the following message:


    Distribution not supported
    -----------------------------
    Onle ebian-like OS are supported


    How does the script check whether I'm runing Debian?


    I have:

    Code
    1. #cat /etc/debian_version
    2. 7.1