[Dovecot] dovecot doesnt see any emails
$ dovecot --version 1.1.13 $ grep ^mail_location /usr/local/etc/dovecot.conf mail_location = maildir:~vpopmail/domains/%d/%u/Maildir/ $
i use SquirrelMail as a client to IMAP in, but when I login, I dont see any emails in my INBOX
I even tried pop3 same story
$ telnet localhost pop3 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK Dovecot ready. USER XXXXXX@XXX.XXX +OK PASS XXXXXX +OK Logged in. UIDL +OK . QUIT +OK Logging out. Connection closed by foreign host. $
On Tue, 2009-04-07 at 17:36 -0400, alexus wrote:
$ dovecot --version 1.1.13 $ grep ^mail_location /usr/local/etc/dovecot.conf mail_location = maildir:~vpopmail/domains/%d/%u/Maildir/
I guess ~vpopmail/ might work, but I'd rather not use it. At the very least it slows down startup since it needs to look up where vpopmail's home directory is.
Anyway set mail_debug=yes and look at the logs. It'll say where Dovecot is really looking at for the mail.
Timo Sirainen wrote:
On Tue, 2009-04-07 at 17:36 -0400, alexus wrote:
mail_location = maildir:~vpopmail/domains/%d/%u/Maildir/
You can't count on that!!!
IF there are over 100 domains, domain number 101 will be
~vpopmail/domains/1/%d... and domain number 201 will be
~vpopmail/domains/2/%d...
Same for domains with over 100 users.
If you have deleted domains, or lost the file that controls directory hashing, things can really get weird. The only safe way to locate domains and/or users with vpopmail is to ask vpopmail where they are located.
Rick Widmer previous vpopmail developer
On Tue, Apr 7, 2009 at 11:17 PM, Rick Widmer <yahoo@rickwidmer.com> wrote:
Timo Sirainen wrote:
On Tue, 2009-04-07 at 17:36 -0400, alexus wrote:
mail_location = maildir:~vpopmail/domains/%d/%u/Maildir/
You can't count on that!!!
IF there are over 100 domains, domain number 101 will be
~vpopmail/domains/1/%d... and domain number 201 will be
~vpopmail/domains/2/%d...
Same for domains with over 100 users.
If you have deleted domains, or lost the file that controls directory hashing, things can really get weird. The only safe way to locate domains and/or users with vpopmail is to ask vpopmail where they are located.
okay, so what do you suggest then?
Rick Widmer previous vpopmail developer
On Tue, Apr 7, 2009 at 11:41 PM, alexus <alexus@gmail.com> wrote:
On Tue, Apr 7, 2009 at 11:17 PM, Rick Widmer <yahoo@rickwidmer.com> wrote:
Timo Sirainen wrote:
On Tue, 2009-04-07 at 17:36 -0400, alexus wrote:
mail_location = maildir:~vpopmail/domains/%d/%u/Maildir/
You can't count on that!!!
IF there are over 100 domains, domain number 101 will be
~vpopmail/domains/1/%d... and domain number 201 will be
~vpopmail/domains/2/%d...
Same for domains with over 100 users.
If you have deleted domains, or lost the file that controls directory hashing, things can really get weird. The only safe way to locate domains and/or users with vpopmail is to ask vpopmail where they are located.
okay, so what do you suggest then?
Rick Widmer previous vpopmail developer
i tried like this
mail_location = maildir:~vpopmail/bin/vuserinfo -d %u
/Maildir/
but that didn't work...
Firstly, missed most of this thread, the archives did not show anything specific so hewre goes...
On Wed, 2009-04-08 at 14:15, alexus wrote:
On Tue, Apr 7, 2009 at 11:41 PM, alexus <alexus@gmail.com> wrote:
i tried like this
mail_location = maildir:
~vpopmail/bin/vuserinfo -d %u
/Maildir/but that didn't work...
Sometime ago when we were using qmail ( leaving to postfix was the best thing we did and should have done it many many years earlier) I posted to the vpopmail list a working dovecot.conf file for soemone... (note we use port 193 below in imap because (and maybe you should consider it as well) we use imapproxy (http://www.imapproxy.org)
protocols = pop3 imap
listen = *
disable_plaintext_auth = no
shutdown_clients = yes
syslog_facility = local7
ssl_disable = yes
login_dir = /var/run/dovecot/login
#login_max_connections = 256
login_greeting = Ok techno weenie, who r ya?
default_mail_env = maildir:%h/Maildir
first_valid_uid = 89
first_valid_gid =
89
protocol imap {
listen = *:193
mail_plugins = quota imap_quota
imap_client_workarounds = outlook-idle
}
protocol pop3 {
pop3_uidl_format = %f #%08Xu%08Xv
mail_plugins = quota
}
auth_process_size = 512
auth_cache_size = 512
auth_cache_ttl = 3600
auth default {
mechanisms = plain
# vpopmail authentication
passdb vpopmail {
#args =
}
# vpopmail
userdb vpopmail {
}
user = root
}
dict {
#quota = mysql:/etc/dovecot-dict-quota.conf
}
plugin {
quota = maildir
}
..note, as above, we have not used this in sometime now, but it was an archive of the conf file, so it can be regarded as working config.
On Apr 7, 2009, at 11:41 PM, alexus wrote:
If you have deleted domains, or lost the file that controls directory hashing, things can really get weird. The only safe way to locate
domains and/or users with vpopmail is to ask vpopmail where they are located.okay, so what do you suggest then?
You didn't post your whole dovecot -n output, so I don't know what
you're using as userdb. But this should work with userdb vpopmail and
also vpopmail checkpassword:
mail_location = maildir:~
On Wed, Apr 8, 2009 at 12:15 AM, Timo Sirainen <tss@iki.fi> wrote:
On Apr 7, 2009, at 11:41 PM, alexus wrote:
If you have deleted domains, or lost the file that controls directory hashing, things can really get weird. The only safe way to locate domains and/or users with vpopmail is to ask vpopmail where they are located.
okay, so what do you suggest then?
You didn't post your whole dovecot -n output, so I don't know what you're using as userdb. But this should work with userdb vpopmail and also vpopmail checkpassword:
mail_location = maildir:~
sorry, i forgot to add that i dont have any system users, all my users are vpopmail users so i dont think maildir:~ would work here...
On Wed, 2009-04-08 at 11:44 -0400, alexus wrote:
You didn't post your whole dovecot -n output, so I don't know what you're using as userdb. But this should work with userdb vpopmail and also vpopmail checkpassword:
mail_location = maildir:~
sorry, i forgot to add that i dont have any system users, all my users are vpopmail users so i dont think maildir:~ would work here...
You're misunderstanding what ~ does. It's the home directory returned by userdb lookup. If your userdb is vpopmail, it expands to the home directory returned by vpopmail.
participants (4)
-
alexus
-
Noel Butler
-
Rick Widmer
-
Timo Sirainen