Hey,I have recently set up Dovecot on my server but I have trouble with using it. I'm using Dovecot 1.0.rc15, SQL password and user database with the SQL config files provided on the home page. I'm using Thunderbird to connect to Dovecot. When trying to connect it gives me an internal server error: User not found Is there anything else I need to do before I can use Dovecot? Here's my configuration, any help would be appreciated. # /etc/dovecot.conf log_path: /var/log/dovecot.log info_log_path: /var/log/dovecot.info.log protocols: imap pop3 imaps pop3s listen(default): *:143 listen(imap): *:143 listen(pop3): *:110 ssl_cert_file: /var/www/ssl/just-click.pem ssl_key_file: /var/www/ssl/just-click.pem login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login max_mail_processes: 100 first_valid_uid: 1000 last_valid_uid: 1500 mail_extra_groups: mail mail_location: mbox:~/mail/:INBOX=/var/mail/%u mail_debug: yes mbox_read_locks: dotlock fcntl mbox_write_locks: dotlock fcntl mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 auth default: verbose: yes debug: yes debug_passwords: yes passdb: driver: sql args: /etc/dovecot-sql.conf userdb: driver: sql args: /etc/dovecot-sql.conf socket: type: listen client: path: /var/run/dovecot/auth-client mode: 432 master: path: /var/run/dovecot/auth-master mode: 432 user: dovecot group: mail _________________________________________________________________ Neem je vrienden overal mee dankzij Messenger op je gsm. http://messenger.live.com
Isaak, It sounds as though you are using the stock dovecot-sql.conf file without making site-specific changes. Make sure you're setting up the SQL information properly, especially the query. Check out http://wiki.dovecot.org/AuthDatabase/SQL for more information. On Dec 19, 2007 9:24 AM, Isaak <isaak89 at hotmail.com> wrote:> > Hey,I have recently set up Dovecot on my server but I have trouble with using it. > > I'm using Dovecot 1.0.rc15, SQL password and user database with the SQL config files provided on the home page. > > I'm using Thunderbird to connect to Dovecot. > > When trying to connect it gives me an internal server error: User not found > > Is there anything else I need to do before I can use Dovecot? > > Here's my configuration, any help would be appreciated. > > # /etc/dovecot.conf > log_path: /var/log/dovecot.log > info_log_path: /var/log/dovecot.info.log > protocols: imap pop3 imaps pop3s > listen(default): *:143 > listen(imap): *:143 > listen(pop3): *:110 > ssl_cert_file: /var/www/ssl/just-click.pem > ssl_key_file: /var/www/ssl/just-click.pem > login_dir: /var/run/dovecot/login > login_executable(default): /usr/libexec/dovecot/imap-login > login_executable(imap): /usr/libexec/dovecot/imap-login > login_executable(pop3): /usr/libexec/dovecot/pop3-login > max_mail_processes: 100 > first_valid_uid: 1000 > last_valid_uid: 1500 > mail_extra_groups: mail > mail_location: mbox:~/mail/:INBOX=/var/mail/%u > mail_debug: yes > mbox_read_locks: dotlock fcntl > mbox_write_locks: dotlock fcntl > mail_executable(default): /usr/libexec/dovecot/imap > mail_executable(imap): /usr/libexec/dovecot/imap > mail_executable(pop3): /usr/libexec/dovecot/pop3 > mail_plugin_dir(default): /usr/lib/dovecot/imap > mail_plugin_dir(imap): /usr/lib/dovecot/imap > mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 > auth default: > verbose: yes > debug: yes > debug_passwords: yes > passdb: > driver: sql > args: /etc/dovecot-sql.conf > userdb: > driver: sql > args: /etc/dovecot-sql.conf > socket: > type: listen > client: > path: /var/run/dovecot/auth-client > mode: 432 > master: > path: /var/run/dovecot/auth-master > mode: 432 > user: dovecot > group: mail > > _________________________________________________________________ > Neem je vrienden overal mee dankzij Messenger op je gsm. > http://messenger.live.com-- Eric Loyd
At 3:24 PM +0100 12/19/07, Isaak wrote:>Hey,I have recently set up Dovecot on my server but I have trouble >with using it. > >I'm using Dovecot 1.0.rc15, SQL password and user database with the >SQL config files provided on the home page.You should start by using a more modern version: at least the final 1.0 release, preferably 1.0.9.>I'm using Thunderbird to connect to Dovecot. > >When trying to connect it gives me an internal server error: User not found > >Is there anything else I need to do before I can use Dovecot?You need to validate the SQL config *for your system* and make sure that the username/password combination that you are using really exists in your database and is really is returned by the query defined in the conf file you tell Dovecot to use. See http://wiki.dovecot.org/AuthDatabase/SQL>Here's my configuration, any help would be appreciated. > ># /etc/dovecot.conf >log_path: /var/log/dovecot.log >info_log_path: /var/log/dovecot.info.log[...]>mail_debug: yes[...]>auth default: > verbose: yes > debug: yes > debug_passwords: yesThat combination ought to yield useful messages in the logs about the failure. If your database server logs queries as well, you may get useful info from those logs as well. -- Bill Cole bill at scconsult.com