1

Topic: iRedMail username or password incorrect

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version: debian 9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mariadb
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi support

I have installated the ultimate version of the iredmail on the debian 9.
the installation has been successful; I created a user and repeatedly checked the password. On all clients, I get the wrong username or password. How can I solve this big problem?

----

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

2

Re: iRedMail username or password incorrect

Please enable debug mode in Dovecot to see whether the password is correct and get detailed log:
http://www.iredmail.org/docs/debug.dovecot.html

3

Re: iRedMail username or password incorrect

ZhangHuangbin wrote:

Please enable debug mode in Dovecot to see whether the password is correct and get detailed log:
http://www.iredmail.org/docs/debug.dovecot.html

This is log of dovecot

Sep 15 11:50:46 mail dovecot: auth: Debug: auth client connected (pid=1368)
Sep 15 11:50:46 mail dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011secured#011session=vLtRKjhZGrN/AAAB#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=45850#011resp=AG1hcmNvLnBpcm9sYUBwYXNzaW9uZWluZm9ybWF0aWNhLmV1ADAycmFtZXNzZTAy (previous base64 data may contain sensitive data)
Sep 15 11:50:46 mail dovecot: auth-worker(1369): Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
Sep 15 11:50:46 mail dovecot: auth-worker(1369): Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
Sep 15 11:50:46 mail dovecot: auth-worker(1369): Debug: passwd-file /etc/dovecot/dovecot-master-users: Read 1 users in 0 secs
Sep 15 11:50:46 mail dovecot: auth-worker(1369): Debug: sql(marco.pirola@passioneinformatica.eu,127.0.0.1,<vLtRKjhZGrN/AAAB>): query: SELECT password, allow_nets FROM mailbox WHERE username='marco.pirola@passioneinformatica.eu' AND enableimapsecured=1 AND active=1
Sep 15 11:50:46 mail dovecot: auth: Debug: client passdb out: OK#0111#011user=marco.pirola@passioneinformatica.eu
Sep 15 11:50:46 mail dovecot: auth: Debug: master in: REQUEST#0112664431617#0111368#0111#0111bc2ad6d8ae0cf7fb19f416afe3bb44f#011session_pid=1370#011request_auth_token
Sep 15 11:50:46 mail dovecot: auth-worker(1369): Debug: sql(marco.pirola@passioneinformatica.eu,127.0.0.1,<vLtRKjhZGrN/AAAB>): SELECT 'marco.pirola@passioneinformatica.eu' AS master_user, CONCAT(mailbox.storagebasedirectory, '/', mailbox.storagenode, '/', mailbox.maildir) AS home, CONCAT('*:bytes=', mailbox.quota*1048576) AS quota_rule FROM mailbox,domain WHERE mailbox.username='marco.pirola@passioneinformatica.eu' AND mailbox.domain='passioneinformatica.eu' AND mailbox.`enableimapsecured`=1 AND mailbox.domain=domain.domain AND domain.backupmx=0 AND domain.active=1 AND mailbox.active=1
Sep 15 11:50:46 mail dovecot: auth: Debug: master userdb out: USER#0112664431617#011marco.pirola@passioneinformatica.eu#011master_user=marco.pirola@passioneinformatica.eu#011home=/var/vmail/vmail1/passioneinformatica.eu/m/a/r/marco.pirola-2017.09.14.19.39.13/#011quota_rule=*:bytes=104857600#011auth_token=4318415f95fc87002111caef59a02281e47473be
Sep 15 11:50:46 mail dovecot: auth: Debug: auth client connected (pid=1373)
Sep 15 11:50:46 mail dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011secured#011session=kUNXKjhZIrN/AAAB#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=45858#011resp=AG1hcmNvLnBpcm9sYUBwYXNzaW9uZWluZm9ybWF0aWNhLmV1ADAycmFtZXNzZTAy (previous base64 data may contain sensitive data)
Sep 15 11:50:46 mail dovecot: auth-worker(1369): Debug: sql(marco.pirola@passioneinformatica.eu,127.0.0.1,<kUNXKjhZIrN/AAAB>): query: SELECT password, allow_nets FROM mailbox WHERE username='marco.pirola@passioneinformatica.eu' AND enableimapsecured=1 AND active=1
Sep 15 11:50:46 mail dovecot: auth: Debug: client passdb out: OK#0111#011user=marco.pirola@passioneinformatica.eu
Sep 15 11:50:46 mail dovecot: auth: Debug: master in: REQUEST#0113575775233#0111373#0111#01136752d11f34929d354327ea1fa983259#011session_pid=1374#011request_auth_token
Sep 15 11:50:46 mail dovecot: auth-worker(1369): Debug: sql(marco.pirola@passioneinformatica.eu,127.0.0.1,<kUNXKjhZIrN/AAAB>): SELECT 'marco.pirola@passioneinformatica.eu' AS master_user, CONCAT(mailbox.storagebasedirectory, '/', mailbox.storagenode, '/', mailbox.maildir) AS home, CONCAT('*:bytes=', mailbox.quota*1048576) AS quota_rule FROM mailbox,domain WHERE mailbox.username='marco.pirola@passioneinformatica.eu' AND mailbox.domain='passioneinformatica.eu' AND mailbox.`enableimapsecured`=1 AND mailbox.domain=domain.domain AND domain.backupmx=0 AND domain.active=1 AND mailbox.active=1
Sep 15 11:50:46 mail dovecot: auth: Debug: master userdb out: USER#0113575775233#011marco.pirola@passioneinformatica.eu#011master_user=marco.pirola@passioneinformatica.eu#011home=/var/vmail/vmail1/passioneinformatica.eu/m/a/r/marco.pirola-2017.09.14.19.39.13/#011quota_rule=*:bytes=104857600#011auth_token=0c34ddf075c45900e39aa2948f6aa12498761b13
Sep 15 11:50:47 mail dovecot: auth: Debug: auth client connected (pid=1378)
Sep 15 11:50:47 mail dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011secured#011session=amVhKjhZKLN/AAAB#011lip=127.0.0.1#011rip=127.0.0.1#011lport=143#011rport=45864#011resp=AG1hcmNvLnBpcm9sYUBwYXNzaW9uZWluZm9ybWF0aWNhLmV1ADAycmFtZXNzZTAy (previous base64 data may contain sensitive data)
Sep 15 11:50:47 mail dovecot: auth-worker(1369): Debug: sql(marco.pirola@passioneinformatica.eu,127.0.0.1,<amVhKjhZKLN/AAAB>): query: SELECT password, allow_nets FROM mailbox WHERE username='marco.pirola@passioneinformatica.eu' AND enableimapsecured=1 AND active=1
Sep 15 11:50:47 mail dovecot: auth: Debug: client passdb out: OK#0111#011user=marco.pirola@passioneinformatica.eu
Sep 15 11:50:47 mail dovecot: auth: Debug: master in: REQUEST#0111296564225#0111378#0111#011c30c60f534ea894b1fcfc2487ac961cf#011session_pid=1379#011request_auth_token
Sep 15 11:50:47 mail dovecot: auth-worker(1369): Debug: sql(marco.pirola@passioneinformatica.eu,127.0.0.1,<amVhKjhZKLN/AAAB>): SELECT 'marco.pirola@passioneinformatica.eu' AS master_user, CONCAT(mailbox.storagebasedirectory, '/', mailbox.storagenode, '/', mailbox.maildir) AS home, CONCAT('*:bytes=', mailbox.quota*1048576) AS quota_rule FROM mailbox,domain WHERE mailbox.username='marco.pirola@passioneinformatica.eu' AND mailbox.domain='passioneinformatica.eu' AND mailbox.`enableimapsecured`=1 AND mailbox.domain=domain.domain AND domain.backupmx=0 AND domain.active=1 AND mailbox.active=1
Sep 15 11:50:47 mail dovecot: auth: Debug: master userdb out: USER#0111296564225#011marco.pirola@passioneinformatica.eu#011master_user=marco.pirola@passioneinformatica.eu#011home=/var/vmail/vmail1/passioneinformatica.eu/m/a/r/marco.pirola-2017.09.14.19.39.13/#011quota_rule=*:bytes=104857600#011auth_token=1b63f64d6836896939a8a15b84c18ea4d00575bb

