Doveadm backup error.
Dovecot list
cr4shydlo+dovecot at gmail.com
Wed Nov 29 23:40:03 EET 2017
Still not solved ;/
My dovecot -n
# 2.2.32 (dfbe293d4): /usr/local/etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.20 (7cd71ba)
# OS: FreeBSD 10.3-RELEASE-p2 amd64
auth_cache_size = 10 M
default_client_limit = 2000
dict {
sqlquota = pgsql:/usr/local/etc/dovecot/quota-sql.conf.ext
}
first_valid_uid = 145
imap_idle_notify_interval = 29 mins
last_valid_uid = 145
listen = *
log_path = /var/log/dovecot.log
mail_attachment_dir = /home/mail/attachments
mail_attachment_min_size = 64 k
mail_fsync = never
mail_home = /home/mail/vhosts/%d/%n
mail_location = mdbox:~/mdbox
mail_plugins = " fts fts_solr quota"
mail_privileged_group = 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 index ihave
duplicate mime foreverypart extracttext imapsieve vnd.dovecot.imapsieve
namespace inbox {
inbox = yes
location =
mailbox Archive {
auto = subscribe
special_use = \Archive
}
mailbox Drafts {
auto = subscribe
special_use = \Drafts
}
mailbox Junk {
auto = create
special_use = \Junk
}
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox "Sent Messages" {
auto = subscribe
special_use = \Sent
}
mailbox Trash {
auto = create
special_use = \Trash
}
prefix =
separator = /
}
passdb {
args = /usr/local/etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
fts = solr
fts_autoindex = yes
fts_solr = url=http://test.pl:8983/solr/dovecot/
imapsieve_mailbox1_before =
file:/usr/local/etc/dovecot/sieve/report-spam.sieve
imapsieve_mailbox1_causes = COPY
imapsieve_mailbox1_name = Junk
imapsieve_mailbox2_before =
file:/usr/local/etc/dovecot/sieve/report-ham.sieve
imapsieve_mailbox2_causes = COPY
imapsieve_mailbox2_from = Junk
imapsieve_mailbox2_name = *
quota = dict:User quota::proxy::sqlquota
quota_rule = *:storage=2048M
quota_rule2 = Trash:storage=+5%%
quota_rule3 = Kosz:storage=+5%%
quota_warning = storage=95%% quota-warning 95 %u
quota_warning2 = storage=80%% quota-warning 80 %u
recipient_delimiter = +
sieve = file:~/sieve;active=~/.dovecot.sieve
sieve_after = /usr/local/etc/dovecot/sieve-after.d
sieve_before = /usr/local/etc/dovecot/sieve-before.d
sieve_global_extensions = +vnd.dovecot.pipe
sieve_pipe_bin_dir = /usr/local/etc/dovecot/sieve
sieve_plugins = sieve_imapsieve sieve_extprograms
sieve_quota_max_storage = 50M
}
protocols = imap lmtp sieve
service auth-worker {
user = vmail
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
}
service dict {
unix_listener dict {
group = vmail
mode = 0600
user = vmail
}
}
service imap-login {
process_min_avail = 3
service_count = 0
vsz_limit = 1 G
}
service imap {
process_min_avail = 3
service_count = 256
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
}
}
service managesieve-login {
inet_listener sieve {
port = 4190
ssl = no
}
}
service pop3-login {
inet_listener pop3 {
port = 0
}
inet_listener pop3s {
port = 0
}
}
ssl = required
ssl_cert = </usr/local/etc/ssl/certs/test.crt
ssl_cipher_list =
ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256
ssl_dh_parameters_length = 2048
ssl_key = # hidden, use -P to show it
ssl_prefer_server_ciphers = yes
ssl_protocols = !SSLv2 !SSLv3 !TLSv1 !TLSv1.1 TLSv1.2
userdb {
args = /usr/local/etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
userdb {
args = uid=vmail gid=vmail home=/home/mail/vhosts/%d/%u
driver = static
}
protocol lda {
mail_fsync = optimized
mail_plugins = " fts fts_solr quota sieve"
}
protocol imap {
mail_max_userip_connections = 50
mail_plugins = " fts fts_solr quota imap_sieve imap_quota"
}
protocol lmtp {
mail_fsync = optimized
mail_plugins = " fts fts_solr quota sieve"
postmaster_address = postmaster at test.pl
}
mx3:/root/dsync@[23:11] # doveadm -v -c ah.temp backup -R -u ah at test.pl
<ahuryn at i-pi.pl> imapc:
doveadm(ah at test.pl <ahuryn at i-pi.pl>): Error: Mail access for users with UID
145 not permitted (see first_valid_uid in config file, uid from userdb
lookup).
doveadm(ah at test.pl <ahuryn at i-pi.pl>): Error: User init failed
mx3:/root/dsync@[22:13] # ls -la /home/mail/vhosts/test.pl/ah at test.pl/
<http://i-pi.pl/ahuryn@i-pi.pl/>
total 1
drwxr-xr-x 2 vmail vmail 2 Nov 12 23:59 .
mx3:/root/dsync@[22:14] # doveadm user ah at test.pl <ahuryn at i-pi.pl>
field value
uid 145
gid 145
home /home/mail/vhosts/test.pl/ah at test.pl <http://i-pi.pl/ahuryn@i-pi.pl>
mail mdbox:~/mdbox
quota_rule *:storage=50000M
mx3:/root/dsync@[22:14] # id 145
uid=145(vmail) gid=145(vmail) groups=145(vmail)
mx3:/root/dsync@[1:14] # doveconf -n | grep 145
first_valid_uid = 145
last_valid_uid = 145
Thank for any hints.
Best regards.
2017-11-20 18:36 GMT+01:00 Dovecot list <cr4shydlo+dovecot at gmail.com>:
> Hello. I try to migrate dovecot 1 to dovecot 2 with doveadm backup.
> But when i try to set doveadm backup i get :
>
> mx3:/root/dsync@[23:11] # doveadm -v -c ah.temp backup -R -u ah at test.pl
> <ahuryn at i-pi.pl> imapc:
> doveadm(ah at test.pl <ahuryn at i-pi.pl>): Error: Mail access for users with
> UID 145 not permitted (see first_valid_uid in config file, uid from userdb
> lookup).
> doveadm(ah at test.pl <ahuryn at i-pi.pl>): Error: User init failed
>
>
> mx3:/root/dsync@[22:13] # ls -la /home/mail/vhosts/test.pl/ah at test.pl/
> <http://i-pi.pl/ahuryn@i-pi.pl/>
> total 1
> drwxr-xr-x 2 vmail vmail 2 Nov 12 23:59 .
>
> mx3:/root/dsync@[22:14] # doveadm user ah at test.pl <ahuryn at i-pi.pl>
> field value
> uid 145
> gid 145
> home /home/mail/vhosts/test.pl/ah at test.pl
> <http://i-pi.pl/ahuryn@i-pi.pl>
> mail mdbox:~/mdbox
> quota_rule *:storage=50000M
>
> mx3:/root/dsync@[22:14] # id 145
> uid=145(vmail) gid=145(vmail) groups=145(vmail)
>
> mx3:/root/dsync@[1:14] # doveconf -n | grep 145
> first_valid_uid = 145
> last_valid_uid = 145
>
> I dont have any idea whats is the problem.
> Best regards.
>
More information about the dovecot
mailing list