On Saturday 14 Jan 2006 23:29, Timo Sirainen wrote:
On Sat, 2006-01-14 at 22:21 +0000, Anne Wilson wrote:
Now dovecot starts and I can telnet localhost 143, but I'm still getting NO authentication.
Set auth_verbose=yes and auth_debug=yes, and paste what the log file says when logging in?
Should I post my config file now?
Wouldn't hurt either :)
OK - all the info I can gather:
telnet localhost 143 Trying 127.0.0.1... Connected to localhost.localdomain. Escape character is '^]'.
- OK Dovecot ready. x login anne ******** x NO Authentication failed. x logout
- BYE Logging out x OK Logout completed. Connection closed by foreign host.
log_path = /var/log/mail no entry for 15th
/var/log/mail.log No entry for appropriate time.
info_log_path = /var/log/mail.info
(from root console)
dovecot: Jan 15 11:47:02 Info: Dovecot v1.0.alpha5 starting up
dovecot: Jan 15 11:47:21 Info: auth(default): client in: AUTH 1
PLAIN
service=IMAP secured lip=127.0.0.1 rip=127.0.0.1
resp=AGFubmUAc2ltcGxlc3Q=
dovecot: Jan 15 11:47:21 Info: auth(default):
passwd-file(anne,127.0.0.1):
unknown user
dovecot: Jan 15 11:47:22 Info: auth(default): client out: FAIL 1
user=anne
dovecot: Jan 15 11:47:26 Info: imap-login: Aborted login: user=<anne>,
method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
(from user console)
dovecot: Jan 15 11:50:11 Info: auth(default): client in: AUTH 1
PLAIN
service=IMAP secured lip=127.0.0.1 rip=127.0.0.1
resp=AGFubmUAc2ltcGxlc3Q=
dovecot: Jan 15 11:50:11 Info: auth(default):
passwd-file(anne,127.0.0.1):
unknown user
dovecot: Jan 15 11:50:12 Info: auth(default): client out: FAIL 1
user=anne
dovecot: Jan 15 11:50:18 Info: imap-login: Aborted login: user=<anne>,
method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Dovecot 1.0 configuration file
'#' character and everything after it is treated as comments. Extra
spaces
and tabs are ignored. If you want to use either of these explicitly,
put the
value inside quotes, eg.: key = "# char and trailing whitespace "
base_dir = /var/run/dovecot/
protocols = imap
listen = *
Disable SSL/TLS support.
ssl_disable = yes
Use this logfile instead of syslog(). /dev/stderr can be used if you
want to
use stderr for logging (ONLY /dev/stderr - otherwise it is closed).
log_path = /var/log/mail
For informational messages, use this logfile instead of the default
info_log_path = /var/log/mail.info
Prefix for each line written to log file. % codes are in strftime(3)
format.
log_timestamp = "%b %d %H:%M:%S "
Syslog facility to use if you're logging to syslog. Usually if you
don't
want to use "mail", you'll use local0..local7. Also other standard
facilities are supported.
#syslog_facility = mail
Login processes
all set to default
#login_greeting = Dovecot ready.
Mail processes
mail_debug = yes
default_mail_env = maildir:~/Mail
Allow full filesystem access to clients. There's no access checks
other than
what the operating system does for the active UID/GID. It works with
both
maildir and mboxes, allowing you to prefix mailboxes names with
eg. /path/
or ~user/.
#mail_full_filesystem_access = no
IMAP specific settings
protocol imap {
Login executable location.
login_executable = /usr/local/libexec/dovecot/imap-login
IMAP executable location
mail_executable = /usr/local/libexec/dovecot/imap login_greeting_capability = no }
Authentication processes
Executable location
auth_executable = /usr/local/libexec/dovecot/dovecot-auth
Even more verbose logging for debugging purposes. Shows for example
SQL
queries.
auth_verbose = yes auth_debug = yes
auth default {
Space separated list of wanted authentication mechanisms:
plain digest-md5 cram-md5 apop anonymous gssapi
mechanisms = plain login
passwd-like file with specified location
passdb passwd-file { args = /etc/imap.passwd } userdb passwd-file { args = /etc/imap.passwd } }
User to use for the process. This user needs access to only user and
password databases, nothing else. Only shadow and pam authentication
requires roots, so use something else if possible. Note that passwd
authentication with BSDs internally accesses shadow files, which
also
requires roots. Note that this user is NOT used to access mails.
That user is specified by userdb above.
#user = root
/etc/imap.passwd anne:{plain}******:1000:1000::/home/anne
Anne