I can log in with sogo but if I use Thunderbird I continue to receive incorrect username or password. as username for example marco.pirola@passioneinformatica.eu

4

Re: iRedMail username or password incorrect

In the pop3.log  I get this log:
Sep 15 17:30:58 mail dovecot: pop3-login: Aborted login (no auth attempts in 1 secs): user=<>, rip=151.66.189.175, lip=217.112.92.43, session=<iWnw6jxZMtaXQr2v>
Sep 15 17:30:58 mail dovecot: pop3-login: Aborted login (no auth attempts in 1 secs): user=<>, rip=151.66.189.175, lip=217.112.92.43, session=<VXXw6jxZM9aXQr2v>
Sep 15 17:30:58 mail dovecot: pop3-login: Aborted login (no auth attempts in 1 secs): user=<>, rip=151.66.189.175, lip=217.112.92.43, session=<fHjw6jxZOdaXQr2v>
Sep 15 17:30:58 mail dovecot: pop3-login: Aborted login (no auth attempts in 1 secs): user=<>, rip=151.66.189.175, lip=217.112.92.43, session=<xHvw6jxZN9aXQr2v>

5

Re: iRedMail username or password incorrect

mapirola81 wrote:

no auth attempts

Do you have authentication enabled in Thunderbird for POP3/IMAP/SMTP? It's required.

