![]() |
Incoming emails rejected or POP3 logon rejected
I had ISPConfig 3.0.4 installed and everything working except that all incoming email was rejected with:
Code:
Status: 5.1.1I then discovered that there had been a problem with the "user_query = " command in /etc/dovecot/dovecot-sql.conf, so I changed it in accordance with http://bugtracker.ispconfig.org/inde...ned=599&status[0]= And incoming mails worked! But now email client logging in (which was working) doesn't :( It appears that the same SQL statement is used to retrieve the email address during delivery and the account login username at POP3/IMAP login time. If I change the WHERE clause from: Code:
WHERE login = '%u' AND disable%Ls = 'n'Code:
WHERE email = '%u' AND disable%Ls = 'n'I should add that ISPConfig is set to allow custom login names. I *think* a solution is to user the password query to get both username and password (by prepending "userdb_" to the appropriate fields, as per Dovecot docs) and then the user query is only used for delivery. Or, I can change the dovecot config file to use two separate sql config files. Comments, please? |
I solved the problem like this:
In dovecot.conf, change Code:
passdb {Code:
passdb {Code:
password_query = SELECT password, /As before, I'd appreciate comments. Although this now works, I still have the niggling feeling it should have been fixed some other way :} |
| All times are GMT +2. The time now is 14:58. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.