cannot login to phpmyadmin/squirrelmail

Discussion in 'Server Operation' started by Heeter, Apr 27, 2014.

  1. Heeter

    Heeter Member

    Hi all,

    I followed the "the perfect Server 14.04" how-to and followed everything up until the install of ISPconfig3. I did not install ISPConfig3.

    I cannot login into phpmyadmin, and squirrelmail (dovecot), I am trying to use my root/password account.

    What can I do? I thought that created default accounts when installing this applications.

    Thanks

    Heeter
     
  2. Heeter

    Heeter Member

    Update:

    I finally figured out the phpmyadmin side,

    But still having issues with squirrelmail dovecot.

    Thanks

    Heeter
     
  3. srijan

    srijan New Member HowtoForge Supporter

    Hi

    Please paste the utput of

    Br//
    Srijan
     
  4. Heeter

    Heeter Member

    Code:
    root@hcctech:/home/adminpc# ls -l /etc/fail2ban/filter.d/
    total 188
    -rw-r--r-- 1 root root  442 Nov 12 14:06 3proxy.conf
    -rw-r--r-- 1 root root 2905 Nov 12 14:06 apache-auth.conf
    -rw-r--r-- 1 root root 2736 Nov 12 14:06 apache-badbots.conf
    -rw-r--r-- 1 root root  656 Nov 12 14:06 apache-common.conf
    -rw-r--r-- 1 root root  596 Nov 12 14:06 apache-nohome.conf
    -rw-r--r-- 1 root root  718 Nov 12 14:06 apache-noscript.conf
    -rw-r--r-- 1 root root 1983 Nov 12 14:06 apache-overflows.conf
    -rw-r--r-- 1 root root 1156 Nov 12 14:06 assp.conf
    -rw-r--r-- 1 root root 1631 Nov 12 14:06 asterisk.conf
    -rw-r--r-- 1 root root 1669 Nov 12 14:06 common.conf
    -rw-r--r-- 1 root root  393 Nov 12 14:06 courierlogin.conf
    -rw-r--r-- 1 root root  352 Nov 12 14:06 couriersmtp.conf
    -rw-r--r-- 1 root root  418 Nov 12 14:06 cyrus-imap.conf
    -rw-r--r-- 1 root root 1148 Nov 12 14:06 dovecot.conf
    -rw-r--r-- 1 root root  256 Apr 26 19:07 dovecot-pop3imap.conf
    -rw-r--r-- 1 root root 1696 Nov 12 14:06 dropbear.conf
    -rw-r--r-- 1 root root  403 Nov 12 14:06 exim-common.conf
    -rw-r--r-- 1 root root 1359 Nov 12 14:06 exim.conf
    -rw-r--r-- 1 root root  671 Nov 12 14:06 exim-spam.conf
    -rw-r--r-- 1 root root  322 Nov 12 14:06 gssftpd.conf
    -rw-r--r-- 1 root root  323 Nov 12 14:06 lighttpd-auth.conf
    -rw-r--r-- 1 root root  886 Nov 12 14:06 mysqld-auth.conf
    -rw-r--r-- 1 root root 1693 Nov 12 14:06 named-refused.conf
    -rw-r--r-- 1 root root  422 Nov 12 14:06 nginx-http-auth.conf
    -rw-r--r-- 1 root root  808 Nov 12 14:06 pam-generic.conf
    -rw-r--r-- 1 root root  568 Nov 12 14:06 perdition.conf
    -rw-r--r-- 1 root root  834 Nov 12 14:06 php-url-fopen.conf
    -rw-r--r-- 1 root root  599 Nov 12 14:06 postfix.conf
    -rw-r--r-- 1 root root  312 Nov 12 14:06 postfix-sasl.conf
    -rw-r--r-- 1 root root  935 Nov 12 14:06 proftpd.conf
    -rw-r--r-- 1 root root  391 Nov 12 14:06 pure-ftpd.conf
    -rw-r--r-- 1 root root  112 Apr 26 19:06 pureftpd.conf
    -rw-r--r-- 1 root root  795 Nov 12 14:06 qmail.conf
    -rw-r--r-- 1 root root 1200 Nov 12 14:06 recidive.conf
    -rw-r--r-- 1 root root  908 Nov 12 14:06 roundcube-auth.conf
    -rw-r--r-- 1 root root  517 Nov 12 14:06 selinux-common.conf
    -rw-r--r-- 1 root root  570 Nov 12 14:06 selinux-ssh.conf
    -rw-r--r-- 1 root root  371 Nov 12 14:06 sieve.conf
    -rw-r--r-- 1 root root  472 Nov 12 14:06 sogo-auth.conf
    -rw-r--r-- 1 root root 1734 Nov 12 14:06 sshd.conf
    -rw-r--r-- 1 root root  697 Nov 12 14:06 sshd-ddos.conf
    -rw-r--r-- 1 root root  645 Nov 12 14:06 suhosin.conf
    -rw-r--r-- 1 root root  374 Nov 12 14:06 uwimap-auth.conf
    -rw-r--r-- 1 root root  393 Nov 12 14:06 vsftpd.conf
    -rw-r--r-- 1 root root  444 Nov 12 14:06 webmin-auth.conf
    -rw-r--r-- 1 root root  514 Nov 12 14:06 wuftpd.conf
    -rw-r--r-- 1 root root  503 Nov 12 14:06 xinetd-fail.conf
    You have new mail in /var/mail/root
    root@hcctech:/home/adminpc# 
    
    Thanks

    Heeter
     
  5. srijan

    srijan New Member HowtoForge Supporter

    Hi

    There is a file missing, create a file sasl.conf with content
    & then try to restart the service of fail2ban.

    Br//
    Srijan
     
  6. Heeter

    Heeter Member

    Hi Thanks for the help.

    This is what I am getting now:

    Code:
    root@adminpc:/etc/fail2ban/filter.d# service fail2ban restart
     * Restarting authentication failure monitor fail2ban                    [ OK ] 
    root@adminpc:/etc/fail2ban/filter.d#
    
    Heeter
     
  7. srijan

    srijan New Member HowtoForge Supporter

    Please create the file sasl.conf as mentiontioned in above posts.
    Further restart the fail2ban service
    Br//
    Srijan
     
  8. Heeter

    Heeter Member

    Sorry, I did forget to mention that I did create that file, but fail2ban still fails to start.


    Heeter
     
  9. srijan

    srijan New Member HowtoForge Supporter

    Please paste the fail2ban.log file

    Br//
    Srijan
     
  10. Heeter

    Heeter Member

    Thank You for your help so far:

    Code:
    root@adminpc:/home/adminpc# cat /var/log/fail2ban
    cat: /var/log/fail2ban: No such file or directory
    root@adminpc:/home/adminpc# 
    
    Heeter
     
  11. srijan

    srijan New Member HowtoForge Supporter

    Sorry the file was
    Br//
    Srijan
     
  12. Heeter

    Heeter Member

    Here you go:

    Code:
    root@adminpc:/var/www/html/config# cat /var/log/fail2ban.log
    2014-04-26 19:05:15,131 fail2ban.server : INFO   Changed logging target to /var/log/fail2ban.log for Fail2ban v0.8.11
    2014-04-26 19:05:15,132 fail2ban.jail   : INFO   Creating new jail 'ssh'
    2014-04-26 19:05:15,174 fail2ban.jail   : INFO   Jail 'ssh' uses pyinotify
    2014-04-26 19:05:15,233 fail2ban.jail   : INFO   Initiated 'pyinotify' backend
    2014-04-26 19:05:15,234 fail2ban.filter : INFO   Added logfile = /var/log/auth.log
    2014-04-26 19:05:15,235 fail2ban.filter : INFO   Set maxRetry = 6
    2014-04-26 19:05:15,235 fail2ban.filter : INFO   Set findtime = 600
    2014-04-26 19:05:15,236 fail2ban.actions: INFO   Set banTime = 600
    2014-04-26 19:05:15,274 fail2ban.jail   : INFO   Jail 'ssh' started
    2014-04-26 19:07:29,179 fail2ban.server : INFO   Stopping all jails
    2014-04-26 19:07:29,648 fail2ban.jail   : INFO   Jail 'ssh' stopped
    2014-04-26 19:07:29,649 fail2ban.server : INFO   Exiting Fail2ban
    2014-04-29 17:01:52,220 fail2ban.server : INFO   Changed logging target to /var/log/fail2ban.log for Fail2ban v0.8.11
    2014-04-29 17:01:52,237 fail2ban.jail   : INFO   Creating new jail 'ssh'
    2014-04-29 17:01:52,293 fail2ban.jail   : INFO   Jail 'ssh' uses pyinotify
    2014-04-29 17:01:52,342 fail2ban.jail   : INFO   Initiated 'pyinotify' backend
    2014-04-29 17:01:52,365 fail2ban.filter : INFO   Added logfile = /var/log/auth.log
    2014-04-29 17:01:52,365 fail2ban.filter : INFO   Set maxRetry = 6
    2014-04-29 17:01:52,366 fail2ban.filter : INFO   Set findtime = 600
    2014-04-29 17:01:52,366 fail2ban.actions: INFO   Set banTime = 600
    2014-04-29 17:01:52,405 fail2ban.jail   : INFO   Creating new jail 'sasl'
    2014-04-29 17:01:52,405 fail2ban.jail   : INFO   Jail 'sasl' uses pyinotify
    2014-04-29 17:01:52,411 fail2ban.jail   : INFO   Initiated 'pyinotify' backend
    2014-04-29 17:01:52,417 fail2ban.filter : INFO   Added logfile = /var/log/mail.log
    2014-04-29 17:01:52,418 fail2ban.filter : INFO   Set maxRetry = 3
    2014-04-29 17:01:52,419 fail2ban.filter : INFO   Set findtime = 600
    2014-04-29 17:01:52,419 fail2ban.actions: INFO   Set banTime = 600
    2014-04-29 17:01:52,425 fail2ban.jail   : INFO   Creating new jail 'pureftpd'
    2014-04-29 17:01:52,426 fail2ban.jail   : INFO   Jail 'pureftpd' uses pyinotify
    2014-04-29 17:01:52,432 fail2ban.jail   : INFO   Initiated 'pyinotify' backend
    2014-04-29 17:01:52,433 fail2ban.filter : INFO   Added logfile = /var/log/syslog
    2014-04-29 17:01:52,434 fail2ban.filter : INFO   Set maxRetry = 3
    2014-04-29 17:01:52,435 fail2ban.filter : INFO   Set findtime = 600
    2014-04-29 17:01:52,435 fail2ban.actions: INFO   Set banTime = 600
    2014-04-29 17:01:52,439 fail2ban.jail   : INFO   Creating new jail 'dovecot-pop3imap'
    2014-04-29 17:01:52,439 fail2ban.jail   : INFO   Jail 'dovecot-pop3imap' uses pyinotify
    2014-04-29 17:01:52,443 fail2ban.jail   : INFO   Initiated 'pyinotify' backend
    2014-04-29 17:01:52,444 fail2ban.filter : INFO   Added logfile = /var/log/mail.log
    2014-04-29 17:01:52,445 fail2ban.filter : INFO   Set maxRetry = 5
    2014-04-29 17:01:52,446 fail2ban.filter : INFO   Set findtime = 600
    2014-04-29 17:01:52,446 fail2ban.actions: INFO   Set banTime = 600
    2014-04-29 17:01:52,451 fail2ban.jail   : INFO   Jail 'ssh' started
    2014-04-29 17:01:52,453 fail2ban.jail   : INFO   Jail 'sasl' started
    2014-04-29 17:01:52,454 fail2ban.jail   : INFO   Jail 'pureftpd' started
    2014-04-29 17:01:52,455 fail2ban.jail   : INFO   Jail 'dovecot-pop3imap' started
    2014-04-29 17:02:04,372 fail2ban.filter : WARNING Unable to find a corresponding IP address for ::1: [Errno -9] Address family for hostname not supported
    2014-04-29 17:02:04,376 fail2ban.filter : WARNING Unable to find a corresponding IP address for ::1: [Errno -9] Address family for hostname not supported
    2014-04-29 17:06:06,050 fail2ban.filter : WARNING Unable to find a corresponding IP address for ::1: [Errno -9] Address family for hostname not supported
    2014-04-29 17:06:46,402 fail2ban.filter : WARNING Unable to find a corresponding IP address for ::1: [Errno -9] Address family for hostname not supported
    root@adminpc:/var/www/html/config# 
    

    Thank You

    Heeter
     
  13. srijan

    srijan New Member HowtoForge Supporter

    Please tail the fail2ban.log output after firing
    Br//
    Srijan
     
  14. Heeter

    Heeter Member

    Code:
    2014-04-30 19:19:55,609 fail2ban.server : INFO   Stopping all jails
    2014-04-30 19:19:56,339 fail2ban.jail   : INFO   Jail 'pureftpd' stopped
    2014-04-30 19:19:57,340 fail2ban.jail   : INFO   Jail 'sasl' stopped
    2014-04-30 19:19:58,331 fail2ban.jail   : INFO   Jail 'dovecot-pop3imap' stopped
    2014-04-30 19:19:58,339 fail2ban.jail   : INFO   Jail 'ssh' stopped
    2014-04-30 19:19:58,340 fail2ban.server : INFO   Exiting Fail2ban
    2014-04-30 19:19:58,816 fail2ban.server : INFO   Changed logging target to /var/log/fail2ban.log for Fail2ban v0.8.11
    2014-04-30 19:19:58,817 fail2ban.jail   : INFO   Creating new jail 'ssh'
    2014-04-30 19:19:58,839 fail2ban.jail   : INFO   Jail 'ssh' uses pyinotify
    2014-04-30 19:19:58,861 fail2ban.jail   : INFO   Initiated 'pyinotify' backend
    2014-04-30 19:19:58,862 fail2ban.filter : INFO   Added logfile = /var/log/auth.log
    2014-04-30 19:19:58,863 fail2ban.filter : INFO   Set maxRetry = 6
    2014-04-30 19:19:58,864 fail2ban.filter : INFO   Set findtime = 600
    2014-04-30 19:19:58,864 fail2ban.actions: INFO   Set banTime = 600
    2014-04-30 19:19:58,900 fail2ban.jail   : INFO   Creating new jail 'sasl'
    2014-04-30 19:19:58,900 fail2ban.jail   : INFO   Jail 'sasl' uses pyinotify
    2014-04-30 19:19:58,906 fail2ban.jail   : INFO   Initiated 'pyinotify' backend
    2014-04-30 19:19:58,907 fail2ban.filter : INFO   Added logfile = /var/log/mail.log
    2014-04-30 19:19:58,908 fail2ban.filter : INFO   Set maxRetry = 3
    2014-04-30 19:19:58,909 fail2ban.filter : INFO   Set findtime = 600
    2014-04-30 19:19:58,909 fail2ban.actions: INFO   Set banTime = 600
    2014-04-30 19:19:58,915 fail2ban.jail   : INFO   Creating new jail 'pureftpd'
    2014-04-30 19:19:58,915 fail2ban.jail   : INFO   Jail 'pureftpd' uses pyinotify
    2014-04-30 19:19:58,919 fail2ban.jail   : INFO   Initiated 'pyinotify' backend
    2014-04-30 19:19:58,920 fail2ban.filter : INFO   Added logfile = /var/log/syslog
    2014-04-30 19:19:58,921 fail2ban.filter : INFO   Set maxRetry = 3
    2014-04-30 19:19:58,922 fail2ban.filter : INFO   Set findtime = 600
    2014-04-30 19:19:58,922 fail2ban.actions: INFO   Set banTime = 600
    2014-04-30 19:19:58,926 fail2ban.jail   : INFO   Creating new jail 'dovecot-pop3imap'
    2014-04-30 19:19:58,926 fail2ban.jail   : INFO   Jail 'dovecot-pop3imap' uses pyinotify
    2014-04-30 19:19:58,933 fail2ban.jail   : INFO   Initiated 'pyinotify' backend
    2014-04-30 19:19:58,934 fail2ban.filter : INFO   Added logfile = /var/log/mail.log
    2014-04-30 19:19:58,935 fail2ban.filter : INFO   Set maxRetry = 5
    2014-04-30 19:19:58,936 fail2ban.filter : INFO   Set findtime = 600
    2014-04-30 19:19:58,936 fail2ban.actions: INFO   Set banTime = 600
    2014-04-30 19:19:58,941 fail2ban.jail   : INFO   Jail 'ssh' started
    2014-04-30 19:19:58,944 fail2ban.jail   : INFO   Jail 'sasl' started
    2014-04-30 19:19:58,946 fail2ban.jail   : INFO   Jail 'pureftpd' started
    2014-04-30 19:19:58,948 fail2ban.jail   : INFO   Jail 'dovecot-pop3imap' started
    
    Heeter
     
  15. srijan

    srijan New Member HowtoForge Supporter

    What is the status of fail2ban?
    Please check that whether there was any process of fail2ban running. Kill all instances of fail2ban & then try to STOP/START the fail2ban.

    Br//
    Srijan
     
  16. Heeter

    Heeter Member

    Sorry I misunderstood your last post,

    Code:
    root@adminpc:/etc/apache2/sites-available# pkill fail2ban
    root@adminpc:/etc/apache2/sites-available# killall -v fail2ban
    fail2ban: no process found
    root@adminpc:/etc/apache2/sites-available# service fail2ban restart
     * Restarting authentication failure monitor fail2ban                    [ OK ] 
    root@adminpc:/etc/apache2/sites-available# 
    
    Thanks

    Heeter
     
  17. srijan

    srijan New Member HowtoForge Supporter

    Now fail2ban is ok & restarted as like normal.
    Proceed further steps of guide and check if you are getting the proper configurations of ISPconfig
    Br//
    Srijan
     
  18. Heeter

    Heeter Member

    Thanks for your help.

    I do not intend to install ISPconfig. I just used the perfect 14.04 server setup to have a full featured LAMP setup.

    The squirrelmail is now complaining that "ERROR: Connection dropped by IMAP server."

    Thanks again

    Heeter
     
  19. srijan

    srijan New Member HowtoForge Supporter

    How did u created the email account?
     
  20. Heeter

    Heeter Member

    I haven't yet for myself,

    I thought that it creates the root account during the install of LAMP.

    Sorry, pretty weak with dovecot servers.


    Heeter
     

Share This Page