6

Re: iRedMail username or password incorrect

ZhangHuangbin wrote:
mapirola81 wrote:

no auth attempts

Do you have authentication enabled in Thunderbird POP3/IMAP/SMTP? It's required.

yes

7

Re: iRedMail username or password incorrect

Do not miss out on a professional loan.

8

Re: iRedMail username or password incorrect

Could you please show us your POP3/IMAP/SMTP settings in Thunderbird?

9

Re: iRedMail username or password incorrect

email address: marco.pirola@mydomain.eu
password: my password
imap: mail.passioneinformatica.eu port:143 ssl: starttls autemtification: normal password
smtp: mail.passioneinformatica.eu port:587 ssl: startrls autentification: normal password
username in entry and exit: marco.pirola@mydomain.eu

10

Re: iRedMail username or password incorrect

Excuse me: Input username settings and outbound username I entered them manually. The email program fails to detect them automatically

11

Re: iRedMail username or password incorrect

mapirola81 wrote:

email address: marco.pirola@mydomain.eu
password: my password
imap: mail.passioneinformatica.eu port:143 ssl: starttls autemtification: normal password
smtp: mail.passioneinformatica.eu port:587 ssl: startrls autentification: normal password
username in entry and exit: marco.pirola@mydomain.eu

IMAP port 143 with STARTTLS, SMTP port 587 with STARTTLS. These are correct.

How did you create this mail user?

12

Re: iRedMail username or password incorrect

Yes, i create this user

13

Re: iRedMail username or password incorrect

mapirola81 wrote:

Yes, i create this user

I understand YOU created the user, my question is "HOW" you created it.
Which script or web application did you use to create it?

14

Re: iRedMail username or password incorrect

ZhangHuangbin wrote:
mapirola81 wrote:

Yes, i create this user

I understand YOU created the user, my question is "HOW" you created it.
Which script or web application did you use to create it?

Switch web application

15

Re: iRedMail username or password incorrect

Switch web application

16

Re: iRedMail username or password incorrect

With web application

17

Re: iRedMail username or password incorrect

*) According to Dovecot debug log, it successfully got the user info and password. so the account was successfully created.
*) Does Thunderbird work if you stop iptables firewall on iRedMail server? Do you have any firewall devices site between your laptop/Thunderbird and iRedMail server?

18

Re: iRedMail username or password incorrect

on the mail server the iptables rules are the standard ones created by the iredmail script during the installation. There is no firewall on the client

19

Re: iRedMail username or password incorrect

Could you please try Thunderbird again?

20

Re: iRedMail username or password incorrect

I get the wrong username or password error. Is there any modification to make dovecot?

21

Re: iRedMail username or password incorrect

What's the error message in Thunderbird and Dovecot log file now?

*) if same username/password works with SOGo, that means password is correct.
*) There's no firewall devices between your server and Thunderbird, and Dovecot had related log of thunderbird connection attempts, so network is ok.

In this case, Thunderbird is expected to work.

22

Re: iRedMail username or password incorrect

This problem does with all the e-mail programs. How can I overcome this problem?

23

Re: iRedMail username or password incorrect

No webmail or MUA can login with the username (full email address) and password?

24

Re: iRedMail username or password incorrect

With web mail accessed name.surname @passioneinformatica.eu. With all e-mail accounts I get my username and password. Name without @passioneinformatica.eu

25

Re: iRedMail username or password incorrect

This is my setting of the my domain name:"NOME","TTL","type","values"
"authsmtp.passioneinformatica.eu.",900,"CNAME","authsmtp.register.it."
"ftp.passioneinformatica.eu.",900,"CNAME","passioneinformatica.eu."
"pec.passioneinformatica.eu.",900,"MX","10 server.pec-email.com."
"passioneinformatica.eu.",900,"TXT",""v=spf1 include:spf.webapps.net ~all""
"www.passioneinformatica.eu.",900,"A","217.112.92.43"
"mail.passioneinformatica.eu.",900,"A","217.112.92.43"
"passioneinformatica.eu.",900,"MX","10 mail.passioneinformatica.eu."
"pop3.passioneinformatica.eu.",900,"A","217.112.92.43"
"imap.passioneinformatica.eu.",900,"A","217.112.92.43"
"passioneinformatica.eu.",900,"A","217.112.92.43"
this setting it's ok?