I am in the process of setting up a mail server and I was hoping to get some help. It starts with Roundcube webmail, when I tried to login with an existing correct user name and password it gives me 'Login failed' so I checked the error log at /var/log/mail.log
and I found out that there is an error that says
dovecot: auth-worker(10370): Error: sql(xxx@xxxxxxxx.com,127.0.0.1): Password query
failed: You have an error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to
use near ''maildir:/var/vmail/...' as userdb_mail, 150 as userd' at line 1
and when I check the password query at /etc/dovecot/dovecot-sql.conf.ext
password_query = \
SELECT username as user, password, '/var/vmail/%d/%n' as userdb_home, \
'maildir:/var/vmail/%d/%n' as userdb_mail, 150 as userdb_uid, 8 as userdb_gid \
FROM mailbox WHERE username = '%u' AND active = '1'
which seems to be right?
Does anybody have an idea?