Problem with mail_uid
ratatouille
ratatouille at bitclusive.de
Mon Mar 23 19:43:38 EET 2020
Hello!
I have problems fetching mail for a system user. In use is a passwd-file.
If I set (for virtual users)
mail_uid = vmail
mail_gid = vmail
in 10-mail.conf, I get permission denied.
2020-03-23 18:39:23 imap(andreas at dualbit.de): Error: chdir(/home/andreas/Maildir/) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +x perm: /home/andreas/Maildir, dir owned by 5006:5006 mode=0700)
The mailbox has permissions drwx------. 9 andreas susers
If I don't set mail_uid I get an error because of missing mail_uid.
I can only access the users mailbox if I set
mail_uid = 5006 in 10-mail.conf
On another system I don't haver this problem. I made diffs, read alot of
stuff and can't find a solution.
What is the way to go, please? I would like to know why this does not work.
Below my doveconf -n
# 2.2.36 (1f10bfa63): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.24 (124e06aa)
# OS: Linux 3.10.0-1062.9.1.el7.x86_64 x86_64 CentOS Linux release 7.7.1908 (Core)
# Hostname: dualbit1.dualbit.de
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain cram-md5
auth_verbose = yes
auth_verbose_passwords = yes
debug_log_path = /var/log/dovecot-debug
disable_plaintext_auth = no
first_valid_uid = 1000
listen = *,[::]
log_path = /var/log/dovecot
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_gid = vmail
mail_home = /home/%n/Maildir
mail_location = maildir:~/
mail_plugins = " quota"
mail_privileged_group = vmail
mail_uid = 5006
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4fl
ags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext
mbox_write_locks = fcntl
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
separator = /
}
passdb {
args = /etc/dovecot-sql.conf
driver = sql
}
passdb {
args = scheme=CRYPT username_format=%u /etc/dovecot/users
driver = passwd-file
}
plugin {
quota = dict:user::file:/var/vmail/%d/%n/.quotausage
sieve = file:~/sieve;active=~/.dovecot.sieve
}
protocols = imap pop3
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-userdb {
group = vmail
mode = 0666
user = vmail
}
user = root
}
service imap-login {
client_limit = 1000
process_limit = 500
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
}
}
ssl = required
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = # hidden, use -P to show it
ssl_protocols = !SSLv3
userdb {
driver = prefetch
}
userdb {
args = /etc/dovecot-sql.conf
driver = sql
}
userdb {
args = username_format=%u /etc/dovecot/users
driver = passwd-file
}
protocol imap {
mail_plugins = quota imap_quota
}
protocol pop3 {
mail_plugins = quota
pop3_uidl_format = %08Xu%08Xv
}
protocol lda {
mail_plugins = sieve quota
postmaster_address = root at localhost
}
protocol lmtp {
mail_plugins = quota sieve
}
Any help appreciated.
Andreas
More information about the dovecot
mailing list