wrong value appeares in the host cell of the "dovecot_user" in mysql.user table

  • for example:
    eth0's IP is 192.168.0.1 (external interface) -> set for i-MSCP IP address
    eth1's IP is 10.0.0.1 (local lan interface)
    remote sql server's IP is 10.0.0.10


    i-MSCP version: 1.1.0-rc3


    If "remote server" is being choosen at "SQL service" page, and I set 10.0.0.10 as SQL server address during the installation process, wrong value appeares in the host cell of the "dovecot_user" in mysql.user table. The eth1 IP address should appeare in the host cell instead of eth0, as at the other user's happen (vftp, roundcube_mail, pma).


  • Hello ;


    I'll check.


    You are normally also asked for SQL hostname to use. You entered what value for that question?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    Edited once, last by Nuxwin ().

  • I changed the default "localhost" value to "10.0.0.10".


    When you choose the remote option for the SQL server, you are asked for the IP address of the remote SQL server and you are also asked for the hostname to use for SQL users created by i-MSCP.


    What is the value of the parameter DATABASE_USER_HOST in your /etc/imscp/imscp.conf file?


    [hr]


    Edit: I've checked the code for the 1.1.0-rc3 and its appear that for dovecot, the DATABASE_USER_HOST was not used... Well, it's normally already fixed in Git Master so please, update.


    Diff 1.1.0-rc3 - Git master for the Dovecot installer


    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    Edited once, last by Nuxwin ().

  • When you choose the remote option for the SQL server, you are asked for the IP address of the remote SQL server and you are also asked for the hostname to use for SQL users created by i-MSCP.


    What is the value of the parameter DATABASE_USER_HOST in your /etc/imscp1/imscp.conf file?


    $ grep 'DATABASE.*HOST' /etc/imscp/imscp.conf
    DATABASE_HOST = 10.0.0.10
    DATABASE_USER_HOST = 10.0.0.10

  • $ grep 'DATABASE.*HOST' /etc/imscp/imscp.conf
    DATABASE_HOST = 10.0.0.10
    DATABASE_USER_HOST = 10.0.0.10


    Ok; Despite the problem as mentioned in my previous post, which is already fixed in master, you are wrong here.


    Code
    1. DATABASE_USER_HOST = 10.0.0.10


    Should be


    Code
    1. DATABASE_USER_HOST = 10.0.0.1


    Please update to last master and after, do a reconfigure:


    Code
    1. # perl imscp-autoinstall -dr sql


    If you want, I can help you via teamviewer. ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    Edited once, last by Nuxwin ().


  • Thank you for taking care of this issue!


    I have already solved it with updating the mysql.user table with right value.