Hi,
dear,
i am trying to setup dovecot to replace courier imap.
i am using vpopmail with cdb support, qmail-1.03 with the latest patch
from http://qmail.jms1.net & squirrelmail.
except for the logging details rest is working fine.
if i am trying to check user login details using vuserinfo, "last auth &
last auth ip" is not getting updated by dovecot.
Hm, I just checked and my last auth *is* getting updated but last auth
ip not. I actually made a test:
I did:
UPDATE lastauth SET remote_ip='foo' WHERE user='myuser' AND
domain='mydomain';
vuserinfo reported foo and a date. I logged in with thunderbird and it
got updated to the new timestamp
but foo was replaced with 'imap', like if it was a local webmail connection.
Well, anyway here's a diff of my dovecot.conf against the
dovecot-example.conf (so reading is easier for you)
--- dovecot-example.conf 2008-06-13 01:09:24.000000000 +0200
+++ dovecot.conf 2008-06-13 12:41:07.000000000 +0200
@@ -20,7 +20,7 @@
# Protocols we want to be serving: imap imaps pop3 pop3s
# If you only want to use dovecot-auth, you can set this to "none".
-#protocols = imap imaps
+protocols = imap imaps
# A space separated list of IP or host addresses where to listen in for
# connections. "*" listens in all IPv4 interfaces. "[::]" listens in
all IPv6
@@ -30,11 +30,11 @@
# If you want to specify ports for each service, you will need to configure
# these settings inside the protocol imap/pop3 { ... } section, so you can
# specify different ports for IMAP/POP3. For example:
-# protocol imap {
-# listen = *:10143
-# ssl_listen = *:10943
+ protocol imap {
+ listen = *:10143
+ ssl_listen = *:10993
# ..
-# }
+ }
# protocol pop3 {
# listen = *:10100
# ..
@@ -45,7 +45,7 @@
# SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP
# matches the local IP (ie. you're connecting from the same computer), the
# connection is considered secure and plaintext authentication is allowed.
-#disable_plaintext_auth = yes
+disable_plaintext_auth = no
# Should all IMAP and POP3 processes be killed when Dovecot master process
# shuts down. Setting this to "no" means that Dovecot can be upgraded
without
@@ -85,7 +85,7 @@
#ssl_listen =
# Disable SSL/TLS support.
-#ssl_disable = no
+ssl_disable = no
# PEM encoded X.509 SSL/TLS certificate and private key. They're opened
before
# dropping root privileges, so keep the key file unreadable by anyone but
@@ -143,7 +143,7 @@
# and don't use it anywhere else. The user must also belong to a group
where
# only it has access, it's used to control access for authentication
process.
# Note that this user is NOT used to access mails. <doc/wiki/UserIds.txt>
-#login_user = dovecot
+login_user = dovecot
# Set max. process size in megabytes. If you don't use
# login_process_per_connection you might need to grow this.
@@ -212,7 +212,7 @@
#
# <doc/wiki/MailLocation.txt>
#
-#mail_location =
+mail_location =
# If you need to set multiple mailbox locations or want to change default
# namespace settings, you can do it by defining namespace sections.
@@ -345,14 +345,14 @@
# to make sure that users can't log in as daemons or other system users.
# Note that denying root logins is hardcoded to dovecot binary and can't
# be done even if first_valid_uid is set to 0.
-#first_valid_uid = 500
+first_valid_uid = 89
#last_valid_uid = 0
# Valid GID range for users, defaults to non-root/wheel. Users having
# non-valid GID as primary group ID aren't allowed to log in. If user
# belongs to supplementary groups with non-valid GIDs, those groups are
# not set.
-#first_valid_gid = 1
+first_valid_gid = 89
#last_valid_gid = 0
# Maximum number of running mail processes. When this limit is reached,
@@ -419,7 +419,7 @@
# When copying a message, do it with hard links whenever possible. This
makes
# the performance much better, and it's unlikely to have any side effects.
-#maildir_copy_with_hardlinks = yes
+maildir_copy_with_hardlinks = yes
# When copying a message, try to preserve the base filename. Only if the
# destination mailbox already contains the same name (ie. the mail is being
@@ -563,7 +563,7 @@
# but not both. Thunderbird separates these two by forcing server to
# accept '/' suffix in mailbox names in subscriptions list.
# The list is space-separated.
- #imap_client_workarounds =
+ imap_client_workarounds = delay-newmail
}
##
@@ -701,13 +701,13 @@
# Authentication cache size in kilobytes. 0 means it's disabled.
# Note that bsdauth, PAM and vpopmail require cache_key to be set for
caching
# to be used.
-#auth_cache_size = 0
+auth_cache_size = 512
# Time to live in seconds for cached data. After this many seconds the
cached
# record is no longer used, *except* if the main database lookup returns
# internal failure. We also try to handle password changes
automatically: If
# user's previous authentication was successful, but this one wasn't, the
# cache isn't used. For now this works only with plaintext authentication.
-#auth_cache_ttl = 3600
+auth_cache_ttl = 3600
# TTL for negative hits (user not found). 0 disables caching them
completely.
#auth_cache_negative_ttl = 3600
@@ -826,7 +826,7 @@
# database (passwd usually), you can use static userdb.
# REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
# authentication to actually work. <doc/wiki/PasswordDatabase.PAM.txt>
- passdb pam {
+ #passdb pam {
# [session=yes] [setcred=yes] [failure_show_msg=yes]
# [cache_key=<key>] [<service name>]
#
@@ -855,7 +855,7 @@
# args = session=yes %Ls
# args = cache_key=%u dovecot
#args = dovecot
- }
+ #}
# System users (NSS, /etc/passwd, or similiar)
# In many systems nowadays this uses Name Service Switch, which is
@@ -909,12 +909,12 @@
#}
# vpopmail authentication <doc/wiki/AuthDatabase.VPopMail.txt>
- #passdb vpopmail {
+ passdb vpopmail {
# [cache_key=<key>] - See cache_key in PAM for explanation.
# [quota_template=<template>] - %q expands to Maildir++ quota
# (eg. quota_template=quota_rule=*:backend=%q)
#args =
- #}
+ }
#
# User database specifies where mails are located and what user/group IDs
@@ -926,14 +926,14 @@
# System users (NSS, /etc/passwd, or similiar). In many systems
nowadays this
# uses Name Service Switch, which is configured in /etc/nsswitch.conf.
# <doc/wiki/AuthDatabase.Passwd.txt>
- userdb passwd {
+ #userdb passwd {
# [blocking=yes] - By default the lookups are done in the main
dovecot-auth
# process. This setting causes the lookups to be done in auth worker
# proceses. Useful with remote NSS lookups that may block.
# NOTE: Be sure to use this setting with nss_ldap or users might get
# logged in as each others!
#args =
- }
+ #}
# passwd-like file with specified location
# <doc/wiki/AuthDatabase.PasswdFile.txt>
@@ -972,8 +972,8 @@
#}
# vpopmail <doc/wiki/AuthDatabase.VPopMail.txt>
- #userdb vpopmail {
- #}
+ userdb vpopmail {
+ }
# "prefetch" user database means that the passdb already provided the
# needed information and there's no need to do a separate userdb lookup.
@@ -1151,3 +1151,8 @@
# size and vsize are available only for expunge and copy events.
#mail_log_fields = uid box msgid size
}
+
+namespace private {
+ prefix = INBOX.
+ inbox = yes
+}
The last part is important when you migrate from courier (gotta set it
apart from running the migration script)
--
Maciej