[Dovecot] Telnet access creates new maildir folders

Seasoul seasoul at gmail.com
Fri Dec 31 06:55:10 EET 2010


Hi,

Now running Dovecot 2.0.8 and still having the same issue:
Postfix sends emails to /var/mail/vmail/username  (username is
user at domain.com) but Dovecot looks for email in /var/mail/vmail/user
How to alignt he two ?

Dovecot -n gives:
---------------------------------------------------------------------------------------------------------------------------------------------------------
auth_debug = yes
auth_verbose = yes
first_valid_gid = 0
last_valid_gid = 12000
mail_debug = yes
mail_location = maildir:/var/mail/vmail/%u/
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags
copy include variables body enotify environment mailbox date
passdb {
  driver = pam
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = imap pop3
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
  driver = passwd
}
---------------------------------------------------------------------------------------------------------------------------------------------------------

When I try to login to dovecot via telnet, here's what the log records:

---------------------------------------------------------------------------------------------------------------------------------------------------------
dovecot: pop3-login: Login: user=<user>, method=PLAIN, rip=127.0.0.1,
lip=127.0.0.1, mpid=20333, secured
dovecot: pop3(oren): Debug: Effective uid=1000, gid=0, home=/
dovecot: pop3(oren): Debug: maildir++: root=/var/mail/vmail/user, index=,
control=, inbox=/var/mail/vmail/user
dovecot: pop3(oren): Debug: Namespace : Permission lookup failed from
/var/mail/vmail/user
dovecot: pop3(oren): Debug: Namespace : Using permissions from
/var/mail/vmail/user: mode=0700 gid=-1
dovecot: pop3(oren): Disconnected: Logged out top=0/0, retr=0/0, del=0/0,
size=0
---------------------------------------------------------------------------------------------------------------------------------------------------------

But in Dovecot documentation, it says that the variable %u is the "full
username (e.g. user at domain) ". So mail_location should indeed send Dovecot
to /var/mail/vmail/user at domain.com, shouldn't it ? So why is Dovecot looking
at /var/mail/vmail/user instead ?

I'm lost...


More information about the dovecot mailing list