Hi, Im attempting to configure dovecot for the first time, Im trying to use a MySQL DB that is currently used by tpop3d as Ive read they support the same password format. My main prob currently, apart from that it doesnt work lol, is that Ive enabled the following debugging in dovecot.conf auth_debug = yes auth_debug_passwords = yes auth_verbose = yes But Im getting basically zero info on why my authentication is failing. In my log (which for testing Ive defined as a file in /tmp to make sure Im getting all the info logged to one place) I see just: Mar 31 19:00:17 dovecot: Info: Dovecot v1.2.10 starting up Mar 31 19:00:17 auth-worker(default): Info: mysql: Connected to localhost (ukgri d_vmail) Mar 31 19:00:18 auth(default): Info: new auth connection: pid=64188 Mar 31 19:00:18 auth(default): Info: new auth connection: pid=64186 Mar 31 19:00:18 auth(default): Info: new auth connection: pid=64187 each time I attempt to connect via IMAP it adds another new auth connection line to the log but doesnt tell me anything else :(. So Im stuck debugging my authentication due to lack of info. BTW Im testing IMAP via telnet, telnet to IMAP port and attempt LOGIN (I have this working to a courier IMAP installation). Have I done something wrong? Any help appreciated! thanks Andy.
On Mar 31, 2010, at 11:18 AM, Andy Smith wrote:> Hi, > > Im attempting to configure dovecot for the first time, Im trying to > use a MySQL DB that is currently used by tpop3d as Ive read they > support the same password format. > My main prob currently, apart from that it doesnt work lol, is that > Ive enabled the following debugging in dovecot.conf > > auth_debug = yes > auth_debug_passwords = yes > auth_verbose = yes > > But Im getting basically zero info on why my authentication is > failing. In my log (which for testing Ive defined as a file in /tmp > to make sure Im getting all the info logged to one place) I see just: > > Mar 31 19:00:17 dovecot: Info: Dovecot v1.2.10 starting up > Mar 31 19:00:17 auth-worker(default): Info: mysql: Connected to > localhost (ukgri d_vmail) > Mar 31 19:00:18 auth(default): Info: new auth connection: pid=64188 > Mar 31 19:00:18 auth(default): Info: new auth connection: pid=64186 > Mar 31 19:00:18 auth(default): Info: new auth connection: pid=64187 > > each time I attempt to connect via IMAP it adds another new auth > connection line to the log but doesnt tell me anything else :(. So > Im stuck debugging my authentication due to lack of info. BTW Im > testing IMAP via telnet, telnet to IMAP port and attempt LOGIN (I > have this working to a courier IMAP installation). Have I done > something wrong? Any help appreciated! > > thanks Andy.Pleas post the result of: # dovecot -n // Brad
Hi Brad,
thanks for the reply, here is the output:
dovecot -n
# 1.2.10: /usr/local/etc/dovecot.conf
# OS: FreeBSD 6.1-RELEASE i386 nfs
log_path: /tmp/dovecot.log
protocols: imap
ssl: no
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
verbose_proctitle: yes
first_valid_uid: 1000
first_valid_gid: 1000
mail_privileged_group: mail
mail_location: maildir:/var/spool/mail/%d/%u
mail_debug: yes
imap_client_workarounds: delay-newmail netscape-eoh tb-extra-mailbox-sep
lda:
sendmail_path: /usr/sbin/sendmail
auth default:
mechanisms: plain digest-md5 cram-md5
username_format: %Lu
verbose: yes
debug: yes
debug_passwords: yes
passdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
userdb:
driver: passwd
args: blocking=yes
userdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
socket:
type: listen
client:
path: /var/run/dovecot/auth-client
mode: 432
master:
path: /var/run/dovecot/auth-master
mode: 384
Ola Daniel, thanks for the idea, but actually within the config file the settings are not within the auth default section, its just shown that way from the output of dovecot -n cheers Andy. Quoting Daniel Gomes <daniel.gomes at ist.utl.pt>:> Hey Andy, > > I might be way over my head here, but unlike you, in my setup I set > "auth_debug", "auth_verbose" and "auth_debug_password" to "yes" > outside the "auth default" section. Try that and see if you get the > verbose logging you're looking for! > > Cheers, > > On 31-03-2010 19:46, Andy Smith wrote: >> Hi Brad, >> >> thanks for the reply, here is the output: >> >> dovecot -n >> # 1.2.10: /usr/local/etc/dovecot.conf >> # OS: FreeBSD 6.1-RELEASE i386 nfs >> log_path: /tmp/dovecot.log >> protocols: imap >> ssl: no >> disable_plaintext_auth: no >> login_dir: /var/run/dovecot/login >> login_executable: /usr/local/libexec/dovecot/imap-login >> verbose_proctitle: yes >> first_valid_uid: 1000 >> first_valid_gid: 1000 >> mail_privileged_group: mail >> mail_location: maildir:/var/spool/mail/%d/%u >> mail_debug: yes >> imap_client_workarounds: delay-newmail netscape-eoh tb-extra-mailbox-sep >> lda: >> sendmail_path: /usr/sbin/sendmail >> auth default: >> mechanisms: plain digest-md5 cram-md5 >> username_format: %Lu >> verbose: yes >> debug: yes >> debug_passwords: yes >> passdb: >> driver: sql >> args: /usr/local/etc/dovecot-sql.conf >> userdb: >> driver: passwd >> args: blocking=yes >> userdb: >> driver: sql >> args: /usr/local/etc/dovecot-sql.conf >> socket: >> type: listen >> client: >> path: /var/run/dovecot/auth-client >> mode: 432 >> master: >> path: /var/run/dovecot/auth-master >> mode: 384 >> > > -- > Daniel Gomes, 55350 >
Update on this problem, seems the only issue I had was that the telnet method of verifying IMAP authentication that works on Courier just doesnt work with Dovecot. I tried connected to Dovecot with an IMAP client (IMP webmail) and I get a load of info logged about authenitaction. Duno why I cant test via telnet but anyway, now I have fixed my config probs and have a working Dovecot server, thanks Andy.
On Thu, Apr 01, 2010 at 10:21:35AM +0100, Andy Smith wrote:> Update on this problem, > seems the only issue I had was that the telnet method of verifying > IMAP authentication that works on Courier just doesnt work with > Dovecot.What did you use? What did you see in response? Correct syntax is simply a login username password