[Dovecot] error when using dovecot-lda as non root (vmail) user
Andreas Helmcke
news1204.10.weezy at spamgourmet.com
Mon Apr 23 14:40:11 EEST 2012
Am 23.04.2012 12:59, schrieb Timo Sirainen:
> On 19.4.2012, at 19.09, Andreas Helmcke wrote:
>
>> Apr 19 17:58:07 elablnmail02 dovecot: lda(ahelmcke): Debug: Namespace :
>> type=private, prefix=, sep=, inbox=no, hidden=no, list=yes,
>> subscriptions=yes location=maildir:/home/mail/user/ahelmcke
>
> But what is this? You appear to have an empty namespace {} in your configs?
>
nope.
You might check yourself; complete dovecot -n:
# 2.1.1: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-220.7.1.el6.x86_64 x86_64 CentOS release 6.2 (Final) ext4
auth_master_user_separator = *
auth_verbose = yes
first_valid_uid = 400
mail_debug = yes
mail_gid = vmail
mail_home = /home/mail/user/%u
mail_location = maildir:/home/mail/user/%u
mail_uid = vmail
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 ihave
mbox_write_locks = fcntl
namespace Allgemeines {
location = maildir:/home/mail/Allgemeines:INDEX=/home/mail/user/%u/SEEN.Allgemeines
prefix = Allgemeines/
separator = /
subscriptions = no
type = public
}
namespace dummy {
alias_for = INBOX/
hidden = yes
list = no
location = maildir:/home/mail/user/%u/public/
prefix =
separator = /
type = private
}
namespace inbox {
inbox = yes
location =
prefix = INBOX/
separator = /
type = private
}
passdb {
args = /etc/dovecot/passwd.masterusers
driver = passwd-file
master = yes
pass = yes
}
passdb {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap
}
plugin {
quota = maildir:User quota
quota_rule = *:storage=3G
}
protocols = imap lmtp
service auth {
unix_listener /var/spool/postfix/private/auth {
mode = 0666
}
unix_listener auth-userdb {
mode = 0600
user = vmail
}
}
service imap-login {
inet_listener imap {
address = *
}
inet_listener imaps {
address = *
}
}
ssl = required
ssl_cert = </etc/pki/dovecot/certs/mail.ela-soft.com.crt
ssl_key = </etc/pki/dovecot/private/mail.ela-soft.com.2048bit.nopp.key
userdb {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap
}
protocol lmtp {
mail_plugins =
}
protocol imap {
mail_plugins =
}
And again the debug messages
run as root: /usr/libexec/dovecot/dovecot-lda -d ahelmcke < some-mail
Apr 23 13:22:01 elablnmail02 dovecot: lda: Debug: auth input: ahelmcke quota_rule=*:storage=2000M
Apr 23 13:22:01 elablnmail02 dovecot: lda: Debug: Added userdb setting: plugin/quota_rule=*:storage=2000M
Apr 23 13:22:01 elablnmail02 dovecot: lda(ahelmcke): Debug: Effective uid=494, gid=491, home=/home/mail/user/ahelmcke
Apr 23 13:22:01 elablnmail02 dovecot: lda(ahelmcke): Debug: Namespace inbox: type=private, prefix=INBOX/, sep=/,
inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/home/mail/user/ahelmcke
Apr 23 13:22:01 elablnmail02 dovecot: lda(ahelmcke): Debug: maildir++: root=/home/mail/user/ahelmcke, index=, control=,
inbox=/home/mail/user/ahelmcke, alt=
Apr 23 13:22:01 elablnmail02 dovecot: lda(ahelmcke): Debug: Namespace dummy: type=private, prefix=, sep=/, inbox=no,
hidden=yes, list=no, subscriptions=yes location=maildir:/home/mail/user/ahelmcke/public/
Apr 23 13:22:01 elablnmail02 dovecot: lda(ahelmcke): Debug: maildir++: root=/home/mail/user/ahelmcke/public, index=,
control=, inbox=, alt=
Apr 23 13:22:01 elablnmail02 dovecot: lda(ahelmcke): Debug: Namespace Allgemeines: type=public, prefix=Allgemeines/,
sep=/, inbox=no, hidden=no, list=yes, subscriptions=no
location=maildir:/home/mail/Allgemeines:INDEX=/home/mail/user/ahelmcke/SEEN.Allgemeines
Apr 23 13:22:01 elablnmail02 dovecot: lda(ahelmcke): Debug: maildir++: root=/home/mail/Allgemeines,
index=/home/mail/user/ahelmcke/SEEN.Allgemeines, control=, inbox=, alt=
Apr 23 13:22:01 elablnmail02 dovecot: lda(ahelmcke): Debug: none: root=, index=, control=, inbox=, alt=
Apr 23 13:22:10 elablnmail02 dovecot: lda(ahelmcke): Debug: Destination address: ahelmcke at elablnmail02.ela-bln.local
(source: user at hostname)
Apr 23 13:22:10 elablnmail02 dovecot: lda(ahelmcke): msgid=unspecified: saved mail to INBOX
run as vmail: /usr/libexec/dovecot/dovecot-lda -d ahelmcke < some-mail
Apr 23 13:22:37 elablnmail02 dovecot: lda: Debug: auth input: ahelmcke quota_rule=*:storage=2000M
Apr 23 13:22:37 elablnmail02 dovecot: lda: Debug: Added userdb setting: plugin/quota_rule=*:storage=2000M
Apr 23 13:22:37 elablnmail02 dovecot: lda(ahelmcke): Debug: Effective uid=494, gid=491, home=/home/mail/user/ahelmcke
Apr 23 13:22:37 elablnmail02 dovecot: lda(ahelmcke): Debug: Namespace inbox: type=private, prefix=INBOX/, sep=/,
inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/home/mail/user/ahelmcke
Apr 23 13:22:37 elablnmail02 dovecot: lda(ahelmcke): Debug: maildir++: root=/home/mail/user/ahelmcke, index=, control=,
inbox=/home/mail/user/ahelmcke, alt=
Apr 23 13:22:37 elablnmail02 dovecot: lda(ahelmcke): Debug: Namespace dummy: type=private, prefix=, sep=/, inbox=no,
hidden=yes, list=no, subscriptions=yes location=maildir:/home/mail/user/ahelmcke/public/
Apr 23 13:22:37 elablnmail02 dovecot: lda(ahelmcke): Debug: maildir++: root=/home/mail/user/ahelmcke/public, index=,
control=, inbox=, alt=
Apr 23 13:22:37 elablnmail02 dovecot: lda(ahelmcke): Debug: Namespace : type=private, prefix=, sep=, inbox=no,
hidden=no, list=yes, subscriptions=yes location=maildir:/home/mail/user/ahelmcke
Apr 23 13:22:37 elablnmail02 dovecot: lda(ahelmcke): Debug: maildir++: root=/home/mail/user/ahelmcke, index=, control=,
inbox=, alt=
Apr 23 13:22:37 elablnmail02 dovecot: lda(ahelmcke): Error: user ahelmcke: Initialization failed: namespace
configuration error: Duplicate namespace prefix: ""
Apr 23 13:22:37 elablnmail02 dovecot: lda(ahelmcke): Fatal: Invalid user settings. Refer to server log for more information.
More information about the dovecot
mailing list