1

Topic: login roundcube failed

==== Required information ====
- iRedMail version: 090
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): apache
- Linux/BSD distribution name and version:  centos 7
- Related log if you're reporting an issue: imap-login: Info: Disconnected (auth failed, 1 attempts in 2 secs):
====

I have installed iRedmail on my centos server and can not login into roundcubemail
also can not connect with outlook to server.

I checked mysql database and user is in the database.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: login roundcube failed

Auth failed means incorrect username or password. did you use the correct username/password?
Also, please disable fail2ban service during testing, otherwise several password failures will trigger Fail2ban to invoke iptables to block your IP address.

3

Re: login roundcube failed

thak you for answer.
yes of course I use rgiht username and password I have even change it and try again but no luck.
I didn't use fail2ban during instalation I will setup it by myself after mail starts to work.
I am not beginner in linux systems but here I am stuck.

4

Re: login roundcube failed

Please turn on debug mode in Dovecot, restart dovecot service, then try again. Check related detailed log in Dovecot log file.

Reference: Turn on debug mode in Dovecot.
http://www.iredmail.org/docs/debug.dovecot.html

5 (edited by Blisk 2015-05-09 01:54:58)

Re: login roundcube failed

Ok I have turned debuging on.
Dovecot log doesn't show anything but mail log give me this.

here is log
http://zerobin.povej.net/?96f20590df5af … Nu0isfAPE=

6

Re: login roundcube failed

Blisk wrote:

SELECT password FROM mailbox WHERE username='damja' AND enableimapsecured=1 AND active='1'

Please use FULL email address as login username. not just the local part (before '@').

7

Re: login roundcube failed

OK I did it but it is the same
here is log
http://zerobin.povej.net/?a0521f26b0b62 … 4Hat94p/0=

8

Re: login roundcube failed

It says "Could not connect to 127.0.0.1:143: Connection refused". Looks like Dovecot service is not running.
Also, please show us dovecot log.

9 (edited by Blisk 2015-05-11 14:41:48)

Re: login roundcube failed

Yes you are right, dovecot didn't run it has some errors.
Now dovecot works but when I send mail I always get this.

This is the mail system at host mail.akciji.si.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

mike@akciji.si  The mail system

10 (edited by Blisk 2015-05-11 15:59:10)

Re: login roundcube failed

Ok I solved that to with commenting out
#relayhost = $mydomain

Now I have problem with connecting with Outlook I get this

NOQUEUE: reject: RCPT from unknown[123.123.123.123]: 504 5.5.2 <Damjan>: Helo command rejected: need fully-qualified hostname; from=<info@akciji.si> to=<info@akciji.si> proto=ESMTP helo=<Damjan>

OK I solved this one too, problem with hostname.
postconf -e 'myhostname = mail.myserver.com'

11

Re: login roundcube failed

I have just one more problem
I can not get any logs in folder
/var/www/roundcubemail-1.0.4/logs
need that for setup fail2ban

what I am missing?

12

Re: login roundcube failed

Roundcube is most likely configured to log to syslog, errors should be visible in your general mail.log

13

Re: login roundcube failed

7t3chguy wrote:

Roundcube is most likely configured to log to syslog, errors should be visible in your general mail.log

I have setup fail2ban with /var/log/maillog but when I put 5x wrong password in roundcubemail it doesn't ban my ip.

14

Re: login roundcube failed

Check 'ignoreip =' in /etc/fail2ban/jail.local. Some IP addresses/network are ignored, including 127.0.0.1.

15

Re: login roundcube failed

yes localhost is ignored but I tried with some remote pc to do that but still system didn't ban me after more than 5 wrong logins