Roundcube Authentication Failed

Discussion in 'Installation/Configuration' started by Paulo Barreiros, Sep 29, 2022.

  1. Paulo Barreiros

    Paulo Barreiros New Member

    Hi

    I'm running a multiserver environment, where my main server have installed Mail,Web,DNS,File,DB.
    On the second server i have installed using the following command : "wget -O - xxxxx://get.ispconfig.org | sh -s -- --no-dns --use-php=system --use-unbound --interactive".
    If i create an email box using the domain i need, in the main server.... i can login in roundcube with that account.
    If i do the exact same thing, but using the second server, i cannot login to roundcube... the message in the log file is : "AUTHENTICATE PLAIN: Authentication failed. in /usr/share/roundcube/program/lib/Roundcube/rcube_imap.php on line 204 (POST /webmail/?_task=login&_action=login)"

    Any help would be appreciated.

    Thanks
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I'm not sure I understand the problem, but remind you that ISPConfig panel can only be used on the main host.
    If that was not the cause, describe more what you mean by
     
  3. Paulo Barreiros

    Paulo Barreiros New Member

    Thanks for your answer.
    I will try to be more specific.
    I've followed the guide "ISPConfig Perfect Multiserver setup on Ubuntu 20.04 and Debian 10 and Debian 11", but only installed main server and a second one for mail.
    For the mail server, instead of running the command : "wget -O - xxxxx://get.ispconfig.org | sh -s -- --no-dns --no-roundcube --no-mailman --use-php=system --use-unbound --interactive", i used "wget -O - xxxxx://get.ispconfig.org | sh -s -- --no-dns --use-php=system --use-unbound --interactive".
    I will then create a domain in the "EMail" Tab, and as server i specify the second server. i will then create an email mailbox.
    When i try to access roundcube, using the credentials created before.... i get an authentication failed.

    I will then delete the mailbox, and the domain created for the mail.

    I will then create a domain in the "EMail" Tab, and as server i specify the main server (since i installed mail service in the main server also). i will then create an email mailbox, and when i try to access roundcube everything works.
    I'm pretty sure, that is something i'm doing wrong.... but i can't figure it out what .

    Thanks for your help
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  5. Paulo Barreiros

    Paulo Barreiros New Member

    So, i've installed the mail server once again, but this time i've used the "no-roundcube" and the "no-mailman" switches... but unfortunatelly the result is the same.
    As your request, i've runned the script on both servers, and here are the results :
    Main Server htf_report:
    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 20.04.5 LTS
     
    [INFO] uptime:  18:36:12 up  5:34,  1 user,  load average: 0.00, 0.02, 0.02
     
    [INFO] memory:
                  total        used        free      shared  buff/cache   available
    Mem:          7.8Gi       2.5Gi       2.9Gi       310Mi       2.4Gi       4.7Gi
    Swap:         4.0Gi          0B       4.0Gi
     
    [INFO] systemd failed services status:
      UNIT                      LOAD   ACTIVE SUB    DESCRIPTION                             
    ● snap.lxd.activate.service loaded failed failed Service for snap application lxd.activate
    
    LOAD   = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB    = The low-level unit activation state, values depend on unit type.
    
    1 loaded units listed.
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.8p1
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.4.32
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.4.32
    
    ##### PORT CHECK #####
    
    [WARN] Port 22 (SSH server) seems NOT to be listening
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
        Apache 2 (PID 1092)
    [INFO] I found the following mail server(s):
        Postfix (PID 2141)
    [INFO] I found the following pop3 server(s):
        Dovecot (PID 775)
    [INFO] I found the following imap server(s):
        Dovecot (PID 775)
    [INFO] I found the following ftp server(s):
        PureFTP (PID 1431)
    
    ##### LISTENING PORTS #####
    (only        ()
    Local        (Address)
    [anywhere]:993        (775/dovecot)
    [anywhere]:995        (775/dovecot)
    [localhost]:10023        (1216/postgrey)
    [localhost]:10024        (1876/amavisd-new)
    [localhost]:10025        (2141/master)
    [localhost]:10026        (1876/amavisd-new)
    [localhost]:10027        (2141/master)
    [anywhere]:587        (2141/master)
    [localhost]:11211        (788/memcached)
    [anywhere]:110        (775/dovecot)
    [anywhere]:143        (775/dovecot)
    [anywhere]:465        (2141/master)
    [anywhere]:209        (905/sshd:)
    [anywhere]:21        (1431/pure-ftpd)
    [localhost]:53        (793/named)
    ***.***.***.***:53        (757/systemd-resolve)
    [anywhere]:25        (2141/master)
    [localhost]:953        (793/named)
    *:*:*:*::*:443        (1092/apache2)
    *:*:*:*::*:993        (775/dovecot)
    *:*:*:*::*:995        (775/dovecot)
    *:*:*:*::*:10024        (1876/amavisd-new)
    *:*:*:*::*:10026        (1876/amavisd-new)
    *:*:*:*::*:3306        (1130/mysqld)
    *:*:*:*::*:587        (2141/master)
    [localhost]10        (775/dovecot)
    [localhost]43        (775/dovecot)
    *:*:*:*::*:8080        (1092/apache2)
    *:*:*:*::*:80        (1092/apache2)
    *:*:*:*::*:465        (2141/master)
    *:*:*:*::*:8081        (1092/apache2)
    *:*:*:*::*:209        (905/sshd:)
    *:*:*:*::*:21        (1431/pure-ftpd)
    *:*:*:*::*:53        (793/named)
    *:*:*:*::*:25        (2141/master)
    *:*:*:*::*:953        (793/named)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    
    
    
    ##### LET'S ENCRYPT #####
    Certbot is installed in /usr/bin/letsencrypt
    
    
    
    Mail Server htf_report :
    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 20.04.5 LTS
     
    [INFO] uptime:  18:37:14 up  1:05,  1 user,  load average: 0.08, 0.03, 0.10
     
    [INFO] memory:
                  total        used        free      shared  buff/cache   available
    Mem:           15Gi       679Mi        12Gi       6.0Mi       2.2Gi        14Gi
    Swap:         4.0Gi          0B       4.0Gi
     
    [INFO] systemd failed services status:
      UNIT LOAD ACTIVE SUB DESCRIPTION
    0 loaded units listed.
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.8p2
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.4.3
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.4.3
    
    ##### PORT CHECK #####
    
    [WARN] Port 8080 (ISPConfig) seems NOT to be listening
    [WARN] Port 22 (SSH server) seems NOT to be listening
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
        Apache 2 (PID 196582)
    [INFO] I found the following mail server(s):
        Postfix (PID 61538)
    [INFO] I found the following pop3 server(s):
        Dovecot (PID 61559)
    [INFO] I found the following imap server(s):
        Dovecot (PID 61559)
    [INFO] I found the following ftp server(s):
        PureFTP (PID 61855)
    
    ##### LISTENING PORTS #####
    (only        ()
    Local        (Address)
    [anywhere]:587        (61538/master)
    [localhost]:11211        (41821/memcached)
    [localhost]:6379        (30874/redis-server)
    [anywhere]:110        (61559/dovecot)
    [anywhere]:143        (61559/dovecot)
    [anywhere]:465        (61538/master)
    [anywhere]:210        (858/sshd:)
    [anywhere]:21        (61855/pure-ftpd)
    [localhost]:53        (32950/unbound)
    ***.***.***.***:53        (786/systemd-resolve)
    [anywhere]:25        (61538/master)
    [anywhere]:4190        (61559/dovecot)
    [anywhere]:993        (61559/dovecot)
    [anywhere]:995        (61559/dovecot)
    [localhost]:11332        (195413/rspamd:)
    [localhost]:11333        (195413/rspamd:)
    [localhost]:11334        (195413/rspamd:)
    [localhost]:10023        (31178/postgrey)
    *:*:*:*::*:587        (61538/master)
    *:*:*:*::*:6379        (30874/redis-server)
    [localhost]10        (61559/dovecot)
    [localhost]43        (61559/dovecot)
    *:*:*:*::*:80        (196582/apache2)
    *:*:*:*::*:8081        (196582/apache2)
    *:*:*:*::*:465        (61538/master)
    *:*:*:*::*:210        (858/sshd:)
    *:*:*:*::*:21        (61855/pure-ftpd)
    *:*:*:*::*:53        (32950/unbound)
    *:*:*:*::*:25        (61538/master)
    *:*:*:*::*:443        (196582/apache2)
    *:*:*:*::*:4190        (61559/dovecot)
    *:*:*:*::*:993        (61559/dovecot)
    *:*:*:*::*:995        (61559/dovecot)
    *:*:*:*::*:3306        (60871/mysqld)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    
    
    
    ##### LET'S ENCRYPT #####
    acme.sh is installed in /root/.acme.sh/acme.sh
    
    
    
    And once again.... thanks for your help.
     
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Can you share the Roundcube configs on both server?

    Are you trying to login to a account through Roundcube on server2 when the email account is on server1 or vice versa? That does not work of course, unless you set up mirroring.

    What is shown regarding logins at that time in the mail.log?
     
  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    If you install server1 with mail and roundcube and server2 with mail and roundcube, it should both work fine (on it's own server). I prefer having a separate server for the webmail, which is set up later in the guide.
     
  8. Paulo Barreiros

    Paulo Barreiros New Member

    I think i've found the problem...
    In Roundcube config, i was not pointing to the second server....
    Too damn stupid of me....
    Thanks for your help
     
    Th0m likes this.

Share This Page